From: Olli Salonen Date: Sun, 30 Jul 2017 12:34:49 +0000 (-0400) Subject: media: mn88473: reset stream ID reg if no PLP given X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=2fb0e047f98f4dc9320857e86076191188829bcd;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git 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 Signed-off-by: Mauro Carvalho Chehab --- diff --git a/drivers/media/dvb-frontends/mn88473.c b/drivers/media/dvb-frontends/mn88473.c index 15874244fd8b..58247432a628 100644 --- a/drivers/media/dvb-frontends/mn88473.c +++ b/drivers/media/dvb-frontends/mn88473.c @@ -225,7 +225,9 @@ static int mn88473_set_frontend(struct dvb_frontend *fe) /* PLP */ if (c->delivery_system == SYS_DVBT2) { - ret = regmap_write(dev->regmap[2], 0x36, c->stream_id); + ret = regmap_write(dev->regmap[2], 0x36, + (c->stream_id == NO_STREAM_ID_FILTER) ? 0 : + c->stream_id ); if (ret) goto err; }