Skip to content

Commit f0d6e89

Browse files
author
Adam
committed
apply the forced direct sampling mode retrived from EEPROM to the device.
1 parent f5650e9 commit f0d6e89

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/librtlsdr.c

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1636,7 +1636,10 @@ int rtlsdr_open(rtlsdr_dev_t **out_dev, uint32_t index)
16361636
if(dev->force_bt) rtlsdr_set_gpio(dev, 0, 1);
16371637
/* Hack to force direct sampling mode to always be on if we set the remote-enabled bit in the EEPROM to 1. Default on EEPROM is 0. */
16381638
dev->force_ds = (buf[7] & 0x01) ? 1 : 0;
1639-
if(dev->force_ds) dev->tuner_type = RTLSDR_TUNER_UNKNOWN;
1639+
if(dev->force_ds) {
1640+
dev->tuner_type = RTLSDR_TUNER_UNKNOWN;
1641+
rtlsdr_set_direct_sampling(dev, 2);
1642+
}
16401643

16411644

16421645
if (dev->tuner->init)

0 commit comments

Comments
 (0)