soapy: added device::find() support

Was missing from the implementation.
Now devices with a label show up nicely in GQRX
soapy_support
Josh Blum 6 years ago
parent ae686c462d
commit 3511defbf4
  1. 8
      lib/device.cc

@ -78,6 +78,10 @@
#include <airspy_source_c.h>
#endif
#ifdef ENABLE_SOAPY
#include <soapy_source_c.h>
#endif
#ifdef ENABLE_REDPITAYA
#include <redpitaya_source_c.h>
#endif
@ -178,6 +182,10 @@ devices_t device::find(const device_t &hint)
BOOST_FOREACH( std::string dev, airspy_source_c::get_devices() )
devices.push_back( device_t(dev) );
#endif
#ifdef ENABLE_SOAPY
BOOST_FOREACH( std::string dev, soapy_source_c::get_devices() )
devices.push_back( device_t(dev) );
#endif
/* software-only sources should be appended at the very end,
* hopefully resulting in hardware sources to be shown first

Loading…
Cancel
Save