aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/media/tuners/r820t.c
diff options
context:
space:
mode:
authorMauro Carvalho Chehab <mchehab@redhat.com>2013-04-11 13:27:04 -0400
committerMauro Carvalho Chehab <mchehab@redhat.com>2013-04-16 20:39:56 -0400
commit396f3659aa9decdb0acf82a36e59c20d656e19ed (patch)
tree0aa474e7a489a3fafadb0cb2d5860f9473b7e244 /drivers/media/tuners/r820t.c
parentdfdeac8108db5066e1adaf112adbe396ef27f0bc (diff)
[media] r820t: Don't divide the IF by two
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>
Diffstat (limited to 'drivers/media/tuners/r820t.c')
-rw-r--r--drivers/media/tuners/r820t.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/media/tuners/r820t.c b/drivers/media/tuners/r820t.c
index 8d9977919d96..905a10615e52 100644
--- a/drivers/media/tuners/r820t.c
+++ b/drivers/media/tuners/r820t.c
@@ -559,6 +559,8 @@ static int r820t_set_pll(struct r820t_priv *priv, enum v4l2_tuner_type type,
559 freq = freq / 1000; 559 freq = freq / 1000;
560 pll_ref = priv->cfg->xtal / 1000; 560 pll_ref = priv->cfg->xtal / 1000;
561 561
562#if 0
563 /* Doesn't exist on rtl-sdk, and on field tests, caused troubles */
562 if ((priv->cfg->rafael_chip == CHIP_R620D) || 564 if ((priv->cfg->rafael_chip == CHIP_R620D) ||
563 (priv->cfg->rafael_chip == CHIP_R828D) || 565 (priv->cfg->rafael_chip == CHIP_R828D) ||
564 (priv->cfg->rafael_chip == CHIP_R828)) { 566 (priv->cfg->rafael_chip == CHIP_R828)) {
@@ -574,6 +576,7 @@ static int r820t_set_pll(struct r820t_priv *priv, enum v4l2_tuner_type type,
574 refdiv2 = 0x10; 576 refdiv2 = 0x10;
575 } 577 }
576 } 578 }
579#endif
577 580
578 rc = r820t_write_reg_mask(priv, 0x10, refdiv2, 0x10); 581 rc = r820t_write_reg_mask(priv, 0x10, refdiv2, 0x10);
579 if (rc < 0) 582 if (rc < 0)