aboutsummaryrefslogtreecommitdiffstats
path: root/host
diff options
context:
space:
mode:
authorMichael West <michael.west@ettus.com>2020-03-19 12:49:29 -0700
committerAaron Rossetto <aaron.rossetto@ni.com>2020-05-12 12:03:31 -0500
commit1cdfe30725c90c950fda1e5cd3810a1e143fbaa3 (patch)
tree3be124013bcd8e7b898275940740e62790b15f84 /host
parentd0c162bc7a4ac82f6104506b17d7be05e1780336 (diff)
downloaduhd-1cdfe30725c90c950fda1e5cd3810a1e143fbaa3.tar.gz
uhd-1cdfe30725c90c950fda1e5cd3810a1e143fbaa3.tar.bz2
uhd-1cdfe30725c90c950fda1e5cd3810a1e143fbaa3.zip
multi_usrp_rfnoc: Misc fixes
- Change get_master_clock_rate() to return tick rate instead of sample rate - Make warning of incompatible rates conditional so it does not display for first channel Signed-off-by: Michael West <michael.west@ettus.com>
Diffstat (limited to 'host')
-rw-r--r--host/lib/usrp/multi_usrp_rfnoc.cpp13
1 files changed, 7 insertions, 6 deletions
diff --git a/host/lib/usrp/multi_usrp_rfnoc.cpp b/host/lib/usrp/multi_usrp_rfnoc.cpp
index a62fe3f8e..aa28c6784 100644
--- a/host/lib/usrp/multi_usrp_rfnoc.cpp
+++ b/host/lib/usrp/multi_usrp_rfnoc.cpp
@@ -303,10 +303,11 @@ public:
const double chan_rate =
_rx_rates.count(rx_channel) ? _rx_rates.at(rx_channel) : 1.0;
if (chan_rate > 1.0 && rate != chan_rate) {
- UHD_LOG_DEBUG("MULTI_USRP",
- "Inconsistent RX rates when creating streamer! Harmonizing "
- "to "
- << chan_rate);
+ if (rate > 1.0) {
+ UHD_LOG_DEBUG("MULTI_USRP",
+ "Inconsistent RX rates when creating streamer! "
+ "Harmonizing to " << chan_rate);
+ }
rate = chan_rate;
}
}
@@ -609,13 +610,13 @@ public:
for (auto& chain : _rx_chans) {
auto radio = chain.second.radio;
if (radio->get_block_id().get_device_no() == mboard) {
- return radio->get_rate();
+ return radio->get_tick_rate();
}
}
for (auto& chain : _tx_chans) {
auto radio = chain.second.radio;
if (radio->get_block_id().get_device_no() == mboard) {
- return radio->get_rate();
+ return radio->get_tick_rate();
}
}
throw uhd::key_error("Invalid mboard index!");