diff options
author | Josh Blum <josh@joshknows.com> | 2010-07-24 00:02:10 -0700 |
---|---|---|
committer | Josh Blum <josh@joshknows.com> | 2010-07-27 15:45:49 -0700 |
commit | 9775ddc5215b0d5c950757ac6ae1d3226784f670 (patch) | |
tree | 7470220a884756b04bdf35c7e50c412eccc604d5 /host/lib/usrp/usrp2/dboard_impl.cpp | |
parent | c2b97490b7920f67d7522a1640b9c53b014a5349 (diff) | |
download | uhd-9775ddc5215b0d5c950757ac6ae1d3226784f670.tar.gz uhd-9775ddc5215b0d5c950757ac6ae1d3226784f670.tar.bz2 uhd-9775ddc5215b0d5c950757ac6ae1d3226784f670.zip |
usrp: added gain group support usrp2 dboard and to wrapper implementations
Diffstat (limited to 'host/lib/usrp/usrp2/dboard_impl.cpp')
-rw-r--r-- | host/lib/usrp/usrp2/dboard_impl.cpp | 18 |
1 files changed, 15 insertions, 3 deletions
diff --git a/host/lib/usrp/usrp2/dboard_impl.cpp b/host/lib/usrp/usrp2/dboard_impl.cpp index de091fcdc..e0d6beafc 100644 --- a/host/lib/usrp/usrp2/dboard_impl.cpp +++ b/host/lib/usrp/usrp2/dboard_impl.cpp @@ -15,10 +15,10 @@ // along with this program. If not, see <http://www.gnu.org/licenses/>. // - #include "usrp2_impl.hpp" #include "usrp2_regs.hpp" #include "../dsp_utils.hpp" +#include "../misc_utils.hpp" #include <uhd/usrp/subdev_props.hpp> #include <uhd/usrp/dboard_props.hpp> #include <uhd/utils/assert.hpp> @@ -93,7 +93,13 @@ void usrp2_mboard_impl::rx_dboard_get(const wax::obj &key_, wax::obj &val){ return; case DBOARD_PROP_CODEC: - val = _rx_codec_proxy; + val = _rx_codec_proxy->get_link(); + return; + + case DBOARD_PROP_GAIN_GROUP: + val = make_gain_group( + _dboard_manager->get_rx_subdev(name), _rx_codec_proxy->get_link() + ); return; default: UHD_THROW_PROP_GET_ERROR(); @@ -156,7 +162,13 @@ void usrp2_mboard_impl::tx_dboard_get(const wax::obj &key_, wax::obj &val){ return; case DBOARD_PROP_CODEC: - val = _tx_codec_proxy; + val = _tx_codec_proxy->get_link(); + return; + + case DBOARD_PROP_GAIN_GROUP: + val = make_gain_group( + _dboard_manager->get_tx_subdev(name), _tx_codec_proxy->get_link() + ); return; default: UHD_THROW_PROP_GET_ERROR(); |