diff --git a/src/librtlsdr.c b/src/librtlsdr.c index b598202..5b33310 100644 --- a/src/librtlsdr.c +++ b/src/librtlsdr.c @@ -126,7 +126,6 @@ struct rtlsdr_dev { void rtlsdr_set_gpio_bit(rtlsdr_dev_t *dev, uint8_t gpio, int val); static int rtlsdr_set_if_freq(rtlsdr_dev_t *dev, uint32_t freq); -static int rtlsdr_update_ds(rtlsdr_dev_t *dev, uint32_t freq, int new_ds); /* generic tuner interface functions, shall be moved to the tuner implementations */ int e4000_init(void *dev) { @@ -1244,25 +1243,6 @@ int rtlsdr_set_direct_sampling(rtlsdr_dev_t *dev, int on) return r; } -/* Auto enable direct sampling if tuned below 28.8 MHz */ -static int rtlsdr_update_ds(rtlsdr_dev_t *dev, uint32_t freq, int new_ds) -{ - int curr_ds; - - if (!dev) - return -1; - - curr_ds = rtlsdr_get_direct_sampling(dev); - if (curr_ds < 0) - return 1; - - if (curr_ds != new_ds) { - return rtlsdr_set_direct_sampling(dev, new_ds); - } - - return 0; -} - int rtlsdr_get_direct_sampling(rtlsdr_dev_t *dev) { if (!dev)