Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make getFrequencyRange aware of directSamplingMode #64

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

ryansuchocki
Copy link

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.

@zuckschwerdt
Copy link
Member

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants