diff options
author | David T.L. Wong <davidtlwong@gmail.com> | 2009-10-21 12:15:30 -0400 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | 2009-12-05 15:40:54 -0500 |
commit | 6f0d8c020ecff4acb959627109d3b81ded211b70 (patch) | |
tree | 1a94219980bae7ccaf526009ecdfdd1edaa59e4a /drivers/media/video/cx23885/cx23885-video.c | |
parent | 8e069bb9aeb4250dd062bb136f4b3db5c4c530ff (diff) |
V4L/DVB (13211): cx23885: card Mygica X8506 analog TV 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-video.c')
-rw-r--r-- | drivers/media/video/cx23885/cx23885-video.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/drivers/media/video/cx23885/cx23885-video.c b/drivers/media/video/cx23885/cx23885-video.c index e14cb39d8412..8b372b4f0de2 100644 --- a/drivers/media/video/cx23885/cx23885-video.c +++ b/drivers/media/video/cx23885/cx23885-video.c | |||
@@ -402,6 +402,13 @@ static int cx23885_video_mux(struct cx23885_dev *dev, unsigned int input) | |||
402 | INPUT(input)->gpio2, INPUT(input)->gpio3); | 402 | INPUT(input)->gpio2, INPUT(input)->gpio3); |
403 | dev->input = input; | 403 | dev->input = input; |
404 | 404 | ||
405 | if (dev->board == CX23885_BOARD_MYGICA_X8506 || | ||
406 | dev->board == CX23885_BOARD_MAGICPRO_PROHDTVE2) { | ||
407 | /* Select Analog TV */ | ||
408 | if (INPUT(input)->type == CX23885_VMUX_TELEVISION) | ||
409 | cx23885_gpio_clear(dev, GPIO_0); | ||
410 | } | ||
411 | |||
405 | /* Tell the internal A/V decoder */ | 412 | /* Tell the internal A/V decoder */ |
406 | v4l2_subdev_call(dev->sd_cx25840, video, s_routing, | 413 | v4l2_subdev_call(dev->sd_cx25840, video, s_routing, |
407 | INPUT(input)->vmux, 0, 0); | 414 | INPUT(input)->vmux, 0, 0); |
@@ -1508,6 +1515,7 @@ int cx23885_video_register(struct cx23885_dev *dev) | |||
1508 | tun_setup.mode_mask = T_ANALOG_TV; | 1515 | tun_setup.mode_mask = T_ANALOG_TV; |
1509 | tun_setup.type = dev->tuner_type; | 1516 | tun_setup.type = dev->tuner_type; |
1510 | tun_setup.addr = v4l2_i2c_subdev_addr(sd); | 1517 | tun_setup.addr = v4l2_i2c_subdev_addr(sd); |
1518 | tun_setup.tuner_callback = cx23885_tuner_callback; | ||
1511 | 1519 | ||
1512 | v4l2_subdev_call(sd, tuner, s_type_addr, &tun_setup); | 1520 | v4l2_subdev_call(sd, tuner, s_type_addr, &tun_setup); |
1513 | } | 1521 | } |