Closed ghost closed 2 years ago
I do not understand such requirement as such value comes from the user which call the airspy_set_xxx so it shall be saved locally .and reused later without the need to add such API in libairspy
The problem is if you call airspy_set_linearity_gain (or airspy_set_sensitivity_gain) is that it modifies the lna, mixer and vga gains, now the client software is keeping track of them also but they have been modified, and it has no idea what they are currently. Another workaround would be to fully duplicate this lookup table: https://github.com/airspy/airspyone_host/blob/master/libairspy/src/airspy.c#L117 in SoapyAirspy so that it would know the current values of the three gains, but that seems redundant.
Thanks for the clarification I have not checked that aspect in that case we could add such APIs in libairspy any contribution is welcome (but it shall not require to modify the firmware)
This issue is old and I have no time to work on it, so it is closed If anyone is interested you are welcome to do a Pull Request
airspy_get_lna_gain airspy_get_mixer_gain airspy_get_vga_gain ref: https://github.com/pothosware/SoapyAirspy/pull/14#issuecomment-351199121