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

Fix SoapySDRPlay3 edgecase #853

Merged
merged 1 commit into from
Nov 11, 2023
Merged

Fix SoapySDRPlay3 edgecase #853

merged 1 commit into from
Nov 11, 2023

Conversation

USA-RedDragon
Copy link
Contributor

@USA-RedDragon USA-RedDragon commented Nov 11, 2023

Fixes #689 when using https://github.com/pothosware/SoapySDRPlay3.

I have an SDRPlay device and a set of Docker images using SoapySDRPlay3 and the newer SDRPlay API. This works great with only this minor code change due to an edgecase with the SoapySDRPlay3 API.

In this case per https://github.com/pothosware/SoapySDRPlay3/blob/534a173996b0ca2a88ff1931950c869d244c90f8/Settings.cpp#L517, the autogain must be disabled before setting the gain to avoid gain not being set.

I've added a new call to source->set_gain_mode(agc); as opposed to repositioning the existing call to ensure compatibility with other devices isn't affected.

I didn't seem to be affected by this comment on the issue: #689 (comment) that required enabling AGC before disabling it.

@USA-RedDragon USA-RedDragon changed the title add SoapySDRPlay3 support Fix SoapySDRPlay3 edgecase Nov 11, 2023
@robotastic
Copy link
Owner

Wow - That is weird corner case. I will also make this change in the config branch I am working on.

@robotastic robotastic merged commit fe314d6 into robotastic:master Nov 11, 2023
@USA-RedDragon USA-RedDragon deleted the soapysdrplay3 branch November 11, 2023 22:19
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.

SoapySDR SDRPlay Gain Settings not working
2 participants