summaryrefslogtreecommitdiff
path: root/drivers/media/tuners/si2157.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/media/tuners/si2157.c')
-rw-r--r--drivers/media/tuners/si2157.c16
1 files changed, 7 insertions, 9 deletions
diff --git a/drivers/media/tuners/si2157.c b/drivers/media/tuners/si2157.c
index 481c5c3b577d..76dc10dd2518 100644
--- a/drivers/media/tuners/si2157.c
+++ b/drivers/media/tuners/si2157.c
@@ -459,17 +459,15 @@ static int si2157_set_params(struct dvb_frontend *fe)
}
if (SUPPORTS_1700KHz(dev) && c->bandwidth_hz <= 1700000)
- bandwidth = 0x09;
- if (c->bandwidth_hz <= 6000000)
- bandwidth = 0x06;
- if (SUPPORTS_1700KHz(dev) && c->bandwidth_hz <= 6100000)
- bandwidth = 0x10;
+ bandwidth = 9;
+ else if (c->bandwidth_hz <= 6000000)
+ bandwidth = 6;
+ else if (SUPPORTS_1700KHz(dev) && c->bandwidth_hz <= 6100000)
+ bandwidth = 10;
else if (c->bandwidth_hz <= 7000000)
- bandwidth = 0x07;
- else if (c->bandwidth_hz <= 8000000)
- bandwidth = 0x08;
+ bandwidth = 7;
else
- bandwidth = 0x0f;
+ bandwidth = 8;
switch (c->delivery_system) {
case SYS_ATSC: