mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-10 12:57:06 +09:00
vh264: fix channel switching system hangup issue in vh264 remove [1/1]
PD#SWPL-6377 Problem: hw bus dead lock in h264 remove. Solution: wait for decoder hw stopped completely before h264 remove Verify: X301 Change-Id: Ia3555e687ecfe452948922d3e221c0fae0ad499d Signed-off-by: Hui Zhang <hui.zhang@amlogic.com>
This commit is contained in:
@@ -3712,11 +3712,10 @@ static int amvdec_h264_remove(struct platform_device *pdev)
|
||||
cancel_work_sync(¬ify_work);
|
||||
cancel_work_sync(&set_clk_work);
|
||||
cancel_work_sync(&userdata_push_work);
|
||||
|
||||
mutex_lock(&vh264_mutex);
|
||||
vh264_stop(MODE_FULL);
|
||||
wait_vh264_search_done();
|
||||
mutex_lock(&vh264_mutex);
|
||||
vdec_source_changed(VFORMAT_H264, 0, 0, 0);
|
||||
|
||||
#ifdef DUMP_USER_DATA
|
||||
vh264_dump_userdata();
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user