]> git.karo-electronics.de Git - linux-beck.git/commitdiff
[media] v4l2-mc: add analog TV demodulator pad index macros
authorMauro Carvalho Chehab <mchehab@osg.samsung.com>
Fri, 29 Jan 2016 09:00:57 +0000 (07:00 -0200)
committerMauro Carvalho Chehab <mchehab@osg.samsung.com>
Mon, 1 Feb 2016 09:24:13 +0000 (07:24 -0200)
We also need to standardize the PAD index macros for demods,
as they all should look the same in a media graph.

Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
include/media/v4l2-mc.h

index 6a6ef5bc767eeea2d032391b0efe0ccf01f968e8..df115195690ea811b0c3ddab5c86b7191720a1bf 100644 (file)
@@ -74,3 +74,18 @@ enum if_aud_dec_pad_index {
        IF_AUD_DEC_PAD_OUT,
        IF_AUD_DEC_PAD_NUM_PADS
 };
+
+/**
+ * enum demod_pad_index - analog TV pad index for MEDIA_ENT_F_ATV_DECODER
+ *
+ * @DEMOD_PAD_IF_INPUT:        IF input sink pad.
+ * @DEMOD_PAD_VID_OUT: Video output source pad.
+ * @DEMOD_PAD_VBI_OUT: Vertical Blank Interface (VBI) output source pad.
+ * @DEMOD_NUM_PADS:    Maximum number of output pads.
+ */
+enum demod_pad_index {
+       DEMOD_PAD_IF_INPUT,
+       DEMOD_PAD_VID_OUT,
+       DEMOD_PAD_VBI_OUT,
+       DEMOD_NUM_PADS
+};