diff options
author | Josh Blum <josh@joshknows.com> | 2010-07-24 00:02:10 -0700 |
---|---|---|
committer | Josh Blum <josh@joshknows.com> | 2010-07-24 00:02:10 -0700 |
commit | 707b103ce5f3b9cc299e741c968c35bd4038b610 (patch) | |
tree | 4c8543785bc3eb0f49ab0b5b7ccfc635e7392c40 /host/lib/usrp/usrp2/dboard_impl.cpp | |
parent | 4a6543bd481370ae924ca90c325d5cd5b2dfe692 (diff) | |
download | uhd-707b103ce5f3b9cc299e741c968c35bd4038b610.tar.gz uhd-707b103ce5f3b9cc299e741c968c35bd4038b610.tar.bz2 uhd-707b103ce5f3b9cc299e741c968c35bd4038b610.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(); |