diff options
author | Josh Blum <josh@joshknows.com> | 2010-10-20 15:32:41 -0700 |
---|---|---|
committer | Josh Blum <josh@joshknows.com> | 2010-10-20 15:32:41 -0700 |
commit | 26aef3bae98aae5364deb40a62b52ba65b9aa16a (patch) | |
tree | 00b40426474768298322275b7c81c01b24120c6a /host/lib/usrp | |
parent | e0c48ba5cc1033cd330e2ce73ceb03740923e954 (diff) | |
download | uhd-26aef3bae98aae5364deb40a62b52ba65b9aa16a.tar.gz uhd-26aef3bae98aae5364deb40a62b52ba65b9aa16a.tar.bz2 uhd-26aef3bae98aae5364deb40a62b52ba65b9aa16a.zip |
uhd: added name parameter to gain group, get range, set/get value by name
Diffstat (limited to 'host/lib/usrp')
-rw-r--r-- | host/lib/usrp/misc_utils.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/host/lib/usrp/misc_utils.cpp b/host/lib/usrp/misc_utils.cpp index 05308baba..499a6ebfb 100644 --- a/host/lib/usrp/misc_utils.cpp +++ b/host/lib/usrp/misc_utils.cpp @@ -95,7 +95,7 @@ gain_group::sptr usrp::make_gain_group( fcns.get_range = boost::bind(&get_subdev_gain_range, subdev, name); fcns.get_value = boost::bind(&get_subdev_gain, subdev, name); fcns.set_value = boost::bind(&set_subdev_gain, subdev, name, _1); - gg->register_fcns(fcns, subdev_gain_priority); + gg->register_fcns(name, fcns, subdev_gain_priority); } //add all the codec gains last (antenna to dsp order) BOOST_FOREACH(const std::string &name, codec[CODEC_PROP_GAIN_NAMES].as<prop_names_t>()){ @@ -119,7 +119,7 @@ gain_group::sptr usrp::make_gain_group( fcns.set_value = boost::bind(&set_codec_gain_q, codec, name, _1); break; } - gg->register_fcns(fcns, codec_gain_priority); + gg->register_fcns(name, fcns, codec_gain_priority); } return gg; } |