Update tuner_r82xx.c

This commit is contained in:
rtlsdrblog 2023-09-20 12:10:13 +12:00 committed by GitHub
parent d70d519a8c
commit bca510bc12
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1179,6 +1179,12 @@ int r82xx_set_freq(struct r82xx_priv *priv, uint32_t freq)
cable_2_in = (band == HF) ? 0x08 : 0x00; cable_2_in = (band == HF) ? 0x08 : 0x00;
rc = r82xx_write_reg_mask(priv, 0x06, cable_2_in, 0x08); rc = r82xx_write_reg_mask(priv, 0x06, cable_2_in, 0x08);
if (rc < 0)
goto err;
/* Control upconverter GPIO switch on newer batches */
rc = rtlsdr_set_bias_tee_gpio(priv->rtl_dev, 5, !cable_2_in);
if (rc < 0) if (rc < 0)
goto err; goto err;