Max VCO currents

Better L-Band locks
master
rtlsdrblog 5 years ago committed by GitHub
parent 81833a1cf6
commit f26bf11bbd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 6
      src/tuner_r82xx.c

@ -447,8 +447,8 @@ static int r82xx_set_pll(struct r82xx_priv *priv, uint32_t freq)
if (rc < 0) if (rc < 0)
return rc; return rc;
/* set VCO current = 100 */ /* set VCO current = 100 RTL-SDRBLOG MOD: MAX CURRENT*/
rc = r82xx_write_reg_mask(priv, 0x12, 0x80, 0xe0); rc = r82xx_write_reg_mask(priv, 0x12, 0x00, 0xe0);
if (rc < 0) if (rc < 0)
return rc; return rc;
@ -540,7 +540,7 @@ static int r82xx_set_pll(struct r82xx_priv *priv, uint32_t freq)
if (!i) { if (!i) {
/* Didn't lock. Increase VCO current */ /* Didn't lock. Increase VCO current */
rc = r82xx_write_reg_mask(priv, 0x12, 0x60, 0xe0); rc = r82xx_write_reg_mask(priv, 0x12, 0x00, 0xe0);
if (rc < 0) if (rc < 0)
return rc; return rc;
} }

Loading…
Cancel
Save