Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 271746
b: refs/heads/master
c: f68afe5
h: refs/heads/master
v: v3
  • Loading branch information
Hans Verkuil authored and Mauro Carvalho Chehab committed Sep 6, 2011
1 parent a02ad7d commit 5934904
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 14 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 398b0d1f058636f3950296ca07346577c02b94d6
refs/heads/master: f68afe5d45198bfe7040cf751033c6208577468c
24 changes: 11 additions & 13 deletions trunk/drivers/media/common/tuners/mt20xx.c
Original file line number Diff line number Diff line change
Expand Up @@ -430,11 +430,10 @@ static void mt2050_set_antenna(struct dvb_frontend *fe, unsigned char antenna)
{
struct microtune_priv *priv = fe->tuner_priv;
unsigned char buf[2];
int ret;

buf[0] = 6;
buf[1] = antenna ? 0x11 : 0x10;
ret=tuner_i2c_xfer_send(&priv->i2c_props,buf,2);
tuner_i2c_xfer_send(&priv->i2c_props, buf, 2);
tuner_dbg("mt2050: enabled antenna connector %d\n", antenna);
}

Expand Down Expand Up @@ -574,21 +573,20 @@ static int mt2050_init(struct dvb_frontend *fe)
{
struct microtune_priv *priv = fe->tuner_priv;
unsigned char buf[2];
int ret;

buf[0]=6;
buf[1]=0x10;
ret=tuner_i2c_xfer_send(&priv->i2c_props,buf,2); // power
buf[0] = 6;
buf[1] = 0x10;
tuner_i2c_xfer_send(&priv->i2c_props, buf, 2); /* power */

buf[0]=0x0f;
buf[1]=0x0f;
ret=tuner_i2c_xfer_send(&priv->i2c_props,buf,2); // m1lo
buf[0] = 0x0f;
buf[1] = 0x0f;
tuner_i2c_xfer_send(&priv->i2c_props, buf, 2); /* m1lo */

buf[0]=0x0d;
ret=tuner_i2c_xfer_send(&priv->i2c_props,buf,1);
tuner_i2c_xfer_recv(&priv->i2c_props,buf,1);
buf[0] = 0x0d;
tuner_i2c_xfer_send(&priv->i2c_props, buf, 1);
tuner_i2c_xfer_recv(&priv->i2c_props, buf, 1);

tuner_dbg("mt2050: sro is %x\n",buf[0]);
tuner_dbg("mt2050: sro is %x\n", buf[0]);

memcpy(&fe->ops.tuner_ops, &mt2050_tuner_ops, sizeof(struct dvb_tuner_ops));

Expand Down

0 comments on commit 5934904

Please sign in to comment.