rtlsdr_set_direct_sampling: reset IF freq to 0 on zero-IF tuners

Signed-off-by: Steve Markgraf <steve@steve-m.de>
master
Steve Markgraf 12 years ago
parent 143b103061
commit 35263d0df3
  1. 2
      src/librtlsdr.c

@ -976,6 +976,8 @@ int rtlsdr_set_direct_sampling(rtlsdr_dev_t *dev, int on)
/* enable spectrum inversion */ /* enable spectrum inversion */
r |= rtlsdr_demod_write_reg(dev, 1, 0x15, 0x01, 1); r |= rtlsdr_demod_write_reg(dev, 1, 0x15, 0x01, 1);
} else { } else {
r |= rtlsdr_set_if_freq(dev, 0);
/* enable In-phase + Quadrature ADC input */ /* enable In-phase + Quadrature ADC input */
r |= rtlsdr_demod_write_reg(dev, 0, 0x08, 0xcd, 1); r |= rtlsdr_demod_write_reg(dev, 0, 0x08, 0xcd, 1);

Loading…
Cancel
Save