s5p-mfc: fix state check from encoder queue_setup 89/40389/1
authorSeung-Woo Kim <sw0312.kim@samsung.com>
Wed, 13 May 2015 04:44:39 +0000 (13:44 +0900)
committerSeung-Woo Kim <sw0312.kim@samsung.com>
Wed, 3 Jun 2015 07:49:03 +0000 (16:49 +0900)
commitcf3e0596a6a849ac2bf11532b310d9f857aa58b6
treef9988903800cb95407e5483b0a01193eb42c9c10
parent613dd6cec92929a8a718951b15f7eaec8017ab33
s5p-mfc: fix state check from encoder queue_setup

MFCINST_GOT_INST state is set to encoder context with set_format
only for catpure buffer. In queue_setup of encoder called during
reqbufs, it is checked MFCINST_GOT_INST state for both capture
and output buffer. So this patch fixes to encoder to check
MFCINST_GOT_INST state only for capture buffer from queue_setup.

Change-Id: I53997d92ebf8a9bda804d101f2daf8d9731e4a47
Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com>
drivers/media/platform/s5p-mfc/s5p_mfc_enc.c