diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2011-10-31 18:42:54 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2011-10-31 18:42:54 -0400 |
commit | 1eb63378354ac37b7e27d256bbf84684751bac32 (patch) | |
tree | 0775591a2dced778d1ba0bd8a946831e424d02d7 /drivers/media/common/tuners/mt20xx.c | |
parent | 1a4ceab195e66bce9c1638fdded6d92988100ba4 (diff) | |
parent | bac2dacd5fb9ddad093d7a2dc5ab44e764874821 (diff) |
Merge branch 'v4l_for_linus' of git://git.kernel.org/pub/scm/linux/kernel/git/mchehab/linux-media
* 'v4l_for_linus' of git://git.kernel.org/pub/scm/linux/kernel/git/mchehab/linux-media: (348 commits)
[media] pctv452e: Remove bogus code
[media] adv7175: Make use of media bus pixel codes
[media] media: vb2: fix incorrect return value
[media] em28xx: implement VIDIOC_ENUM_FRAMESIZES
[media] cx23885: Stop the risc video fifo before reconfiguring it
[media] cx23885: Avoid incorrect error handling and reporting
[media] cx23885: Avoid stopping the risc engine during buffer timeout
[media] cx23885: Removed a spurious function cx23885_set_scale()
[media] cx23885: v4l2 api compliance, set the audioset field correctly
[media] cx23885: hook the audio selection functions into the main driver
[media] cx23885: add generic functions for dealing with audio input selection
[media] cx23885: fixes related to maximum number of inputs and range checking
[media] cx23885: Initial support for the MPX-885 mini-card
[media] cx25840: Ensure AUDIO6 and AUDIO7 trigger line-in baseband use
[media] cx23885: Enable audio line in support from the back panel
[media] cx23885: Allow the audio mux config to be specified on a per input basis
[media] cx25840: Enable support for non-tuner LR1/LR2 audio inputs
[media] cx23885: Name an internal i2c part and declare a bitfield by name
[media] cx23885: Ensure VBI buffers timeout quickly - bugfix for vbi hangs during streaming
[media] cx23885: remove channel dump diagnostics when a vbi buffer times out
...
Fix up trivial conflicts in drivers/misc/altera-stapl/altera.c (header
file rename vs add)
Diffstat (limited to 'drivers/media/common/tuners/mt20xx.c')
-rw-r--r-- | drivers/media/common/tuners/mt20xx.c | 24 |
1 files changed, 11 insertions, 13 deletions
diff --git a/drivers/media/common/tuners/mt20xx.c b/drivers/media/common/tuners/mt20xx.c index d0e70e10a71..0e74e97e0d1 100644 --- a/drivers/media/common/tuners/mt20xx.c +++ b/drivers/media/common/tuners/mt20xx.c | |||
@@ -430,11 +430,10 @@ static void mt2050_set_antenna(struct dvb_frontend *fe, unsigned char antenna) | |||
430 | { | 430 | { |
431 | struct microtune_priv *priv = fe->tuner_priv; | 431 | struct microtune_priv *priv = fe->tuner_priv; |
432 | unsigned char buf[2]; | 432 | unsigned char buf[2]; |
433 | int ret; | ||
434 | 433 | ||
435 | buf[0] = 6; | 434 | buf[0] = 6; |
436 | buf[1] = antenna ? 0x11 : 0x10; | 435 | buf[1] = antenna ? 0x11 : 0x10; |
437 | ret=tuner_i2c_xfer_send(&priv->i2c_props,buf,2); | 436 | tuner_i2c_xfer_send(&priv->i2c_props, buf, 2); |
438 | tuner_dbg("mt2050: enabled antenna connector %d\n", antenna); | 437 | tuner_dbg("mt2050: enabled antenna connector %d\n", antenna); |
439 | } | 438 | } |
440 | 439 | ||
@@ -574,21 +573,20 @@ static int mt2050_init(struct dvb_frontend *fe) | |||
574 | { | 573 | { |
575 | struct microtune_priv *priv = fe->tuner_priv; | 574 | struct microtune_priv *priv = fe->tuner_priv; |
576 | unsigned char buf[2]; | 575 | unsigned char buf[2]; |
577 | int ret; | ||
578 | 576 | ||
579 | buf[0]=6; | 577 | buf[0] = 6; |
580 | buf[1]=0x10; | 578 | buf[1] = 0x10; |
581 | ret=tuner_i2c_xfer_send(&priv->i2c_props,buf,2); // power | 579 | tuner_i2c_xfer_send(&priv->i2c_props, buf, 2); /* power */ |
582 | 580 | ||
583 | buf[0]=0x0f; | 581 | buf[0] = 0x0f; |
584 | buf[1]=0x0f; | 582 | buf[1] = 0x0f; |
585 | ret=tuner_i2c_xfer_send(&priv->i2c_props,buf,2); // m1lo | 583 | tuner_i2c_xfer_send(&priv->i2c_props, buf, 2); /* m1lo */ |
586 | 584 | ||
587 | buf[0]=0x0d; | 585 | buf[0] = 0x0d; |
588 | ret=tuner_i2c_xfer_send(&priv->i2c_props,buf,1); | 586 | tuner_i2c_xfer_send(&priv->i2c_props, buf, 1); |
589 | tuner_i2c_xfer_recv(&priv->i2c_props,buf,1); | 587 | tuner_i2c_xfer_recv(&priv->i2c_props, buf, 1); |
590 | 588 | ||
591 | tuner_dbg("mt2050: sro is %x\n",buf[0]); | 589 | tuner_dbg("mt2050: sro is %x\n", buf[0]); |
592 | 590 | ||
593 | memcpy(&fe->ops.tuner_ops, &mt2050_tuner_ops, sizeof(struct dvb_tuner_ops)); | 591 | memcpy(&fe->ops.tuner_ops, &mt2050_tuner_ops, sizeof(struct dvb_tuner_ops)); |
594 | 592 | ||