From: miaohong chen Date: Fri, 8 Jan 2021 06:10:45 +0000 (+0800) Subject: vmh264: Play special stream,enter PIP,video freeze in PIP window [1/1] X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=7017393a306c061afe295102d272201a8cb34809;p=GitHub%2FLineageOS%2FG12%2Fandroid_hardware_amlogic_kernel-modules_media.git vmh264: Play special stream,enter PIP,video freeze in PIP window [1/1] 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 Change-Id: I3fb13e56af77045f094b1fe397cd02dd165b8060 --- diff --git a/drivers/frame_provider/decoder/h264_multi/vmh264.c b/drivers/frame_provider/decoder/h264_multi/vmh264.c index a276fcb..8366c05 100644 --- a/drivers/frame_provider/decoder/h264_multi/vmh264.c +++ b/drivers/frame_provider/decoder/h264_multi/vmh264.c @@ -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,