aboutsummaryrefslogtreecommitdiffstats
path: root/host
diff options
context:
space:
mode:
authorJosh Blum <josh@joshknows.com>2010-08-30 19:02:56 -0700
committerJosh Blum <josh@joshknows.com>2010-08-30 19:02:56 -0700
commit954be82738b9237e77162566d39e2daed8105a2a (patch)
tree3aea25d3d2d9f3b513b5cd1be39f9983b6fceeb3 /host
parentaf0543a8b72e924c26503d838976e249d8ca6fbb (diff)
downloaduhd-954be82738b9237e77162566d39e2daed8105a2a.tar.gz
uhd-954be82738b9237e77162566d39e2daed8105a2a.tar.bz2
uhd-954be82738b9237e77162566d39e2daed8105a2a.zip
usrp1: init the subdev specs so they will be non-empty
Diffstat (limited to 'host')
-rw-r--r--host/lib/usrp/usrp1/usrp1_impl.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/host/lib/usrp/usrp1/usrp1_impl.cpp b/host/lib/usrp/usrp1/usrp1_impl.cpp
index 3c3306525..ccb41a09d 100644
--- a/host/lib/usrp/usrp1/usrp1_impl.cpp
+++ b/host/lib/usrp/usrp1/usrp1_impl.cpp
@@ -21,6 +21,7 @@
#include "usrp_spi_defs.h"
#include <uhd/transport/usb_control.hpp>
#include <uhd/usrp/device_props.hpp>
+#include <uhd/usrp/mboard_props.hpp>
#include <uhd/utils/assert.hpp>
#include <uhd/utils/static.hpp>
#include <uhd/utils/images.hpp>
@@ -171,6 +172,10 @@ usrp1_impl::usrp1_impl(uhd::transport::usb_zero_copy::sptr data_transport,
//turn on the transmitter
_ctrl_transport->usrp_tx_enable(true);
+
+ //init the subdev specs
+ this->mboard_set(MBOARD_PROP_RX_SUBDEV_SPEC, subdev_spec_t());
+ this->mboard_set(MBOARD_PROP_TX_SUBDEV_SPEC, subdev_spec_t());
}
usrp1_impl::~usrp1_impl(void){