Commit 07d45a42 authored by Olli Salonen's avatar Olli Salonen Committed by Mauro Carvalho Chehab

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: default avatarOlli Salonen <olli.salonen@iki.fi>
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@s-opensource.com>
parent 450694c3
...@@ -377,7 +377,9 @@ static int mn88472_set_frontend(struct dvb_frontend *fe) ...@@ -377,7 +377,9 @@ static int mn88472_set_frontend(struct dvb_frontend *fe)
ret = regmap_write(dev->regmap[1], 0xf6, 0x05); ret = regmap_write(dev->regmap[1], 0xf6, 0x05);
if (ret) if (ret)
goto err; goto err;
ret = regmap_write(dev->regmap[2], 0x32, c->stream_id); ret = regmap_write(dev->regmap[2], 0x32,
(c->stream_id == NO_STREAM_ID_FILTER) ? 0 :
c->stream_id );
if (ret) if (ret)
goto err; goto err;
break; break;
......
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