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>
return ((data[3] & 0x0f) << 1) + ((data[3] & 0xf0) >> 4);
}
+#if 0
+/* FIXME: This routine requires more testing */
static int r820t_set_gain_mode(struct r820t_priv *priv,
bool set_manual_gain,
int gain)
return 0;
}
-
+#endif
static int generic_set_freq(struct dvb_frontend *fe,
u32 freq /* in HZ */,
if (rc < 0)
goto err;
- rc = r820t_set_gain_mode(priv, false, 0);
- if (rc < 0)
- goto err;
-
rc = r820t_set_pll(priv, type, lo_freq);
if (rc < 0 || !priv->has_lock)
goto err;