Skip to content

Commit

Permalink
[media] r820t: Don't divide the IF by two
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Mauro Carvalho Chehab committed Apr 17, 2013
1 parent dfdeac8 commit 396f365
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions drivers/media/tuners/r820t.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)) {
Expand All @@ -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)
Expand Down

0 comments on commit 396f365

Please sign in to comment.