rtlsdr_init_baseband: initialize possibly uninitialized registers

Signed-off-by: Steve Markgraf <steve@steve-m.de>
master
Steve Markgraf 12 years ago
parent a48f48e3b1
commit b4e48d9555
  1. 4
      src/librtlsdr.c

@ -521,10 +521,14 @@ void rtlsdr_init_baseband(rtlsdr_dev_t *dev)
/* init FSM state-holding register */ /* init FSM state-holding register */
rtlsdr_demod_write_reg(dev, 1, 0x93, 0xf0, 1); 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) */ /* disable AGC (en_dagc, bit 0) (this seems to have no effect) */
rtlsdr_demod_write_reg(dev, 1, 0x11, 0x00, 1); 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) */ /* disable PID filter (enable_PID = 0) */
rtlsdr_demod_write_reg(dev, 0, 0x61, 0x60, 1); rtlsdr_demod_write_reg(dev, 0, 0x61, 0x60, 1);

Loading…
Cancel
Save