aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/media/dvb/frontends/tda826x.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/media/dvb/frontends/tda826x.c')
-rw-r--r--drivers/media/dvb/frontends/tda826x.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/drivers/media/dvb/frontends/tda826x.c b/drivers/media/dvb/frontends/tda826x.c
index 06c94800b940..04bbcc24de0a 100644
--- a/drivers/media/dvb/frontends/tda826x.c
+++ b/drivers/media/dvb/frontends/tda826x.c
@@ -71,8 +71,9 @@ static int tda826x_sleep(struct dvb_frontend *fe)
71 return (ret == 1) ? 0 : ret; 71 return (ret == 1) ? 0 : ret;
72} 72}
73 73
74static int tda826x_set_params(struct dvb_frontend *fe, struct dvb_frontend_parameters *params) 74static int tda826x_set_params(struct dvb_frontend *fe)
75{ 75{
76 struct dtv_frontend_properties *p = &fe->dtv_property_cache;
76 struct tda826x_priv *priv = fe->tuner_priv; 77 struct tda826x_priv *priv = fe->tuner_priv;
77 int ret; 78 int ret;
78 u32 div; 79 u32 div;
@@ -83,11 +84,11 @@ static int tda826x_set_params(struct dvb_frontend *fe, struct dvb_frontend_param
83 84
84 dprintk("%s:\n", __func__); 85 dprintk("%s:\n", __func__);
85 86
86 div = (params->frequency + (1000-1)) / 1000; 87 div = (p->frequency + (1000-1)) / 1000;
87 88
88 /* BW = ((1 + RO) * SR/2 + 5) * 1.3 [SR in MSPS, BW in MHz] */ 89 /* BW = ((1 + RO) * SR/2 + 5) * 1.3 [SR in MSPS, BW in MHz] */
89 /* with R0 = 0.35 and some transformations: */ 90 /* with R0 = 0.35 and some transformations: */
90 ksyms = params->u.qpsk.symbol_rate / 1000; 91 ksyms = p->symbol_rate / 1000;
91 bandwidth = (878 * ksyms + 6500000) / 1000000 + 1; 92 bandwidth = (878 * ksyms + 6500000) / 1000000 + 1;
92 if (bandwidth < 5) 93 if (bandwidth < 5)
93 bandwidth = 5; 94 bandwidth = 5;