Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

media: mn88473: reset stream ID reg if no PLP given

If the PLP given is NO_STREAM_ID_FILTER (~0u) don't try to set that into the PLP register. Set PLP to 0 instead.

Signed-off-by: Olli Salonen <olli.salonen@iki.fi>
Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>

authored by

Olli Salonen and committed by
Mauro Carvalho Chehab
2fb0e047 07d45a42

+3 -1
+3 -1
drivers/media/dvb-frontends/mn88473.c
··· 225 225 226 226 /* PLP */ 227 227 if (c->delivery_system == SYS_DVBT2) { 228 - ret = regmap_write(dev->regmap[2], 0x36, c->stream_id); 228 + ret = regmap_write(dev->regmap[2], 0x36, 229 + (c->stream_id == NO_STREAM_ID_FILTER) ? 0 : 230 + c->stream_id ); 229 231 if (ret) 230 232 goto err; 231 233 }