vdec: remove unnecessory register operation in mpeg12 [1/1]
authorapollo.ling <apollo.ling@amlogic.com>
Sat, 5 Dec 2020 09:30:16 +0000 (17:30 +0800)
committerHui Zhang <hui.zhang@amlogic.com>
Tue, 8 Dec 2020 01:48:36 +0000 (17:48 -0800)
PD#SWPL-37810

Problem:
Open PIP, switch channels on the EPG interface, OTT restarts automatically

Solution:
Remove unnecessrory register openation in mpeg12

Verify:
ah212

Change-Id: I99aaf6978d7ee496df2c221dbc6acdf670f9abd0
Signed-off-by: apollo.ling <apollo.ling@amlogic.com>
drivers/frame_provider/decoder/mpeg12/vmpeg12_multi.c

index 8359c695c9ef8d8d5fba29a1c17975ab5dbd9292..4ac580145b335f252344d7ac7a1371041040b66d 100644 (file)
@@ -3223,13 +3223,13 @@ void (*callback)(struct vdec_s *, void *),
 {
        struct vdec_mpeg12_hw_s *hw =
                (struct vdec_mpeg12_hw_s *)vdec->private;
-       int save_reg = READ_VREG(POWER_CTL_VLD);
+       //int save_reg = READ_VREG(POWER_CTL_VLD);
        int size, ret;
 
        /* reset everything except DOS_TOP[1] and APB_CBUS[0]*/
-       WRITE_VREG(DOS_SW_RESET0, 0xfffffff0);
-       WRITE_VREG(DOS_SW_RESET0, 0);
-       WRITE_VREG(POWER_CTL_VLD, save_reg);
+       //WRITE_VREG(DOS_SW_RESET0, 0xfffffff0);
+       //WRITE_VREG(DOS_SW_RESET0, 0);
+       //WRITE_VREG(POWER_CTL_VLD, save_reg);
        hw->run_count++;
        vdec_reset_core(vdec);
        hw->vdec_cb_arg = arg;