summaryrefslogtreecommitdiff
path: root/include/dt-bindings/media
diff options
context:
space:
mode:
authorJavier Martinez Canillas <javier@osg.samsung.com>2016-02-05 22:09:58 +0300
committerMauro Carvalho Chehab <mchehab@osg.samsung.com>2016-02-11 16:11:29 +0300
commitf7b4b54e63643b740c598e044874c4bffa0f04f2 (patch)
tree842f95718a7eb8306d5e22e816867739bbbb1a3b /include/dt-bindings/media
parent82c2ffeb217a024084f3ad0bf3705f5661365804 (diff)
downloadlinux-f7b4b54e63643b740c598e044874c4bffa0f04f2.tar.xz
[media] tvp5150: add HW input connectors support
The tvp5150 decoder has different input connectors. The actual list of HW inputs depends on the device version but all have at least these 3: 1) Composite0 2) Composite1 3) S-Video and some variants have a 4th possible input connector: 4) Signal generator The driver currently uses the .s_routing callback to switch the input connector but since these are separate HW blocks, it's better to use media entities to represent the input connectors and their source pads linked with the decoder's sink pad. This allows user-space to use the MEDIA_IOC_SETUP_LINK ioctl to choose the input connector. For example using the media-ctl user-space tool: $ media-ctl -r -l '"Composite0":0->"tvp5150 1-005c":0[1]' Signed-off-by: Javier Martinez Canillas <javier@osg.samsung.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
Diffstat (limited to 'include/dt-bindings/media')
-rw-r--r--include/dt-bindings/media/tvp5150.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/dt-bindings/media/tvp5150.h b/include/dt-bindings/media/tvp5150.h
index dc347569854f..d30865222082 100644
--- a/include/dt-bindings/media/tvp5150.h
+++ b/include/dt-bindings/media/tvp5150.h
@@ -27,6 +27,8 @@
#define TVP5150_SVIDEO 2
#define TVP5150_GENERATOR 3
+#define TVP5150_INPUT_NUM 4
+
/* TVP5150 HW outputs */
#define TVP5150_NORMAL 0
#define TVP5150_BLACK_SCREEN 1