MA-15552 VPU decoder: reset seek_flag and wait_res_change_done in time
authorShijie Qin <shijie.qin@nxp.com>
Wed, 23 Oct 2019 02:56:20 +0000 (10:56 +0800)
committerShijie Qin <shijie.qin@nxp.com>
Thu, 24 Oct 2019 11:00:06 +0000 (19:00 +0800)
commit1f3e50481d7c8016407dc40c6cbb01f1568484bd
tree4ad3a4a9b71c76e47e47d79db20161a0ede571c4
parentadeb7f7042fe57cf26aa77c9607ee9ce65096478
MA-15552 VPU decoder: reset seek_flag and wait_res_change_done in time

Reset seek_flag and wait_res_change_done when receive
VID_API_EVENT_STOPPED event.

This also can fix an Andorid case indirectly:
Seek in the beginning, but has not do capture port streamoff/on
when receive res changed event, then will cause seek_flag status
incorrect.
If abort before receive seq_hdr_found evnt will call stop cmd to
fw, then will reset seek_flag and wait_res_change_done.

Signed-off-by: Shijie Qin <shijie.qin@nxp.com>
Reviewed-by: ming_qian <ming.qian@nxp.com>
(cherry picked from commit 93019dc136f9ad3c294e6b4be73049977895aed4)
drivers/mxc/vpu_malone/vpu_b0.c