[media] r820t: put it into automatic gain mode
[deliverable/linux.git] / drivers / media / tuners / r820t.c
index f5a5fb03dfd5c53a08b7e85387d977bc70670b07..e63ee9443fa6bf2538ce2db04d42ce883193a528 100644 (file)
@@ -1102,7 +1102,7 @@ static int r820t_set_tv_standard(struct r820t_priv *priv,
                return rc;
 
        /* Set BW, Filter_gain, & HP corner */
-       rc = r820t_write_reg_mask(priv, 0x0b, hp_cor, 0x10);
+       rc = r820t_write_reg_mask(priv, 0x0b, hp_cor, 0xef);
        if (rc < 0)
                return rc;
 
@@ -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;
 
@@ -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;
 
This page took 0.026487 seconds and 5 git commands to generate.