media_modules: fixed cannot run multi dec [1/2]

PD#SWPL-1964

Problem:
multi play seized up.

Solution:
fix fw load failed in multi dec

Verify:
veryfy by u212

Change-Id: Icc90e171f46b3137375456298bc8562917d4efa3
Signed-off-by: shihong.zheng <shihong.zheng@amlogic.com>
This commit is contained in:
shihong.zheng
2018-11-09 17:48:40 +08:00
committed by Dongjin Kim
parent 0ceb223ea4
commit 43daee674f

View File

@@ -2253,6 +2253,7 @@ static int vdec_core_thread(void *data)
if ((lastvdec != vdec) && (lastvdec->mc_type != vdec->mc_type))
vdec->mc_loaded = 0;/*clear for reload firmware*/
}
lastvdec = vdec;
if (debug & 2)
vdec->mc_loaded = 0;/*alway reload firmware*/
vdec_set_status(vdec, VDEC_STATUS_ACTIVE);
@@ -2280,6 +2281,7 @@ static int vdec_core_thread(void *data)
list_for_each_entry_safe(vdec, tmp, &disconnecting_list, list) {
list_del(&vdec->list);
vdec_set_status(vdec, VDEC_STATUS_DISCONNECTED);
lastvdec = NULL;
complete(&vdec->inactive_done);
}