diff options
author | Michael Bunk <micha@freedict.org> | 2022-01-16 11:22:35 +0000 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@kernel.org> | 2024-04-29 09:19:55 +0100 |
commit | c6ad2b9218d6d9538f60040ad12621ecb1274a0f (patch) | |
tree | 950208f55f9462749be4df0750408df06b0443e5 /drivers/media/dvb-frontends | |
parent | bebfa3419a7c064b29e7b0a14ca11d8985a29cbb (diff) | |
download | lwn-c6ad2b9218d6d9538f60040ad12621ecb1274a0f.tar.gz lwn-c6ad2b9218d6d9538f60040ad12621ecb1274a0f.zip |
media: m88ds3103: Fix lock led support
The new m88ds3101b demodulator version requires the highest bit of
register 0x11 be cleared after tuning to a new frequency to make the
lock output pin go high when a signal is found. This pin is normally
connected to an indicator led.
Link: https://lore.kernel.org/linux-media/20220116112238.74171-1-micha@freedict.org
Signed-off-by: Michael Bunk <micha@freedict.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@kernel.org>
Diffstat (limited to 'drivers/media/dvb-frontends')
-rw-r--r-- | drivers/media/dvb-frontends/m88ds3103.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/drivers/media/dvb-frontends/m88ds3103.c b/drivers/media/dvb-frontends/m88ds3103.c index e0272054fca5..389548fa2e0c 100644 --- a/drivers/media/dvb-frontends/m88ds3103.c +++ b/drivers/media/dvb-frontends/m88ds3103.c @@ -1000,6 +1000,13 @@ static int m88ds3103_set_frontend(struct dvb_frontend *fe) if (ret) goto err; + if (dev->chiptype == M88DS3103_CHIPTYPE_3103B) { + /* to light up the LOCK led */ + ret = m88ds3103_update_bits(dev, 0x11, 0x80, 0x00); + if (ret) + goto err; + } + dev->delivery_system = c->delivery_system; return 0; |