summaryrefslogtreecommitdiff
path: root/linux/drivers/media/dvb/frontends/mt352.c
diff options
context:
space:
mode:
authorAndrew de Quincey <adq_dvb@lidskialf.net>2006-04-18 21:47:10 +0100
committerAndrew de Quincey <adq_dvb@lidskialf.net>2006-04-18 21:47:10 +0100
commit34c1d39d5c2da047879453b7daca02c6dc6ee651 (patch)
treeeadf67438f354e2cee7a162cf54dafdb150e4075 /linux/drivers/media/dvb/frontends/mt352.c
parent221ca03a6bb8452d31108a42fb3c711abc7f8a90 (diff)
downloadmediapointer-dvb-s2-34c1d39d5c2da047879453b7daca02c6dc6ee651.tar.gz
mediapointer-dvb-s2-34c1d39d5c2da047879453b7daca02c6dc6ee651.tar.bz2
Convert mt352 to refactored tuner code
From: Andrew de Quincey <adq_dvb@lidskialf.net> Convert to tuner_ops calls. Remove pll function pointer from structure. Use standardised pllbuf function. Signed-off-by: Andrew de Quincey <adq_dvb@lidskialf.net>
Diffstat (limited to 'linux/drivers/media/dvb/frontends/mt352.c')
-rw-r--r--linux/drivers/media/dvb/frontends/mt352.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/linux/drivers/media/dvb/frontends/mt352.c b/linux/drivers/media/dvb/frontends/mt352.c
index aaaec909d..a7a347a3c 100644
--- a/linux/drivers/media/dvb/frontends/mt352.c
+++ b/linux/drivers/media/dvb/frontends/mt352.c
@@ -286,9 +286,12 @@ static int mt352_set_parameters(struct dvb_frontend* fe,
mt352_calc_nominal_rate(state, op->bandwidth, buf+4);
mt352_calc_input_freq(state, buf+6);
- state->config.pll_set(fe, param, buf+8);
- mt352_write(fe, buf, sizeof(buf));
+ if (fe->ops->tuner_ops.pllbuf) {
+ fe->ops->tuner_ops.pllbuf(fe, param, buf+8, 5);
+ buf[8] <<= 1;
+ mt352_write(fe, buf, sizeof(buf));
+ }
if (state->config.no_tuner) {
/* start decoding */
mt352_write(fe, fsm_go, 2);