diff options
author | Mauro Carvalho Chehab <mchehab@redhat.com> | 2013-04-11 14:55:27 -0400 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | 2013-04-16 20:39:11 -0400 |
commit | b5e2b97b0ba474dd2abd672be320d1f1030800e8 (patch) | |
tree | 8c41472e443f13213b8f393dfb682aa25d8436f2 | |
parent | f26588947b613925f11f5336320ff4d11b617a62 (diff) |
[media] r820t: put it into automatic gain mode
Currently, it is putting it on manual mode.
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Tested-by: Antti Palosaari <crope@iki.fi>
-rw-r--r-- | drivers/media/tuners/r820t.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/media/tuners/r820t.c b/drivers/media/tuners/r820t.c index c644e90a5907..e63ee9443fa6 100644 --- a/drivers/media/tuners/r820t.c +++ b/drivers/media/tuners/r820t.c | |||
@@ -1216,12 +1216,12 @@ static int r820t_set_gain_mode(struct r820t_priv *priv, | |||
1216 | return rc; | 1216 | return rc; |
1217 | } else { | 1217 | } else { |
1218 | /* LNA */ | 1218 | /* LNA */ |
1219 | rc = r820t_write_reg_mask(priv, 0x05, 0, 0xef); | 1219 | rc = r820t_write_reg_mask(priv, 0x05, 0, 0x10); |
1220 | if (rc < 0) | 1220 | if (rc < 0) |
1221 | return rc; | 1221 | return rc; |
1222 | 1222 | ||
1223 | /* Mixer */ | 1223 | /* Mixer */ |
1224 | rc = r820t_write_reg_mask(priv, 0x07, 0x10, 0xef); | 1224 | rc = r820t_write_reg_mask(priv, 0x07, 0x10, 0x10); |
1225 | if (rc < 0) | 1225 | if (rc < 0) |
1226 | return rc; | 1226 | return rc; |
1227 | 1227 | ||
@@ -1261,7 +1261,7 @@ static int generic_set_freq(struct dvb_frontend *fe, | |||
1261 | if (rc < 0) | 1261 | if (rc < 0) |
1262 | goto err; | 1262 | goto err; |
1263 | 1263 | ||
1264 | rc = r820t_set_gain_mode(priv, true, 0); | 1264 | rc = r820t_set_gain_mode(priv, false, 0); |
1265 | if (rc < 0) | 1265 | if (rc < 0) |
1266 | goto err; | 1266 | goto err; |
1267 | 1267 | ||