remove unecessary function

This commit is contained in:
rtlsdrblog 2023-08-25 14:31:20 +12:00
parent f3673e7df0
commit bb5c047fa1

View File

@ -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)