From 37b3b32c07b229bab003d12385b93e170c5cda0e Mon Sep 17 00:00:00 2001 From: Martin Braun Date: Tue, 15 Nov 2016 12:13:43 -0800 Subject: 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. --- host/lib/rfnoc/legacy_compat.hpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'host/lib/rfnoc/legacy_compat.hpp') 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 -- cgit v1.2.3