SoapyRTLSDR icon indicating copy to clipboard operation
SoapyRTLSDR copied to clipboard

Make getFrequencyRange aware of directSamplingMode

Open ryansuchocki opened this issue 1 year ago • 1 comments

I've extended the implementation of getFrequencyRange() to be aware of direct sampling mode.

This uses librtlsdr's rtlsdr_get_xtal_freq(). The librtlsdr header indicates that, in direct sampling mode, the tune-able range is from zero to the xtal frequency.

This seems to be necessary in order to get GQRX to let me tune below 28MHz when using SoapyRTLSDR over SoapyRemote.

ryansuchocki avatar Nov 29 '22 11:11 ryansuchocki

Thanks. LGTM! Haven't thought about it before, but I guess we should not expect a fixed return from getFrequencyRange(). For reference, BladeRF does something like this too: https://github.com/pothosware/SoapyBladeRF/blob/85f6dc554ed4c618304d99395b19c4e1523675b0/bladeRF_Settings.cpp#L532-L545

zuckschwerdt avatar Nov 29 '22 11:11 zuckschwerdt