PD#SWPL-32609
Problem:
Sometimes the avs decoder driver remove,
the hardware did not stop completely, causing bus
lock issue.
Solution:
Resolve this problem by reset the
decoder hardware to stop it when avs driver remove.
Verify:
AB311
Change-Id: I79a83068e6cd83134e2430aee4c0a8f32a440436
Signed-off-by: Peng yixin <yixin.peng@amlogic.com>
amvdec_disable();
+ if (get_cpu_major_id() >= AM_MESON_CPU_MAJOR_ID_TM2)
+ vdec_reset_core(NULL);
pic_type = 0;
if (mm_blk_handle) {
decoder_bmmu_box_free(mm_blk_handle);