mirror of
https://github.com/rtlsdrblog/rtl-sdr-blog.git
synced 2024-11-10 04:37:37 +01:00
correctly clear DDC shift and if_freq registers
This fixes the 2 kHz LO shift. Signed-off-by: Steve Markgraf <steve@steve-m.de>
This commit is contained in:
parent
7bd3933c41
commit
9d58aec8cf
@ -470,8 +470,9 @@ void rtlsdr_init_baseband(rtlsdr_dev_t *dev)
|
||||
rtlsdr_demod_write_reg(dev, 1, 0x15, 0x00, 1);
|
||||
rtlsdr_demod_write_reg(dev, 1, 0x16, 0x0000, 2);
|
||||
|
||||
/* set IF-frequency to 0 Hz */
|
||||
rtlsdr_demod_write_reg(dev, 1, 0x19, 0x0000, 2);
|
||||
/* clear both DDC shift and IF frequency registers */
|
||||
for (i = 0; i < 6; i++)
|
||||
rtlsdr_demod_write_reg(dev, 1, 0x16 + i, 0x00, 1);
|
||||
|
||||
/* set FIR coefficients */
|
||||
for (i = 0; i < sizeof (fir_coeff); i++)
|
||||
|
Loading…
Reference in New Issue
Block a user