diff options
Diffstat (limited to 'drivers/media/video/cx231xx/cx231xx-core.c')
-rw-r--r-- | drivers/media/video/cx231xx/cx231xx-core.c | 16 |
1 files changed, 7 insertions, 9 deletions
diff --git a/drivers/media/video/cx231xx/cx231xx-core.c b/drivers/media/video/cx231xx/cx231xx-core.c index 7d62d58617f5..abe500feb7dd 100644 --- a/drivers/media/video/cx231xx/cx231xx-core.c +++ b/drivers/media/video/cx231xx/cx231xx-core.c | |||
@@ -571,6 +571,8 @@ int cx231xx_set_alt_setting(struct cx231xx *dev, u8 index, u8 alt) | |||
571 | alt]; | 571 | alt]; |
572 | break; | 572 | break; |
573 | case INDEX_VANC: | 573 | case INDEX_VANC: |
574 | if (dev->board.no_alt_vanc) | ||
575 | return 0; | ||
574 | usb_interface_index = | 576 | usb_interface_index = |
575 | dev->current_pcb_config.hs_config_info[0].interface_info. | 577 | dev->current_pcb_config.hs_config_info[0].interface_info. |
576 | vanc_index + 1; | 578 | vanc_index + 1; |
@@ -600,8 +602,7 @@ int cx231xx_set_alt_setting(struct cx231xx *dev, u8 index, u8 alt) | |||
600 | usb_interface_index, alt); | 602 | usb_interface_index, alt); |
601 | /*To workaround error number=-71 on EP0 for videograbber, | 603 | /*To workaround error number=-71 on EP0 for videograbber, |
602 | need add following codes.*/ | 604 | need add following codes.*/ |
603 | if (dev->model != CX231XX_BOARD_CNXT_VIDEO_GRABBER && | 605 | if (dev->board.no_alt_vanc) |
604 | dev->model != CX231XX_BOARD_HAUPPAUGE_USBLIVE2) | ||
605 | return -1; | 606 | return -1; |
606 | } | 607 | } |
607 | 608 | ||
@@ -1301,8 +1302,7 @@ int cx231xx_dev_init(struct cx231xx *dev) | |||
1301 | /* init hardware */ | 1302 | /* init hardware */ |
1302 | /* Note : with out calling set power mode function, | 1303 | /* Note : with out calling set power mode function, |
1303 | afe can not be set up correctly */ | 1304 | afe can not be set up correctly */ |
1304 | if (dev->model == CX231XX_BOARD_CNXT_VIDEO_GRABBER || | 1305 | if (dev->board.external_av) { |
1305 | dev->model == CX231XX_BOARD_HAUPPAUGE_USBLIVE2) { | ||
1306 | errCode = cx231xx_set_power_mode(dev, | 1306 | errCode = cx231xx_set_power_mode(dev, |
1307 | POLARIS_AVMODE_ENXTERNAL_AV); | 1307 | POLARIS_AVMODE_ENXTERNAL_AV); |
1308 | if (errCode < 0) { | 1308 | if (errCode < 0) { |
@@ -1322,11 +1322,9 @@ int cx231xx_dev_init(struct cx231xx *dev) | |||
1322 | } | 1322 | } |
1323 | } | 1323 | } |
1324 | 1324 | ||
1325 | /* reset the Tuner */ | 1325 | /* reset the Tuner, if it is a Xceive tuner */ |
1326 | if ((dev->model == CX231XX_BOARD_CNXT_CARRAERA) || | 1326 | if ((dev->board.tuner_type == TUNER_XC5000) || |
1327 | (dev->model == CX231XX_BOARD_CNXT_RDE_250) || | 1327 | (dev->board.tuner_type == TUNER_XC2028)) |
1328 | (dev->model == CX231XX_BOARD_CNXT_SHELBY) || | ||
1329 | (dev->model == CX231XX_BOARD_CNXT_RDU_250)) | ||
1330 | cx231xx_gpio_set(dev, dev->board.tuner_gpio); | 1328 | cx231xx_gpio_set(dev, dev->board.tuner_gpio); |
1331 | 1329 | ||
1332 | /* initialize Colibri block */ | 1330 | /* initialize Colibri block */ |