diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2011-01-06 21:32:12 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2011-01-06 21:32:12 -0500 |
commit | 9e9bc9736756f25d6c47b4eba0ebf25b20a6f153 (patch) | |
tree | 647240f479c5f23910c3e6194d1c35b6ba54d75e /drivers/media/video/cx231xx/cx231xx-avcore.c | |
parent | 3c0cb7c31c206aaedb967e44b98442bbeb17a6c4 (diff) | |
parent | e3c92215198cb6aa00ad38db2780faa6b72e0a3f (diff) |
Merge branch 'v4l_for_linus' of git://git.kernel.org/pub/scm/linux/kernel/git/mchehab/linux-2.6
* 'v4l_for_linus' of git://git.kernel.org/pub/scm/linux/kernel/git/mchehab/linux-2.6: (255 commits)
[media] radio-aimslab.c: Fix gcc 4.5+ bug
[media] cx25821: Fix compilation breakage due to BKL dependency
[media] v4l2-compat-ioctl32: fix compile warning
[media] zoran: fix compiler warning
[media] tda18218: fix compile warning
[media] ngene: fix compile warning
[media] DVB: IR support for TechnoTrend CT-3650
[media] cx23885, cimax2.c: Fix case of two CAM insertion irq
[media] ir-nec-decoder: fix repeat key issue
[media] staging: se401 depends on USB
[media] staging: usbvideo/vicam depends on USB
[media] soc_camera: Add the ability to bind regulators to soc_camedra devices
[media] V4L2: Add a v4l2-subdev (soc-camera) driver for OmniVision OV2640 sensor
[media] v4l: soc-camera: switch to .unlocked_ioctl
[media] v4l: ov772x: simplify pointer dereference
[media] ov9640: fix OmniVision OV9640 sensor driver's priv data retrieving
[media] ov9640: use macro to request OmniVision OV9640 sensor private data
[media] ivtv-i2c: Fix two warnings
[media] staging/lirc: Update lirc TODO files
[media] cx88: Remove the obsolete i2c_adapter.id field
...
Diffstat (limited to 'drivers/media/video/cx231xx/cx231xx-avcore.c')
-rw-r--r-- | drivers/media/video/cx231xx/cx231xx-avcore.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/drivers/media/video/cx231xx/cx231xx-avcore.c b/drivers/media/video/cx231xx/cx231xx-avcore.c index cf50fafa8abb..c53e97295a0d 100644 --- a/drivers/media/video/cx231xx/cx231xx-avcore.c +++ b/drivers/media/video/cx231xx/cx231xx-avcore.c | |||
@@ -274,7 +274,7 @@ int cx231xx_afe_set_input_mux(struct cx231xx *dev, u32 input_mux) | |||
274 | 274 | ||
275 | if (ch1_setting != 0) { | 275 | if (ch1_setting != 0) { |
276 | status = afe_read_byte(dev, ADC_INPUT_CH1, &value); | 276 | status = afe_read_byte(dev, ADC_INPUT_CH1, &value); |
277 | value &= (!INPUT_SEL_MASK); | 277 | value &= ~INPUT_SEL_MASK; |
278 | value |= (ch1_setting - 1) << 4; | 278 | value |= (ch1_setting - 1) << 4; |
279 | value &= 0xff; | 279 | value &= 0xff; |
280 | status = afe_write_byte(dev, ADC_INPUT_CH1, value); | 280 | status = afe_write_byte(dev, ADC_INPUT_CH1, value); |
@@ -282,7 +282,7 @@ int cx231xx_afe_set_input_mux(struct cx231xx *dev, u32 input_mux) | |||
282 | 282 | ||
283 | if (ch2_setting != 0) { | 283 | if (ch2_setting != 0) { |
284 | status = afe_read_byte(dev, ADC_INPUT_CH2, &value); | 284 | status = afe_read_byte(dev, ADC_INPUT_CH2, &value); |
285 | value &= (!INPUT_SEL_MASK); | 285 | value &= ~INPUT_SEL_MASK; |
286 | value |= (ch2_setting - 1) << 4; | 286 | value |= (ch2_setting - 1) << 4; |
287 | value &= 0xff; | 287 | value &= 0xff; |
288 | status = afe_write_byte(dev, ADC_INPUT_CH2, value); | 288 | status = afe_write_byte(dev, ADC_INPUT_CH2, value); |
@@ -292,7 +292,7 @@ int cx231xx_afe_set_input_mux(struct cx231xx *dev, u32 input_mux) | |||
292 | 7 less than the input number */ | 292 | 7 less than the input number */ |
293 | if (ch3_setting != 0) { | 293 | if (ch3_setting != 0) { |
294 | status = afe_read_byte(dev, ADC_INPUT_CH3, &value); | 294 | status = afe_read_byte(dev, ADC_INPUT_CH3, &value); |
295 | value &= (!INPUT_SEL_MASK); | 295 | value &= ~INPUT_SEL_MASK; |
296 | value |= (ch3_setting - 1) << 4; | 296 | value |= (ch3_setting - 1) << 4; |
297 | value &= 0xff; | 297 | value &= 0xff; |
298 | status = afe_write_byte(dev, ADC_INPUT_CH3, value); | 298 | status = afe_write_byte(dev, ADC_INPUT_CH3, value); |
@@ -354,6 +354,7 @@ int cx231xx_afe_update_power_control(struct cx231xx *dev, | |||
354 | case CX231XX_BOARD_CNXT_VIDEO_GRABBER: | 354 | case CX231XX_BOARD_CNXT_VIDEO_GRABBER: |
355 | case CX231XX_BOARD_HAUPPAUGE_EXETER: | 355 | case CX231XX_BOARD_HAUPPAUGE_EXETER: |
356 | case CX231XX_BOARD_HAUPPAUGE_USBLIVE2: | 356 | case CX231XX_BOARD_HAUPPAUGE_USBLIVE2: |
357 | case CX231XX_BOARD_PV_PLAYTV_USB_HYBRID: | ||
357 | if (avmode == POLARIS_AVMODE_ANALOGT_TV) { | 358 | if (avmode == POLARIS_AVMODE_ANALOGT_TV) { |
358 | while (afe_power_status != (FLD_PWRDN_TUNING_BIAS | | 359 | while (afe_power_status != (FLD_PWRDN_TUNING_BIAS | |
359 | FLD_PWRDN_ENABLE_PLL)) { | 360 | FLD_PWRDN_ENABLE_PLL)) { |