summaryrefslogtreecommitdiffstats
path: root/drivers/media
diff options
context:
space:
mode:
authorOlli Salonen <olli.salonen@iki.fi>2017-07-30 08:34:49 -0400
committerMauro Carvalho Chehab <mchehab@s-opensource.com>2017-08-27 18:06:52 -0400
commit2fb0e047f98f4dc9320857e86076191188829bcd (patch)
treee3fd3b807bef81850d06d11b6f402b6f47f55ec0 /drivers/media
parent07d45a42fa21b54d83e563565699d25bde9f8cbe (diff)
downloadop-kernel-dev-2fb0e047f98f4dc9320857e86076191188829bcd.zip
op-kernel-dev-2fb0e047f98f4dc9320857e86076191188829bcd.tar.gz
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>
Diffstat (limited to 'drivers/media')
-rw-r--r--drivers/media/dvb-frontends/mn88473.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/media/dvb-frontends/mn88473.c b/drivers/media/dvb-frontends/mn88473.c
index 1587424..5824743 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;
}
OpenPOWER on IntegriCloud