aboutsummaryrefslogtreecommitdiffstats
path: root/host/lib/usrp
diff options
context:
space:
mode:
authorMartin Braun <martin.braun@ettus.com>2016-11-18 11:23:33 -0800
committerMartin Braun <martin.braun@ettus.com>2016-12-09 11:24:29 -0800
commitcb3f7db78de5b88c8a7114b4c28ae5e7a9a19196 (patch)
tree994e1b48505541493c7b0b451778cd20ac40b233 /host/lib/usrp
parent09d47168b142c0509ba401c459d4804564b1ebe4 (diff)
downloaduhd-cb3f7db78de5b88c8a7114b4c28ae5e7a9a19196.tar.gz
uhd-cb3f7db78de5b88c8a7114b4c28ae5e7a9a19196.tar.bz2
uhd-cb3f7db78de5b88c8a7114b4c28ae5e7a9a19196.zip
device3: Backed-out the alignment adaption
Diffstat (limited to 'host/lib/usrp')
-rw-r--r--host/lib/usrp/device3/device3_io_impl.cpp6
1 files changed, 0 insertions, 6 deletions
diff --git a/host/lib/usrp/device3/device3_io_impl.cpp b/host/lib/usrp/device3/device3_io_impl.cpp
index a490ae5b4..6df9f6336 100644
--- a/host/lib/usrp/device3/device3_io_impl.cpp
+++ b/host/lib/usrp/device3/device3_io_impl.cpp
@@ -473,10 +473,6 @@ void device3_impl::update_rx_streamers(double /* rate */)
if (samp_rate == rfnoc::rate_node_ctrl::RATE_UNDEFINED) {
samp_rate = 1.0;
}
- // This formula is not derived by any scientific means -- we just need to
- // increase the failure threshold as we increase rates. For 1 Msps, we use
- // the default.
- const size_t alignment_failure_factor = std::max(size_t(1), size_t(samp_rate * 1000 / tick_rate));
double scaling = my_streamer->get_terminator()->get_output_scale_factor();
if (scaling == rfnoc::scalar_node_ctrl::SCALE_UNDEFINED) {
scaling = 1/32767.;
@@ -485,8 +481,6 @@ void device3_impl::update_rx_streamers(double /* rate */)
my_streamer->set_tick_rate(tick_rate);
my_streamer->set_samp_rate(samp_rate);
- // 1000 packets is the default alignment failure threshold
- my_streamer->set_alignment_failure_threshold(1000 * alignment_failure_factor);
my_streamer->set_scale_factor(scaling);
}
}