aboutsummaryrefslogtreecommitdiffstats
path: root/include/media
diff options
context:
space:
mode:
authorMats Randgaard <matrandg@cisco.com>2013-12-10 07:45:00 -0500
committerMauro Carvalho Chehab <m.chehab@samsung.com>2014-01-07 02:51:39 -0500
commit4a31a93a71e9d5d32945aa6f9a5de59ce3be2b94 (patch)
treefa59e3d0049045f4c7e99900b79d5d01d957d53d /include/media
parent928b0fe7839dd5b91c75d70ca552ece3e893ece9 (diff)
[media] adv7604: add support for all the digital input ports
The adv7604 supports four digital input ports. This patch adds support for all of them, instead of just port A. Signed-off-by: Mats Randgaard <matrandg@cisco.com> Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com> Signed-off-by: Mauro Carvalho Chehab <m.chehab@samsung.com>
Diffstat (limited to 'include/media')
-rw-r--r--include/media/adv7604.h20
1 files changed, 12 insertions, 8 deletions
diff --git a/include/media/adv7604.h b/include/media/adv7604.h
index dc004bc926c9..0c96e169dbe3 100644
--- a/include/media/adv7604.h
+++ b/include/media/adv7604.h
@@ -131,16 +131,20 @@ struct adv7604_platform_data {
131 u8 i2c_vdp; 131 u8 i2c_vdp;
132}; 132};
133 133
134/* 134enum adv7604_input_port {
135 * Mode of operation. 135 ADV7604_INPUT_HDMI_PORT_A,
136 * This is used as the input argument of the s_routing video op. 136 ADV7604_INPUT_HDMI_PORT_B,
137 */ 137 ADV7604_INPUT_HDMI_PORT_C,
138enum adv7604_mode { 138 ADV7604_INPUT_HDMI_PORT_D,
139 ADV7604_MODE_COMP, 139 ADV7604_INPUT_VGA_RGB,
140 ADV7604_MODE_GR, 140 ADV7604_INPUT_VGA_COMP,
141 ADV7604_MODE_HDMI,
142}; 141};
143 142
143#define ADV7604_EDID_PORT_A 0
144#define ADV7604_EDID_PORT_B 1
145#define ADV7604_EDID_PORT_C 2
146#define ADV7604_EDID_PORT_D 3
147
144#define V4L2_CID_ADV_RX_ANALOG_SAMPLING_PHASE (V4L2_CID_DV_CLASS_BASE + 0x1000) 148#define V4L2_CID_ADV_RX_ANALOG_SAMPLING_PHASE (V4L2_CID_DV_CLASS_BASE + 0x1000)
145#define V4L2_CID_ADV_RX_FREE_RUN_COLOR_MANUAL (V4L2_CID_DV_CLASS_BASE + 0x1001) 149#define V4L2_CID_ADV_RX_FREE_RUN_COLOR_MANUAL (V4L2_CID_DV_CLASS_BASE + 0x1001)
146#define V4L2_CID_ADV_RX_FREE_RUN_COLOR (V4L2_CID_DV_CLASS_BASE + 0x1002) 150#define V4L2_CID_ADV_RX_FREE_RUN_COLOR (V4L2_CID_DV_CLASS_BASE + 0x1002)