linux/drivers/media
Robert Schlabbach 95c4cd1d19 media: si2157: fix 6MHz & 6.1MHz bandwidth setting
Commit 98c65a3dac ("media: si2157: add support for 1.7MHz and 6.1
MHz") introduced two bugs: The 6.1MHz setting was always used for any
bandwidth less than 7MHz due to missing "else" keywords, and then the
setting was not specified as decimal 10, but as hexadecimal 0x10, which
makes the tuner refuse the tune command. In sum, it is not possible to
tune to any channels of less than 7MHz bandwidth anymore.

Add the missing "else" keywords and convert all bandwidth settings to
decimal to avoid any future decimal vs. hexadecimal confusion.

Remove the use of the undefined bandwidth setting 0x0f for bandwidths
greater than 8MHz, which is also refused by the tune command, in favour
of using the default bandwidth setting 8 for any bandwidths greater than
7MHz.

Link: https://lore.kernel.org/linux-media/trinity-d0015ea1-1da5-4c7d-a75b-781fb26dc339-1641509387112@3c-app-gmx-bap68
Fixes: 98c65a3dac ("media: si2157: add support for 1.7MHz and 6.1 MHz")
Reported-by: Robert Schlabbach <robert_s@gmx.net>
Signed-off-by: Robert Schlabbach <robert_s@gmx.net>
Signed-off-by: Mauro Carvalho Chehab <mchehab@kernel.org>
2022-01-10 15:56:00 +01:00
..
cec media: cec: fix a deadlock situation 2021-12-07 11:29:56 +01:00
common media: saa7146: fix error logic at saa7146_vv_init() 2021-12-14 15:09:14 +01:00
dvb-core media: dvb-core: dvb_frontend: address some clang warnings 2021-11-29 10:15:04 +01:00
dvb-frontends media: media si2168: Fix spelling mistake "previsously" -> "previously" 2021-12-07 11:29:57 +01:00
firewire media: firewire: firedtv-avc: fix a buffer overflow in avc_ca_pmt() 2021-09-30 10:07:54 +02:00
i2c media: i2c: hi846: use pm_runtime_force_suspend/resume for system suspend 2021-12-16 20:54:53 +01:00
mc media: mc: mc-entity.c: Use bitmap_zalloc() when applicable 2021-12-14 15:09:14 +01:00
mmc media updates for v5.8-rc1 2020-06-03 20:59:38 -07:00
pci media: ipu3-cio2: Add support for instantiating i2c-clients for VCMs 2021-12-16 20:58:56 +01:00
platform media: c8sectpfe: fix double free in configure_channels() 2021-12-14 16:19:04 +01:00
radio media: si470x-i2c: fix possible memory leak in si470x_i2c_probe() 2021-11-30 12:00:53 +01:00
rc media: streamzap: remove redundant gap calculations 2021-12-14 15:09:13 +01:00
spi media: cxd2880: Eliminate dead code 2021-12-07 11:29:57 +01:00
test-drivers media: vidtv: remove unneeded variable make code cleaner 2021-12-14 16:19:04 +01:00
tuners media: si2157: fix 6MHz & 6.1MHz bandwidth setting 2022-01-10 15:56:00 +01:00
usb media: b2c2-flexcop-usb: fix some whitespace coding style 2021-12-14 16:19:04 +01:00
v4l2-core Linux 5.16-rc4 2021-12-07 11:29:41 +01:00
Kconfig media: correct MEDIA_TEST_SUPPORT help text 2021-11-15 08:12:06 +00:00
Makefile media: media/test_drivers: rename to test-drivers 2020-04-16 10:38:31 +02:00