diff options
author | Josh Blum <josh@joshknows.com> | 2010-11-11 17:57:59 -0800 |
---|---|---|
committer | Josh Blum <josh@joshknows.com> | 2010-11-11 17:57:59 -0800 |
commit | 258d9bb45fbe7a0fa246f860eee7bf3e3b978fe3 (patch) | |
tree | 68bb69d2b8500ba9b7c3526a7953902aa78795e0 /host/lib/usrp/usrp2/codec_impl.cpp | |
parent | 476afe68f5c37a3e10a1208b0150732d7770a023 (diff) | |
download | uhd-258d9bb45fbe7a0fa246f860eee7bf3e3b978fe3.tar.gz uhd-258d9bb45fbe7a0fa246f860eee7bf3e3b978fe3.tar.bz2 uhd-258d9bb45fbe7a0fa246f860eee7bf3e3b978fe3.zip |
usrp-n: populated name properties to use the generated cname from iface
Diffstat (limited to 'host/lib/usrp/usrp2/codec_impl.cpp')
-rw-r--r-- | host/lib/usrp/usrp2/codec_impl.cpp | 18 |
1 files changed, 16 insertions, 2 deletions
diff --git a/host/lib/usrp/usrp2/codec_impl.cpp b/host/lib/usrp/usrp2/codec_impl.cpp index 5f4937643..998d55297 100644 --- a/host/lib/usrp/usrp2/codec_impl.cpp +++ b/host/lib/usrp/usrp2/codec_impl.cpp @@ -59,7 +59,21 @@ void usrp2_mboard_impl::rx_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("usrp2 adc"); + switch(_iface->get_rev()){ + case usrp2_iface::USRP_N200: + case usrp2_iface::USRP_N210: + val = std::string(_iface->get_cname() + " adc - ads62p44"); + break; + + case usrp2_iface::USRP2_REV3: + case usrp2_iface::USRP2_REV4: + val = std::string(_iface->get_cname() + " adc - ltc2284"); + break; + + case usrp2_iface::USRP_NXXX: + val = std::string(_iface->get_cname() + " adc - ??????"); + break; + } return; case CODEC_PROP_OTHERS: @@ -139,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("usrp2 dac - ad9777"); + val = std::string(_iface->get_cname() + " dac - ad9777"); return; case CODEC_PROP_OTHERS: |