aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/media/dvb/frontends
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/media/dvb/frontends')
-rw-r--r--drivers/media/dvb/frontends/mt352.c7
-rw-r--r--drivers/media/dvb/frontends/mt352.h6
2 files changed, 5 insertions, 8 deletions
diff --git a/drivers/media/dvb/frontends/mt352.c b/drivers/media/dvb/frontends/mt352.c
index aaaec909ddf8..a7a347a3cad0 100644
--- a/drivers/media/dvb/frontends/mt352.c
+++ b/drivers/media/dvb/frontends/mt352.c
@@ -286,9 +286,12 @@ static int mt352_set_parameters(struct dvb_frontend* fe,
286 286
287 mt352_calc_nominal_rate(state, op->bandwidth, buf+4); 287 mt352_calc_nominal_rate(state, op->bandwidth, buf+4);
288 mt352_calc_input_freq(state, buf+6); 288 mt352_calc_input_freq(state, buf+6);
289 state->config.pll_set(fe, param, buf+8);
290 289
291 mt352_write(fe, buf, sizeof(buf)); 290 if (fe->ops->tuner_ops.pllbuf) {
291 fe->ops->tuner_ops.pllbuf(fe, param, buf+8, 5);
292 buf[8] <<= 1;
293 mt352_write(fe, buf, sizeof(buf));
294 }
292 if (state->config.no_tuner) { 295 if (state->config.no_tuner) {
293 /* start decoding */ 296 /* start decoding */
294 mt352_write(fe, fsm_go, 2); 297 mt352_write(fe, fsm_go, 2);
diff --git a/drivers/media/dvb/frontends/mt352.h b/drivers/media/dvb/frontends/mt352.h
index 03040cd595bb..9e7ff4b8fe5f 100644
--- a/drivers/media/dvb/frontends/mt352.h
+++ b/drivers/media/dvb/frontends/mt352.h
@@ -49,12 +49,6 @@ struct mt352_config
49 49
50 /* Initialise the demodulator and PLL. Cannot be NULL */ 50 /* Initialise the demodulator and PLL. Cannot be NULL */
51 int (*demod_init)(struct dvb_frontend* fe); 51 int (*demod_init)(struct dvb_frontend* fe);
52
53 /* PLL setup - fill out the supplied 5 byte buffer with your PLL settings.
54 * byte0: Set to pll i2c address (nonlinux; left shifted by 1)
55 * byte1-4: PLL configuration.
56 */
57 int (*pll_set)(struct dvb_frontend* fe, struct dvb_frontend_parameters* params, u8* pllbuf);
58}; 52};
59 53
60extern struct dvb_frontend* mt352_attach(const struct mt352_config* config, 54extern struct dvb_frontend* mt352_attach(const struct mt352_config* config,