浏览代码

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>
Olli Salonen 8 年之前
父节点
当前提交
2fb0e047f9
共有 1 个文件被更改,包括 3 次插入1 次删除
  1. 3 1
      drivers/media/dvb-frontends/mn88473.c

+ 3 - 1
drivers/media/dvb-frontends/mn88473.c

@@ -225,7 +225,9 @@ static int mn88473_set_frontend(struct dvb_frontend *fe)
 
 
 	/* PLP */
 	/* PLP */
 	if (c->delivery_system == SYS_DVBT2) {
 	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)
 		if (ret)
 			goto err;
 			goto err;
 	}
 	}