diff options
author | Mauro Carvalho Chehab <mchehab@redhat.com> | 2013-04-11 15:20:53 -0400 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | 2013-04-16 20:39:44 -0400 |
commit | dfdeac8108db5066e1adaf112adbe396ef27f0bc (patch) | |
tree | e7e8b7ec6fcab04afe15f714ea78c00cd6ddfdb7 /drivers/media/tuners/r820t.c | |
parent | c8832e8f4293b1c9fce92a92e2506572f5b11775 (diff) |
[media] r820t: disable auto gain/VGA setting
On field tests, the auto gain routine is not working, nor it is
used by the original driver. Let's comment it for now.
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Tested-by: Antti Palosaari <crope@iki.fi>
Diffstat (limited to 'drivers/media/tuners/r820t.c')
-rw-r--r-- | drivers/media/tuners/r820t.c | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/drivers/media/tuners/r820t.c b/drivers/media/tuners/r820t.c index e63ee9443fa6..8d9977919d96 100644 --- a/drivers/media/tuners/r820t.c +++ b/drivers/media/tuners/r820t.c | |||
@@ -1163,6 +1163,8 @@ static int r820t_read_gain(struct r820t_priv *priv) | |||
1163 | return ((data[3] & 0x0f) << 1) + ((data[3] & 0xf0) >> 4); | 1163 | return ((data[3] & 0x0f) << 1) + ((data[3] & 0xf0) >> 4); |
1164 | } | 1164 | } |
1165 | 1165 | ||
1166 | #if 0 | ||
1167 | /* FIXME: This routine requires more testing */ | ||
1166 | static int r820t_set_gain_mode(struct r820t_priv *priv, | 1168 | static int r820t_set_gain_mode(struct r820t_priv *priv, |
1167 | bool set_manual_gain, | 1169 | bool set_manual_gain, |
1168 | int gain) | 1170 | int gain) |
@@ -1233,7 +1235,7 @@ static int r820t_set_gain_mode(struct r820t_priv *priv, | |||
1233 | 1235 | ||
1234 | return 0; | 1236 | return 0; |
1235 | } | 1237 | } |
1236 | 1238 | #endif | |
1237 | 1239 | ||
1238 | static int generic_set_freq(struct dvb_frontend *fe, | 1240 | static int generic_set_freq(struct dvb_frontend *fe, |
1239 | u32 freq /* in HZ */, | 1241 | u32 freq /* in HZ */, |
@@ -1261,10 +1263,6 @@ static int generic_set_freq(struct dvb_frontend *fe, | |||
1261 | if (rc < 0) | 1263 | if (rc < 0) |
1262 | goto err; | 1264 | goto err; |
1263 | 1265 | ||
1264 | rc = r820t_set_gain_mode(priv, false, 0); | ||
1265 | if (rc < 0) | ||
1266 | goto err; | ||
1267 | |||
1268 | rc = r820t_set_pll(priv, type, lo_freq); | 1266 | rc = r820t_set_pll(priv, type, lo_freq); |
1269 | if (rc < 0 || !priv->has_lock) | 1267 | if (rc < 0 || !priv->has_lock) |
1270 | goto err; | 1268 | goto err; |