diff options
author | Mauro Carvalho Chehab <mchehab@redhat.com> | 2011-12-08 12:58:22 -0200 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | 2011-12-08 17:04:38 -0200 |
commit | 78bd3dc8dafc48f11fb761bc01b16e045638fec8 (patch) | |
tree | 54c02cfd36ca58917d08f699d15fc30524e159d9 /drivers/media/common/tuners/xc5000.c | |
parent | 2bf936290baff2507763a2540cd9029e70ae39e2 (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/common/tuners/xc5000.c')
-rw-r--r-- | drivers/media/common/tuners/xc5000.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/drivers/media/common/tuners/xc5000.c b/drivers/media/common/tuners/xc5000.c index ecd1f95726e..19990bcbf5b 100644 --- a/drivers/media/common/tuners/xc5000.c +++ b/drivers/media/common/tuners/xc5000.c @@ -708,9 +708,9 @@ static int xc5000_set_params(struct dvb_frontend *fe, * is equal to 0.15 for Annex A, and 0.13 for annex C */ if (fe->dtv_property_cache.rolloff == ROLLOFF_13) - bw = (params->u.qam.symbol_rate * 13) / 10; + bw = (params->u.qam.symbol_rate * 113) / 100; else - bw = (params->u.qam.symbol_rate * 15) / 10; + bw = (params->u.qam.symbol_rate * 115) / 100; if (bw <= 6000000) { priv->bandwidth = BANDWIDTH_6_MHZ; priv->video_standard = DTV6; @@ -720,6 +720,8 @@ static int xc5000_set_params(struct dvb_frontend *fe, priv->video_standard = DTV7_8; priv->freq_hz = params->frequency - 2750000; } + dprintk(1, "%s() Bandwidth %dMHz (%d)\n", __func__, + BANDWIDTH_6_MHZ ? 6: 8, bw); break; default: dprintk(1, "%s() Unsupported QAM type\n", __func__); |