aboutsummaryrefslogtreecommitdiffstats
path: root/lib/device.cc
diff options
context:
space:
mode:
authorJosh Blum <josh@joshknows.com>2017-02-02 11:10:08 -0800
committerJosh Blum <josh@joshknows.com>2017-02-02 11:10:08 -0800
commit3511defbf42a3f8cf0fd74b8ae19869406f18b6f (patch)
treedc176be54405a293d5ab1527e5d5f8ee825da2fe /lib/device.cc
parentae686c462df73285fc13d3a0dc76f360a911500b (diff)
soapy: added device::find() support
Was missing from the implementation. Now devices with a label show up nicely in GQRX
Diffstat (limited to 'lib/device.cc')
-rw-r--r--lib/device.cc8
1 files changed, 8 insertions, 0 deletions
diff --git a/lib/device.cc b/lib/device.cc
index 3ce40fa..d75d6ad 100644
--- a/lib/device.cc
+++ b/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