[media] r820t: Don't divide the IF by two
authorMauro Carvalho Chehab <mchehab@redhat.com>
Thu, 11 Apr 2013 17:27:04 +0000 (14:27 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Wed, 17 Apr 2013 00:39:56 +0000 (21:39 -0300)
The original Win driver doesn't do; rtl-sdr also disabled that
piece of the code.

Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Tested-by: Antti Palosaari <crope@iki.fi>
drivers/media/tuners/r820t.c

index 8d9977919d96236b525de5f549b094a49a9c0429..905a10615e520c96a9f27ffd518c96007b162c5c 100644 (file)
@@ -559,6 +559,8 @@ static int r820t_set_pll(struct r820t_priv *priv, enum v4l2_tuner_type type,
        freq = freq / 1000;
        pll_ref = priv->cfg->xtal / 1000;
 
+#if 0
+       /* Doesn't exist on rtl-sdk, and on field tests, caused troubles */
        if ((priv->cfg->rafael_chip == CHIP_R620D) ||
           (priv->cfg->rafael_chip == CHIP_R828D) ||
           (priv->cfg->rafael_chip == CHIP_R828)) {
@@ -574,6 +576,7 @@ static int r820t_set_pll(struct r820t_priv *priv, enum v4l2_tuner_type type,
                        refdiv2 = 0x10;
                }
        }
+#endif
 
        rc = r820t_write_reg_mask(priv, 0x10, refdiv2, 0x10);
        if (rc < 0)