aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--drivers/media/dvb/frontends/stb6100.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/media/dvb/frontends/stb6100.c b/drivers/media/dvb/frontends/stb6100.c
index f4c2b8e114bf..0259a4689507 100644
--- a/drivers/media/dvb/frontends/stb6100.c
+++ b/drivers/media/dvb/frontends/stb6100.c
@@ -267,13 +267,13 @@ static int stb6100_set_bandwidth(struct dvb_frontend *fe, u32 bandwidth)
267 int rc; 267 int rc;
268 struct stb6100_state *state = fe->tuner_priv; 268 struct stb6100_state *state = fe->tuner_priv;
269 269
270 dprintk(verbose, FE_DEBUG, 1, "set bandwidth to %u kHz", bandwidth); 270 dprintk(verbose, FE_DEBUG, 1, "set bandwidth to %u Hz", bandwidth);
271 271
272 bandwidth /= 2; /* ZIF */ 272 bandwidth /= 2; /* ZIF */
273 273
274 if (bandwidth > 36000000) /* F[4:0] BW/2 max =31+5=36 mhz for F=31 */ 274 if (bandwidth >= 36000000) /* F[4:0] BW/2 max =31+5=36 mhz for F=31 */
275 tmp = 31; 275 tmp = 31;
276 if (bandwidth < 5000000) /* bw/2 min = 5Mhz for F=0 */ 276 else if (bandwidth <= 5000000) /* bw/2 min = 5Mhz for F=0 */
277 tmp = 0; 277 tmp = 0;
278 else /* if 5 < bw/2 < 36 */ 278 else /* if 5 < bw/2 < 36 */
279 tmp = bandwidth / 1000000 - 5; 279 tmp = bandwidth / 1000000 - 5;