undo VGA gain steps change

appears to cause issues with dump1090-fa
This commit is contained in:
rtlsdrblog 2024-06-17 12:07:37 +12:00
parent 065e3d1a11
commit 83e71541ef
2 changed files with 6 additions and 2 deletions

BIN
.vs/rtlsdr/v15/.suo Normal file

Binary file not shown.

View File

@ -1037,7 +1037,9 @@ int r82xx_set_vga_gain(struct r82xx_priv *priv) {
int rc;
/* 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
}
else if (priv->rf_freq > MHZ(1000)) {
@ -1045,7 +1047,9 @@ int r82xx_set_vga_gain(struct r82xx_priv *priv) {
}
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
return rc;
}