msm: vidc: Add flush for video codecs

Add support to flush input/output buffers. This will flush
the buffers being held by firmware or video driver and
return them to client. This operation is usually used
by an application during seek operation or while
closing the driver.

Change-Id: I61d3d8f94eeeeeea0e4c40460bebfd7873f428df
Signed-off-by: Vinay Kalia <vkalia@codeaurora.org>
diff --git a/include/linux/videodev2.h b/include/linux/videodev2.h
index 78b5b84..7b5aa0b 100644
--- a/include/linux/videodev2.h
+++ b/include/linux/videodev2.h
@@ -2074,6 +2074,7 @@
 #define V4L2_ENC_CMD_STOP       (1)
 #define V4L2_ENC_CMD_PAUSE      (2)
 #define V4L2_ENC_CMD_RESUME     (3)
+#define V4L2_ENC_QCOM_CMD_FLUSH  (4)
 
 /* Flags for V4L2_ENC_CMD_STOP */
 #define V4L2_ENC_CMD_STOP_AT_GOP_END    (1 << 0)
@@ -2111,6 +2112,9 @@
 #define V4L2_DEC_QCOM_CMD_FLUSH_OUTPUT  (1 << 0)
 #define V4L2_DEC_QCOM_CMD_FLUSH_CAPTURE (1 << 1)
 
+#define V4L2_QCOM_CMD_FLUSH_OUTPUT  (1 << 0)
+#define V4L2_QCOM_CMD_FLUSH_CAPTURE (1 << 1)
+
 /* Play format requirements (returned by the driver): */
 
 /* The decoder has no special format requirements */