aboutsummaryrefslogtreecommitdiffstats
path: root/host/lib/rfnoc/legacy_compat.hpp
diff options
context:
space:
mode:
authorMartin Braun <martin.braun@ettus.com>2016-11-15 12:13:43 -0800
committerMartin Braun <martin.braun@ettus.com>2016-12-09 11:24:29 -0800
commit37b3b32c07b229bab003d12385b93e170c5cda0e (patch)
tree57fa855a4c6ea8ff0dd1164a8d2bf21e24097e3a /host/lib/rfnoc/legacy_compat.hpp
parentcb3f7db78de5b88c8a7114b4c28ae5e7a9a19196 (diff)
downloaduhd-37b3b32c07b229bab003d12385b93e170c5cda0e.tar.gz
uhd-37b3b32c07b229bab003d12385b93e170c5cda0e.tar.bz2
uhd-37b3b32c07b229bab003d12385b93e170c5cda0e.zip
rfnoc: legacy_compat gets its own set_{rx,tx}_rate() calls
This avoids double-calling subscribers, and will fix the case where a rate change in a multi-channel scenario will break because the graph resolution is done before all rates are set.
Diffstat (limited to 'host/lib/rfnoc/legacy_compat.hpp')
-rw-r--r--host/lib/rfnoc/legacy_compat.hpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/host/lib/rfnoc/legacy_compat.hpp b/host/lib/rfnoc/legacy_compat.hpp
index 29be1bdc2..1ba3a81b9 100644
--- a/host/lib/rfnoc/legacy_compat.hpp
+++ b/host/lib/rfnoc/legacy_compat.hpp
@@ -44,6 +44,10 @@ namespace uhd { namespace rfnoc {
virtual uhd::tx_streamer::sptr get_tx_stream(const uhd::stream_args_t &args) = 0;
+ virtual void set_rx_rate(const double rate, const size_t chan) = 0;
+
+ virtual void set_tx_rate(const double rate, const size_t chan) = 0;
+
static sptr make(
uhd::device3::sptr device,
const uhd::device_addr_t &args