From 14822587312b49222ba4b00b9873c4451c4510c4 Mon Sep 17 00:00:00 2001 From: Mauro Carvalho Chehab Date: Fri, 23 Dec 2011 18:43:29 -0300 Subject: [PATCH] --- yaml --- r: 285479 b: refs/heads/master c: 66e6cd596c9921d5eb2ea6e6443dd98b2a2782c7 h: refs/heads/master i: 285477: 47090cb921d9ee705f61c8e3e2d53048b39c02f9 285475: 7adaa4f86cee697f2115151484ad5af9a4aa00a4 285471: 86c58eef5e08ad766f20773105cb043826234014 v: v3 --- [refs] | 2 +- trunk/drivers/media/dvb/frontends/tda826x.c | 5 +++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/[refs] b/[refs] index c9d65c106700..1f212c8b87c6 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: 3608dbb6dcf31e9cd25d43d999b79819837068c1 +refs/heads/master: 66e6cd596c9921d5eb2ea6e6443dd98b2a2782c7 diff --git a/trunk/drivers/media/dvb/frontends/tda826x.c b/trunk/drivers/media/dvb/frontends/tda826x.c index 06c94800b940..ab9122a237f5 100644 --- a/trunk/drivers/media/dvb/frontends/tda826x.c +++ b/trunk/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;