mirror of
https://github.com/rtlsdrblog/rtl-sdr-blog.git
synced 2024-11-10 04:37:37 +01:00
rtlsdr_init_baseband: initialize possibly uninitialized registers
Signed-off-by: Steve Markgraf <steve@steve-m.de>
This commit is contained in:
parent
a48f48e3b1
commit
b4e48d9555
@ -521,10 +521,14 @@ void rtlsdr_init_baseband(rtlsdr_dev_t *dev)
|
||||
|
||||
/* init FSM state-holding register */
|
||||
rtlsdr_demod_write_reg(dev, 1, 0x93, 0xf0, 1);
|
||||
rtlsdr_demod_write_reg(dev, 1, 0x94, 0x0f, 1);
|
||||
|
||||
/* disable AGC (en_dagc, bit 0) (this seems to have no effect) */
|
||||
rtlsdr_demod_write_reg(dev, 1, 0x11, 0x00, 1);
|
||||
|
||||
/* disable RF and IF AGC loop */
|
||||
rtlsdr_demod_write_reg(dev, 1, 0x04, 0x00, 1);
|
||||
|
||||
/* disable PID filter (enable_PID = 0) */
|
||||
rtlsdr_demod_write_reg(dev, 0, 0x61, 0x60, 1);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user