aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMauro Carvalho Chehab <mchehab@redhat.com>2011-12-23 18:43:29 -0300
committerMauro Carvalho Chehab <mchehab@redhat.com>2011-12-31 08:37:45 -0200
commit66e6cd596c9921d5eb2ea6e6443dd98b2a2782c7 (patch)
treec5188050b8ce1194919dca36fe9460a5093b0d4c
parent[media] stb6000: use DVBv5 parameters on set_params() (diff)
downloadlinux-dev-66e6cd596c9921d5eb2ea6e6443dd98b2a2782c7.tar.xz
linux-dev-66e6cd596c9921d5eb2ea6e6443dd98b2a2782c7.zip
[media] tda826x: use DVBv5 parameters on set_params()
Instead of using DVBv3 parameters, rely on DVBv5 parameters to set the tuner Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
-rw-r--r--drivers/media/dvb/frontends/tda826x.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/drivers/media/dvb/frontends/tda826x.c b/drivers/media/dvb/frontends/tda826x.c
index 06c94800b940..ab9122a237f5 100644
--- a/drivers/media/dvb/frontends/tda826x.c
+++ b/drivers/media/dvb/frontends/tda826x.c
@@ -73,6 +73,7 @@ static int tda826x_sleep(struct dvb_frontend *fe)
static int tda826x_set_params(struct dvb_frontend *fe, struct dvb_frontend_parameters *params)
{
+ struct dtv_frontend_properties *p = &fe->dtv_property_cache;
struct tda826x_priv *priv = fe->tuner_priv;
int ret;
u32 div;
@@ -83,11 +84,11 @@ static int tda826x_set_params(struct dvb_frontend *fe, struct dvb_frontend_param
dprintk("%s:\n", __func__);
- div = (params->frequency + (1000-1)) / 1000;
+ div = (p->frequency + (1000-1)) / 1000;
/* BW = ((1 + RO) * SR/2 + 5) * 1.3 [SR in MSPS, BW in MHz] */
/* with R0 = 0.35 and some transformations: */
- ksyms = params->u.qpsk.symbol_rate / 1000;
+ ksyms = p->symbol_rate / 1000;
bandwidth = (878 * ksyms + 6500000) / 1000000 + 1;
if (bandwidth < 5)
bandwidth = 5;