mh264: reload ucode when decode error. [1/1]
authorshihong.zheng <shihong.zheng@amlogic.com>
Thu, 24 Oct 2019 09:31:28 +0000 (17:31 +0800)
committershihong.zheng <shihong.zheng@amlogic.com>
Thu, 24 Oct 2019 09:36:20 +0000 (17:36 +0800)
commit4c3eb8b21aefebf9ad79c90cc9d37c1a9e69d8ca
treef9a80b6f20c1e40d82aecb1a5cb11deabc6e5450
parentf2fdaa2fc32a1946bda1f48ea79479b3338d7531
mh264: reload ucode when decode error. [1/1]

PD#SWPL-14162

Problem:
h264 can not decode out frame when reboot or
hot plug signal cable.
pmem ucode may switch to swap code. and decode
timeout or other error, then amvdec_stop, the
pmem ucode cannot start decode when start next
frame, so need reload ucode.

Solution:
reload ucode to avoid the swap code in pmem when
start decode.

Verify:
x301

Change-Id: Id55054599b90b2baab5d5a0ccff191e1186a03ad
Signed-off-by: shihong.zheng <shihong.zheng@amlogic.com>
drivers/frame_provider/decoder/h264_multi/vmh264.c