mirror of
https://github.com/rtlsdrblog/rtl-sdr-blog.git
synced 2025-02-28 09:54:06 +01:00
undo VGA gain steps change
appears to cause issues with dump1090-fa
This commit is contained in:
parent
065e3d1a11
commit
83e71541ef
BIN
.vs/rtlsdr/v15/.suo
Normal file
BIN
.vs/rtlsdr/v15/.suo
Normal file
Binary file not shown.
@ -1037,7 +1037,9 @@ int r82xx_set_vga_gain(struct r82xx_priv *priv) {
|
|||||||
int rc;
|
int rc;
|
||||||
|
|
||||||
/* set fixed VGA gain based on frequency */
|
/* set fixed VGA gain based on frequency */
|
||||||
if (priv->rf_freq > MHZ(1350)) {
|
/* Disable for now. While it improves performance in some applications
|
||||||
|
it appears to severely degrade performance in others */
|
||||||
|
/*if (priv->rf_freq > MHZ(1350)) {
|
||||||
rc = r82xx_write_reg_mask(priv, 0x0c, 0x0f, 0x9f); // Max 40.5 dB
|
rc = r82xx_write_reg_mask(priv, 0x0c, 0x0f, 0x9f); // Max 40.5 dB
|
||||||
}
|
}
|
||||||
else if (priv->rf_freq > MHZ(1000)) {
|
else if (priv->rf_freq > MHZ(1000)) {
|
||||||
@ -1045,7 +1047,9 @@ int r82xx_set_vga_gain(struct r82xx_priv *priv) {
|
|||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
rc = r82xx_write_reg_mask(priv, 0x0c, 0x08, 0x9f); // 16.3 dB
|
rc = r82xx_write_reg_mask(priv, 0x0c, 0x08, 0x9f); // 16.3 dB
|
||||||
}
|
}*/
|
||||||
|
|
||||||
|
rc = r82xx_write_reg_mask(priv, 0x0c, 0x08, 0x9f); // 16.3 dB
|
||||||
|
|
||||||
return rc;
|
return rc;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user