aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/media/dvb
diff options
context:
space:
mode:
authorMauro Carvalho Chehab <mchehab@redhat.com>2011-12-08 09:58:22 -0500
committerMauro Carvalho Chehab <mchehab@redhat.com>2011-12-08 14:04:38 -0500
commit78bd3dc8dafc48f11fb761bc01b16e045638fec8 (patch)
tree54c02cfd36ca58917d08f699d15fc30524e159d9 /drivers/media/dvb
parent2bf936290baff2507763a2540cd9029e70ae39e2 (diff)
[media] xc5000,tda18271c2dd: Fix bandwidth calculus
While here, add a debug message, to easy detecting bugs on it. Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers/media/dvb')
-rw-r--r--drivers/media/dvb/frontends/tda18271c2dd.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/media/dvb/frontends/tda18271c2dd.c b/drivers/media/dvb/frontends/tda18271c2dd.c
index de544f6a4d7..b66ca29704f 100644
--- a/drivers/media/dvb/frontends/tda18271c2dd.c
+++ b/drivers/media/dvb/frontends/tda18271c2dd.c
@@ -1158,9 +1158,9 @@ static int set_params(struct dvb_frontend *fe,
1158 * is equal to 0.15 for Annex A, and 0.13 for annex C 1158 * is equal to 0.15 for Annex A, and 0.13 for annex C
1159 */ 1159 */
1160 if (fe->dtv_property_cache.rolloff == ROLLOFF_13) 1160 if (fe->dtv_property_cache.rolloff == ROLLOFF_13)
1161 bw = (params->u.qam.symbol_rate * 13) / 10; 1161 bw = (params->u.qam.symbol_rate * 113) / 100;
1162 else 1162 else
1163 bw = (params->u.qam.symbol_rate * 15) / 10; 1163 bw = (params->u.qam.symbol_rate * 115) / 100;
1164 if (bw <= 6000000) 1164 if (bw <= 6000000)
1165 Standard = HF_DVBC_6MHZ; 1165 Standard = HF_DVBC_6MHZ;
1166 else if (bw <= 7000000) 1166 else if (bw <= 7000000)