Commit c6ad2b92 authored by Michael Bunk's avatar Michael Bunk Committed by Mauro Carvalho Chehab

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.orgSigned-off-by: default avatarMichael Bunk <micha@freedict.org>
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@kernel.org>
parent bebfa341
......@@ -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;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment