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

media: mn88472: 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
07d45a42 450694c3

+3 -1
+3 -1
drivers/media/dvb-frontends/mn88472.c
··· 377 377 ret = regmap_write(dev->regmap[1], 0xf6, 0x05); 378 378 if (ret) 379 379 goto err; 380 - ret = regmap_write(dev->regmap[2], 0x32, c->stream_id); 380 + ret = regmap_write(dev->regmap[2], 0x32, 381 + (c->stream_id == NO_STREAM_ID_FILTER) ? 0 : 382 + c->stream_id ); 381 383 if (ret) 382 384 goto err; 383 385 break;