aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--drivers/media/dvb/frontends/nxt200x.c9
-rw-r--r--drivers/media/dvb/frontends/nxt200x.h3
2 files changed, 10 insertions, 2 deletions
diff --git a/drivers/media/dvb/frontends/nxt200x.c b/drivers/media/dvb/frontends/nxt200x.c
index 4cffe7ad9710..bad0933eb714 100644
--- a/drivers/media/dvb/frontends/nxt200x.c
+++ b/drivers/media/dvb/frontends/nxt200x.c
@@ -556,13 +556,18 @@ static int nxt200x_setup_frontend_parameters (struct dvb_frontend* fe,
556 if (state->config->set_ts_params) 556 if (state->config->set_ts_params)
557 state->config->set_ts_params(fe, 1); 557 state->config->set_ts_params(fe, 1);
558 558
559 /* set to use cable input */ 559 /* set input */
560 buf[3] |= 0x08; 560 if (state->config->set_pll_input)
561 state->config->set_pll_input(buf, 1);
561 break; 562 break;
562 case VSB_8: 563 case VSB_8:
563 /* Set non-punctured clock for VSB */ 564 /* Set non-punctured clock for VSB */
564 if (state->config->set_ts_params) 565 if (state->config->set_ts_params)
565 state->config->set_ts_params(fe, 0); 566 state->config->set_ts_params(fe, 0);
567
568 /* set input */
569 if (state->config->set_pll_input)
570 state->config->set_pll_input(buf, 0);
566 break; 571 break;
567 default: 572 default:
568 return -EINVAL; 573 return -EINVAL;
diff --git a/drivers/media/dvb/frontends/nxt200x.h b/drivers/media/dvb/frontends/nxt200x.h
index 8dc3f03ecdf7..1d9d70bc37ef 100644
--- a/drivers/media/dvb/frontends/nxt200x.h
+++ b/drivers/media/dvb/frontends/nxt200x.h
@@ -42,6 +42,9 @@ struct nxt200x_config
42 u8 pll_address; 42 u8 pll_address;
43 struct dvb_pll_desc *pll_desc; 43 struct dvb_pll_desc *pll_desc;
44 44
45 /* used to set pll input */
46 int (*set_pll_input)(u8* buf, int input);
47
45 /* need to set device param for start_dma */ 48 /* need to set device param for start_dma */
46 int (*set_ts_params)(struct dvb_frontend* fe, int is_punctured); 49 int (*set_ts_params)(struct dvb_frontend* fe, int is_punctured);
47}; 50};