aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/media/video/cx23885/cx23885-cards.c
diff options
context:
space:
mode:
authorDavid T.L. Wong <davidtlwong@gmail.com>2009-10-21 10:09:28 -0400
committerMauro Carvalho Chehab <mchehab@redhat.com>2009-12-05 15:40:53 -0500
commitbc1548adbee02899c7db5cd045bb0d799b220dce (patch)
tree1af267c525926c24efe28a46283244b49005e45d /drivers/media/video/cx23885/cx23885-cards.c
parentfd705e7cd8ef61efc443b90f94afed42beabeacd (diff)
V4L/DVB (13209): cx23885: card mygica x8506 add analog video input support
Signed-off-by: David T. L. Wong <davidtlwong@gmail.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers/media/video/cx23885/cx23885-cards.c')
-rw-r--r--drivers/media/video/cx23885/cx23885-cards.c42
1 files changed, 42 insertions, 0 deletions
diff --git a/drivers/media/video/cx23885/cx23885-cards.c b/drivers/media/video/cx23885/cx23885-cards.c
index c0e2409f3cbd..7438e79a8efd 100644
--- a/drivers/media/video/cx23885/cx23885-cards.c
+++ b/drivers/media/video/cx23885/cx23885-cards.c
@@ -200,11 +200,51 @@ struct cx23885_board cx23885_boards[] = {
200 }, 200 },
201 [CX23885_BOARD_MYGICA_X8506] = { 201 [CX23885_BOARD_MYGICA_X8506] = {
202 .name = "Mygica X8506 DMB-TH", 202 .name = "Mygica X8506 DMB-TH",
203 .tuner_type = TUNER_ABSENT,
204 .porta = CX23885_ANALOG_VIDEO,
203 .portb = CX23885_MPEG_DVB, 205 .portb = CX23885_MPEG_DVB,
206 .input = {
207 {
208 .type = CX23885_VMUX_COMPOSITE1,
209 .vmux = CX25840_COMPOSITE8,
210 },
211 {
212 .type = CX23885_VMUX_SVIDEO,
213 .vmux = CX25840_SVIDEO_LUMA3 |
214 CX25840_SVIDEO_CHROMA4,
215 },
216 {
217 .type = CX23885_VMUX_COMPONENT,
218 .vmux = CX25840_COMPONENT_ON |
219 CX25840_VIN1_CH1 |
220 CX25840_VIN6_CH2 |
221 CX25840_VIN7_CH3,
222 },
223 },
204 }, 224 },
205 [CX23885_BOARD_MAGICPRO_PROHDTVE2] = { 225 [CX23885_BOARD_MAGICPRO_PROHDTVE2] = {
206 .name = "Magic-Pro ProHDTV Extreme 2", 226 .name = "Magic-Pro ProHDTV Extreme 2",
227 .tuner_type = TUNER_ABSENT,
228 .porta = CX23885_ANALOG_VIDEO,
207 .portb = CX23885_MPEG_DVB, 229 .portb = CX23885_MPEG_DVB,
230 .input = {
231 {
232 .type = CX23885_VMUX_COMPOSITE1,
233 .vmux = CX25840_COMPOSITE8,
234 },
235 {
236 .type = CX23885_VMUX_SVIDEO,
237 .vmux = CX25840_SVIDEO_LUMA3 |
238 CX25840_SVIDEO_CHROMA4,
239 },
240 {
241 .type = CX23885_VMUX_COMPONENT,
242 .vmux = CX25840_COMPONENT_ON |
243 CX25840_VIN1_CH1 |
244 CX25840_VIN6_CH2 |
245 CX25840_VIN7_CH3,
246 },
247 },
208 }, 248 },
209 [CX23885_BOARD_HAUPPAUGE_HVR1850] = { 249 [CX23885_BOARD_HAUPPAUGE_HVR1850] = {
210 .name = "Hauppauge WinTV-HVR1850", 250 .name = "Hauppauge WinTV-HVR1850",
@@ -970,6 +1010,8 @@ void cx23885_card_setup(struct cx23885_dev *dev)
970 case CX23885_BOARD_NETUP_DUAL_DVBS2_CI: 1010 case CX23885_BOARD_NETUP_DUAL_DVBS2_CI:
971 case CX23885_BOARD_COMPRO_VIDEOMATE_E800: 1011 case CX23885_BOARD_COMPRO_VIDEOMATE_E800:
972 case CX23885_BOARD_HAUPPAUGE_HVR1850: 1012 case CX23885_BOARD_HAUPPAUGE_HVR1850:
1013 case CX23885_BOARD_MYGICA_X8506:
1014 case CX23885_BOARD_MAGICPRO_PROHDTVE2:
973 dev->sd_cx25840 = v4l2_i2c_new_subdev(&dev->v4l2_dev, 1015 dev->sd_cx25840 = v4l2_i2c_new_subdev(&dev->v4l2_dev,
974 &dev->i2c_bus[2].i2c_adap, 1016 &dev->i2c_bus[2].i2c_adap,
975 "cx25840", "cx25840", 0x88 >> 1, NULL); 1017 "cx25840", "cx25840", 0x88 >> 1, NULL);