vdec: fix mpeg4 mosiac issue when multi-playback [1/1]
authorHui Zhang <hui.zhang@amlogic.com>
Wed, 27 May 2020 09:24:45 +0000 (17:24 +0800)
committerZhi Zhou <zhi.zhou@amlogic.com>
Wed, 1 Jul 2020 10:52:52 +0000 (03:52 -0700)
PD#SWPL-26884

Problem:
mpeg4 steam show mosiac when mutli-mode
with some h264 stream

Solution:
add more vdec sub module reset

Verify:
U212

Signed-off-by: Hui Zhang <hui.zhang@amlogic.com>
Change-Id: I872c56f0f369166557da01e6fc90491130f9aa2c

drivers/frame_provider/decoder/utils/vdec.c

index f75d73584e67483de35b2266b35b7e5a733cae1f..ee17be0dce29d11b836c3bcdc1e7c2563b4d2c44 100644 (file)
@@ -4147,13 +4147,7 @@ void vdec_reset_core(struct vdec_s *vdec)
         * 13: ddr
         * 14: afifo
         */
-       if ((get_cpu_major_id() >= AM_MESON_CPU_MAJOR_ID_SM1) &&
-               (get_cpu_major_id() != AM_MESON_CPU_MAJOR_ID_TL1)) {
-               WRITE_VREG(DOS_SW_RESET0, (1<<3)|(1<<4)|(1<<5)|(1<<7)|(1<<8)|(1<<9));
-       } else {
-               WRITE_VREG(DOS_SW_RESET0,
-                       (1<<3)|(1<<4)|(1<<5));
-       }
+       WRITE_VREG(DOS_SW_RESET0, (1<<3)|(1<<4)|(1<<5)|(1<<7)|(1<<8)|(1<<9));
        WRITE_VREG(DOS_SW_RESET0, 0);
 
        spin_lock_irqsave(&vdec_spin_lock, flags);