aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--host/lib/rfnoc/rfnoc_rx_streamer.cpp2
-rw-r--r--host/lib/rfnoc/rfnoc_tx_streamer.cpp2
2 files changed, 2 insertions, 2 deletions
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<uint64_t> 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<chdr_rx_data_xport>(stream_args.channels.size(), stream_args)
+ : rx_streamer_impl<chdr_rx_data_xport>(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<chdr_tx_data_xport>(stream_args.channels.size(), stream_args)
+ : tx_streamer_impl<chdr_tx_data_xport>(num_chans, stream_args)
, _unique_id(STREAMER_ID + "#" + std::to_string(streamer_inst_ctr++))
, _stream_args(stream_args)
, _disconnect_cb(disconnect_cb)