mirror of
https://github.com/rtlsdrblog/rtl-sdr-blog.git
synced 2024-11-10 04:37:37 +01:00
reset demod after setting samplerate
Signed-off-by: Steve Markgraf <steve@steve-m.de>
This commit is contained in:
parent
f5f92ae3fa
commit
3ded206470
@ -537,6 +537,10 @@ int rtlsdr_set_sample_rate(rtlsdr_dev_t *dev, uint32_t samp_rate)
|
||||
tmp = rsamp_ratio & 0xffff;
|
||||
rtlsdr_demod_write_reg(dev, 1, 0xa1, tmp, 2);
|
||||
|
||||
/* reset demod (bit 3, soft_rst) */
|
||||
rtlsdr_demod_write_reg(dev, 1, 0x01, 0x14, 1);
|
||||
rtlsdr_demod_write_reg(dev, 1, 0x01, 0x10, 1);
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user