aboutsummaryrefslogtreecommitdiffstats
path: root/host/lib
diff options
context:
space:
mode:
authorJosh Blum <josh@joshknows.com>2012-05-11 21:30:29 -0700
committerJosh Blum <josh@joshknows.com>2012-05-11 21:30:29 -0700
commitea4549f841c5921cd575171c868d291be4e8f8c0 (patch)
treeebd08b3adf22bf47f4728c4ed00793e8d6b14edf /host/lib
parent0dafd2d7d240ac4397b80198ec455ca4cfcc9425 (diff)
downloaduhd-ea4549f841c5921cd575171c868d291be4e8f8c0.tar.gz
uhd-ea4549f841c5921cd575171c868d291be4e8f8c0.tar.bz2
uhd-ea4549f841c5921cd575171c868d291be4e8f8c0.zip
usrp1: ensure frontend specs are init'd to something
This helps the case of 4x DDC no DUC for example, that way at least something empty is set to the property.
Diffstat (limited to 'host/lib')
-rw-r--r--host/lib/usrp/usrp1/usrp1_impl.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/host/lib/usrp/usrp1/usrp1_impl.cpp b/host/lib/usrp/usrp1/usrp1_impl.cpp
index 1db2efa0d..30986ac66 100644
--- a/host/lib/usrp/usrp1/usrp1_impl.cpp
+++ b/host/lib/usrp/usrp1/usrp1_impl.cpp
@@ -279,8 +279,10 @@ usrp1_impl::usrp1_impl(const device_addr_t &device_addr){
// create frontend control objects
////////////////////////////////////////////////////////////////////
_tree->create<subdev_spec_t>(mb_path / "rx_subdev_spec")
+ .set(subdev_spec_t())
.subscribe(boost::bind(&usrp1_impl::update_rx_subdev_spec, this, _1));
_tree->create<subdev_spec_t>(mb_path / "tx_subdev_spec")
+ .set(subdev_spec_t())
.subscribe(boost::bind(&usrp1_impl::update_tx_subdev_spec, this, _1));
BOOST_FOREACH(const std::string &db, _dbc.keys()){