mirror of
https://github.com/rtlsdrblog/rtl-sdr-blog.git
synced 2024-12-25 10:28:28 +01:00
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:
parent
143b103061
commit
35263d0df3
@ -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);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user