From 3a2a3610c243450cff31151b402039d0403699ab Mon Sep 17 00:00:00 2001 From: michael-west Date: Thu, 6 Aug 2020 14:04:27 -0700 Subject: RFNoC: Revert change in streamer initialization Reverting inadvertent change in num_chans argument during tx/rx_streamer_impl construction. Signed-off-by: michael-west --- host/lib/rfnoc/rfnoc_rx_streamer.cpp | 2 +- host/lib/rfnoc/rfnoc_tx_streamer.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'host/lib/rfnoc') diff --git a/host/lib/rfnoc/rfnoc_rx_streamer.cpp b/host/lib/rfnoc/rfnoc_rx_streamer.cpp index 180f5e87f..f7459dbfc 100644 --- a/host/lib/rfnoc/rfnoc_rx_streamer.cpp +++ b/host/lib/rfnoc/rfnoc_rx_streamer.cpp @@ -21,7 +21,7 @@ static std::atomic streamer_inst_ctr; rfnoc_rx_streamer::rfnoc_rx_streamer(const size_t num_chans, const uhd::stream_args_t stream_args, disconnect_fn_t disconnect_cb) - : rx_streamer_impl(stream_args.channels.size(), stream_args) + : rx_streamer_impl(num_chans, stream_args) , _unique_id(STREAMER_ID + "#" + std::to_string(streamer_inst_ctr++)) , _stream_args(stream_args) , _disconnect_cb(disconnect_cb) diff --git a/host/lib/rfnoc/rfnoc_tx_streamer.cpp b/host/lib/rfnoc/rfnoc_tx_streamer.cpp index 578db5cdf..a00b41c75 100644 --- a/host/lib/rfnoc/rfnoc_tx_streamer.cpp +++ b/host/lib/rfnoc/rfnoc_tx_streamer.cpp @@ -19,7 +19,7 @@ static constexpr size_t ASYNC_MSG_QUEUE_SIZE = 1000; rfnoc_tx_streamer::rfnoc_tx_streamer(const size_t num_chans, const uhd::stream_args_t stream_args, disconnect_fn_t disconnect_cb) - : tx_streamer_impl(stream_args.channels.size(), stream_args) + : tx_streamer_impl(num_chans, stream_args) , _unique_id(STREAMER_ID + "#" + std::to_string(streamer_inst_ctr++)) , _stream_args(stream_args) , _disconnect_cb(disconnect_cb) -- cgit v1.2.3