MLK-22753: VPU Decoder: fix stop timeout caused by waiting res change
authorming_qian <ming.qian@nxp.com>
Mon, 14 Oct 2019 08:26:25 +0000 (16:26 +0800)
committerShijie Qin <shijie.qin@nxp.com>
Thu, 24 Oct 2019 10:57:16 +0000 (18:57 +0800)
commitde8b64ce6f03b49bfa591e7bc4569141502d9319
treea04dfb718cac4b2fa49cc533e42e917d0121424c
parenta374f6fe889c1e4e657b5a293c51e3cb1a21bd6b
MLK-22753: VPU Decoder: fix stop timeout caused by waiting res change

If firmware report sequence header twice,
and the user don't support the format, such as 10-bit NV12,
user may close vpu decoder directly, it will send stop cmd.
but when driver receive the second sequence header event,
it may waiting for resolution change done,
it'll block the stop command, and cause it timeout.

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