aboutsummaryrefslogtreecommitdiff
path: root/drivers/media/tuners/si2157.c
diff options
context:
space:
mode:
authorGravatar Mauro Carvalho Chehab <mchehab+huawei@kernel.org> 2021-12-10 13:37:54 +0100
committerGravatar Mauro Carvalho Chehab <mchehab+huawei@kernel.org> 2021-12-14 16:19:04 +0100
commit98c65a3dac95b54bc105e29d492ce18c49353e67 (patch)
tree1e16a0e45f8b710a99be6baf1a9acde69892393a /drivers/media/tuners/si2157.c
parentmedia: si2157: add support for ISDB-T and DTMB (diff)
downloadlinux-98c65a3dac95b54bc105e29d492ce18c49353e67.tar.gz
linux-98c65a3dac95b54bc105e29d492ce18c49353e67.tar.bz2
linux-98c65a3dac95b54bc105e29d492ce18c49353e67.zip
media: si2157: add support for 1.7MHz and 6.1 MHz
Some tuners allow setting the bandwidth filter to 1.7MHz and 6.1 MHz. Add support for it upstream, as the narrower is the bandwidth filter, the better. Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
Diffstat (limited to 'drivers/media/tuners/si2157.c')
-rw-r--r--drivers/media/tuners/si2157.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/media/tuners/si2157.c b/drivers/media/tuners/si2157.c
index aeecb38b147f..2d3937af4f5f 100644
--- a/drivers/media/tuners/si2157.c
+++ b/drivers/media/tuners/si2157.c
@@ -458,8 +458,12 @@ static int si2157_set_params(struct dvb_frontend *fe)
goto err;
}
+ 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;
else if (c->bandwidth_hz <= 7000000)
bandwidth = 0x07;
else if (c->bandwidth_hz <= 8000000)