diff options
Diffstat (limited to 'drivers/media/video/cx231xx/cx231xx-avcore.c')
-rw-r--r-- | drivers/media/video/cx231xx/cx231xx-avcore.c | 14 |
1 files changed, 6 insertions, 8 deletions
diff --git a/drivers/media/video/cx231xx/cx231xx-avcore.c b/drivers/media/video/cx231xx/cx231xx-avcore.c index c53e97295a0d..62843d39817c 100644 --- a/drivers/media/video/cx231xx/cx231xx-avcore.c +++ b/drivers/media/video/cx231xx/cx231xx-avcore.c | |||
@@ -759,11 +759,8 @@ int cx231xx_set_decoder_video_input(struct cx231xx *dev, | |||
759 | case CX231XX_VMUX_TELEVISION: | 759 | case CX231XX_VMUX_TELEVISION: |
760 | case CX231XX_VMUX_CABLE: | 760 | case CX231XX_VMUX_CABLE: |
761 | default: | 761 | default: |
762 | switch (dev->model) { | 762 | /* TODO: Test if this is also needed for xc2028/xc3028 */ |
763 | case CX231XX_BOARD_CNXT_CARRAERA: | 763 | if (dev->board.tuner_type == TUNER_XC5000) { |
764 | case CX231XX_BOARD_CNXT_RDE_250: | ||
765 | case CX231XX_BOARD_CNXT_SHELBY: | ||
766 | case CX231XX_BOARD_CNXT_RDU_250: | ||
767 | /* Disable the use of DIF */ | 764 | /* Disable the use of DIF */ |
768 | 765 | ||
769 | status = vid_blk_read_word(dev, AFE_CTRL, &value); | 766 | status = vid_blk_read_word(dev, AFE_CTRL, &value); |
@@ -820,8 +817,7 @@ int cx231xx_set_decoder_video_input(struct cx231xx *dev, | |||
820 | MODE_CTRL, FLD_INPUT_MODE, | 817 | MODE_CTRL, FLD_INPUT_MODE, |
821 | cx231xx_set_field(FLD_INPUT_MODE, | 818 | cx231xx_set_field(FLD_INPUT_MODE, |
822 | INPUT_MODE_CVBS_0)); | 819 | INPUT_MODE_CVBS_0)); |
823 | break; | 820 | } else { |
824 | default: | ||
825 | /* Enable the DIF for the tuner */ | 821 | /* Enable the DIF for the tuner */ |
826 | 822 | ||
827 | /* Reinitialize the DIF */ | 823 | /* Reinitialize the DIF */ |
@@ -1275,6 +1271,8 @@ int cx231xx_enable_i2c_port_3(struct cx231xx *dev, bool is_port_3) | |||
1275 | int status = 0; | 1271 | int status = 0; |
1276 | bool current_is_port_3; | 1272 | bool current_is_port_3; |
1277 | 1273 | ||
1274 | if (dev->board.dont_use_port_3) | ||
1275 | is_port_3 = false; | ||
1278 | status = cx231xx_read_ctrl_reg(dev, VRT_GET_REGISTER, | 1276 | status = cx231xx_read_ctrl_reg(dev, VRT_GET_REGISTER, |
1279 | PWR_CTL_EN, value, 4); | 1277 | PWR_CTL_EN, value, 4); |
1280 | if (status < 0) | 1278 | if (status < 0) |
@@ -2550,7 +2548,7 @@ int cx231xx_initialize_stream_xfer(struct cx231xx *dev, u32 media_type) | |||
2550 | case 4: /* ts1 */ | 2548 | case 4: /* ts1 */ |
2551 | cx231xx_info("%s: set ts1 registers", __func__); | 2549 | cx231xx_info("%s: set ts1 registers", __func__); |
2552 | 2550 | ||
2553 | if (dev->model == CX231XX_BOARD_CNXT_VIDEO_GRABBER) { | 2551 | if (dev->board.has_417) { |
2554 | cx231xx_info(" MPEG\n"); | 2552 | cx231xx_info(" MPEG\n"); |
2555 | value &= 0xFFFFFFFC; | 2553 | value &= 0xFFFFFFFC; |
2556 | value |= 0x3; | 2554 | value |= 0x3; |