dvb: reset all hw demux register when reset the demux device.[1/1]
authorYahui Han <yahui.han@amlogic.com>
Fri, 3 Jul 2020 07:12:33 +0000 (15:12 +0800)
committerYahui Han <yahui.han@amlogic.com>
Mon, 6 Jul 2020 07:39:29 +0000 (15:39 +0800)
PD#SWPL-29104

Problem:
didn't reset dsc register when reset the demux device.

Solution:
reset all hw demux register when reset the demux device.

Verify:
u215.

Change-Id: Id1dccea2308382e339c22655350e4ff6258d94af
Signed-off-by: Yahui Han <yahui.han@amlogic.com>
drivers/stream_input/parser/hw_demux/aml_dmx.c

index 9c25218e3c76611d91240828f4ea235551a16f81..d37a82ea1e3000bca30b25bc34f86f54769584b5 100644 (file)
@@ -4067,8 +4067,8 @@ void dmx_reset_hw_ex(struct aml_dvb *dvb, int reset_irq)
                        }
                }
        }
-       /*WRITE_MPEG_REG(RESET1_REGISTER, RESET_DEMUXSTB);*/
-       WRITE_MPEG_REG(RESET3_REGISTER, RESET_DEMUX2|RESET_DEMUX1|RESET_DEMUX0|RESET_S2P1|RESET_S2P0|RESET_TOP);
+       WRITE_MPEG_REG(RESET1_REGISTER, RESET_DEMUXSTB);
+       /*WRITE_MPEG_REG(RESET3_REGISTER, RESET_DEMUX2|RESET_DEMUX1|RESET_DEMUX0|RESET_S2P1|RESET_S2P0|RESET_TOP);*/
 
        for (id = 0; id < DMX_DEV_COUNT; id++) {
                times = 0;