Skip to content

Commit

Permalink
[media] r820t: put it into automatic gain mode
Browse files Browse the repository at this point in the history
Currently, it is putting it on manual mode.

Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Tested-by: Antti Palosaari <crope@iki.fi>
  • Loading branch information
Mauro Carvalho Chehab committed Apr 17, 2013
1 parent f265889 commit b5e2b97
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions drivers/media/tuners/r820t.c
Original file line number Diff line number Diff line change
Expand Up @@ -1216,12 +1216,12 @@ static int r820t_set_gain_mode(struct r820t_priv *priv,
return rc;
} else {
/* LNA */
rc = r820t_write_reg_mask(priv, 0x05, 0, 0xef);
rc = r820t_write_reg_mask(priv, 0x05, 0, 0x10);
if (rc < 0)
return rc;

/* Mixer */
rc = r820t_write_reg_mask(priv, 0x07, 0x10, 0xef);
rc = r820t_write_reg_mask(priv, 0x07, 0x10, 0x10);
if (rc < 0)
return rc;

Expand Down Expand Up @@ -1261,7 +1261,7 @@ static int generic_set_freq(struct dvb_frontend *fe,
if (rc < 0)
goto err;

rc = r820t_set_gain_mode(priv, true, 0);
rc = r820t_set_gain_mode(priv, false, 0);
if (rc < 0)
goto err;

Expand Down

0 comments on commit b5e2b97

Please sign in to comment.