summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNick Foster <nick@nerdnetworks.org>2010-07-28 11:48:00 -0700
committerNick Foster <nick@nerdnetworks.org>2010-07-28 11:48:00 -0700
commitc348a98c8004e7ac9d28231ae80dadef415440ef (patch)
tree44b56188cef9316eed34551d431f58ba7762b6d0
parent0c16a2c8372d9471e88ab67db4a2cbe446b73837 (diff)
downloaduhd-c348a98c8004e7ac9d28231ae80dadef415440ef.tar.gz
uhd-c348a98c8004e7ac9d28231ae80dadef415440ef.tar.bz2
uhd-c348a98c8004e7ac9d28231ae80dadef415440ef.zip
Added gain range property to rx_codec_get.
-rw-r--r--host/lib/usrp/usrp2/codec_impl.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/host/lib/usrp/usrp2/codec_impl.cpp b/host/lib/usrp/usrp2/codec_impl.cpp
index b246a35f8..5cc7a47ec 100644
--- a/host/lib/usrp/usrp2/codec_impl.cpp
+++ b/host/lib/usrp/usrp2/codec_impl.cpp
@@ -78,6 +78,11 @@ void usrp2_mboard_impl::rx_codec_get(const wax::obj &key_, wax::obj &val){
val = _codec_rx_gains[name];
return;
+ case CODEC_PROP_GAIN_RANGE:
+ assert_has(codec_rx_gain_ranges.keys(), name, "codec rx gain range name");
+ val = codec_rx_gain_ranges[name];
+ return;
+
default: UHD_THROW_PROP_GET_ERROR();
}
}