aboutsummaryrefslogtreecommitdiffstats
path: root/host/lib/usrp/usrp2/codec_impl.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'host/lib/usrp/usrp2/codec_impl.cpp')
-rw-r--r--host/lib/usrp/usrp2/codec_impl.cpp14
1 files changed, 7 insertions, 7 deletions
diff --git a/host/lib/usrp/usrp2/codec_impl.cpp b/host/lib/usrp/usrp2/codec_impl.cpp
index 998d55297..e417bc340 100644
--- a/host/lib/usrp/usrp2/codec_impl.cpp
+++ b/host/lib/usrp/usrp2/codec_impl.cpp
@@ -30,9 +30,9 @@ using namespace boost::assign;
//this only applies to USRP2P
static const uhd::dict<std::string, gain_range_t> codec_rx_gain_ranges = map_list_of
- ("analog", gain_range_t(0, 3.5, 3.5))
- ("digital", gain_range_t(0, 6.0, 0.5))
- ("digital-fine", gain_range_t(0, 0.5, 0.05));
+ ("analog", gain_range_t(0, float(3.5), float(3.5)))
+ ("digital", gain_range_t(0, float(6.0), float(0.5)))
+ ("digital-fine", gain_range_t(0, float(0.5), float(0.05)));
/***********************************************************************
@@ -62,16 +62,16 @@ void usrp2_mboard_impl::rx_codec_get(const wax::obj &key_, wax::obj &val){
switch(_iface->get_rev()){
case usrp2_iface::USRP_N200:
case usrp2_iface::USRP_N210:
- val = std::string(_iface->get_cname() + " adc - ads62p44");
+ val = _iface->get_cname() + " adc - ads62p44";
break;
case usrp2_iface::USRP2_REV3:
case usrp2_iface::USRP2_REV4:
- val = std::string(_iface->get_cname() + " adc - ltc2284");
+ val = _iface->get_cname() + " adc - ltc2284";
break;
case usrp2_iface::USRP_NXXX:
- val = std::string(_iface->get_cname() + " adc - ??????");
+ val = _iface->get_cname() + " adc - ??????";
break;
}
return;
@@ -153,7 +153,7 @@ void usrp2_mboard_impl::tx_codec_get(const wax::obj &key_, wax::obj &val){
//handle the get request conditioned on the key
switch(key.as<codec_prop_t>()){
case CODEC_PROP_NAME:
- val = std::string(_iface->get_cname() + " dac - ad9777");
+ val = _iface->get_cname() + " dac - ad9777";
return;
case CODEC_PROP_OTHERS: