vmh264: Play special stream,enter PIP,video freeze in PIP window [1/1]
authormiaohong chen <miaohong.chen@amlogic.com>
Fri, 8 Jan 2021 06:10:45 +0000 (14:10 +0800)
committerMiaohong Chen <miaohong.chen@amlogic.com>
Tue, 12 Jan 2021 06:17:07 +0000 (22:17 -0800)
PD#SWPL-39853

Problem:
Registers are misused during two-channel playback.

Solution:
Delete register references that will cause misuse
when reset buffer.

Verify:
AH212

Signed-off-by: miaohong chen <miaohong.chen@amlogic.com>
Change-Id: I3fb13e56af77045f094b1fe397cd02dd165b8060

drivers/frame_provider/decoder/h264_multi/vmh264.c

index a276fcb39e4fdbb089d359e2f2c99abbcc1f27c1..8366c053467bf4d4a748bacb56a191b33ba1a4f0 100644 (file)
@@ -9906,13 +9906,6 @@ static void h264_reset_bufmgr(struct vdec_s *vdec)
        /*hw->decode_pic_count = 0;
        hw->seq_info2 = 0;*/
 
-       if (!hw->is_used_v4l) {
-               hw->cfg_param1 = READ_VREG(AV_SCRATCH_1);
-               hw->cfg_param2 = READ_VREG(AV_SCRATCH_2);
-               hw->cfg_param3 = READ_VREG(AV_SCRATCH_6);
-               hw->cfg_param4 = READ_VREG(AV_SCRATCH_B);
-       }
-
        if (vh264_set_params(hw,
                hw->cfg_param1,
                hw->cfg_param2,