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

Signed-off-by: Steve Markgraf <steve@steve-m.de>
This commit is contained in:
Steve Markgraf 2012-09-20 23:44:49 +02:00
parent 143b103061
commit 35263d0df3

View File

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