[RAMEN9610-10029][COMMON] media: mfc: fix the WAIT state for decoder DRC
authorSunyoung Kang <sy0816.kang@samsung.com>
Tue, 23 Oct 2018 09:23:23 +0000 (18:23 +0900)
committerhskang <hs1218.kang@samsung.com>
Fri, 28 Dec 2018 09:54:11 +0000 (18:54 +0900)
commitf68d3ceb9fd28e42e85bad2af309ca0387b1d20d
tree3cc053046e9e2c8a20a43d9872078e5dfdff3929
parenta60749e21410e4a586e5392090bf090061a13abc
[RAMEN9610-10029][COMMON] media: mfc: fix the WAIT state for decoder DRC

In case of UTC, it calls g_fmt after streamoff so can't out from
WAIT_DPB_FLUSH state. This modified that it can wait both g_fmt and
streamoff regardless of the order.
When DRC is detected the wait_state set to (WAIT_G_FMT | WAIT_STOP).
If the g_fmt is called WAIT_G_FMT is cleared and
if the streamoff is called WAIT_STOP is cleared.

Change-Id: I90326d191de2ba164060673e8b124227fda3a397
Signed-off-by: Sunyoung Kang <sy0816.kang@samsung.com>
drivers/media/platform/exynos/mfc/mfc_data_struct.h
drivers/media/platform/exynos/mfc/mfc_dec_v4l2.c
drivers/media/platform/exynos/mfc/mfc_dec_vb2.c
drivers/media/platform/exynos/mfc/mfc_isr.c
drivers/media/platform/exynos/mfc/mfc_nal_q.c