pothosware / SoapyPlutoSDR

Soapy SDR plugin for PlutoSDR
https://github.com/pothosware/SoapyPlutoSDR/wiki
GNU Lesser General Public License v2.1
53 stars 22 forks source link

Disable automatic gain on startup #49

Closed argilo closed 2 years ago

argilo commented 2 years ago

Unlike some other devices, PlutoSDR starts up with automatic gain enabled. Despite this, SoapyPlutoSDR::getGainMode (incorrectly) returns false until the first time SoapyPlutoSDR::setGainMode is called. I think it would be best to match the behaviour of other devices and initialize the hardware with automatic gain disabled, so I've added a setGainMode call to the constructor. After this change, the automatic gain control setting in Gqrx works correctly with PlutoSDR.

sjkelly commented 2 years ago

I have noticed this before, this would be nice to fix :)