aboutsummaryrefslogtreecommitdiffstats
path: root/host/lib/rfnoc
diff options
context:
space:
mode:
authorMartin Braun <martin.braun@ettus.com>2016-08-11 10:23:26 -0700
committerMartin Braun <martin.braun@ettus.com>2016-08-11 10:23:26 -0700
commit8876bc8aea9e5a32c7e47625baad705c9503bc79 (patch)
tree4d8f7ee2943fdee47e3c9a40127c83ad80768896 /host/lib/rfnoc
parentdc2cdb539314e6f0ab74d4bcb1cb3039de9975a9 (diff)
downloaduhd-8876bc8aea9e5a32c7e47625baad705c9503bc79.tar.gz
uhd-8876bc8aea9e5a32c7e47625baad705c9503bc79.tar.bz2
uhd-8876bc8aea9e5a32c7e47625baad705c9503bc79.zip
rfnoc: Radios now ignore stream commands when inactive
Diffstat (limited to 'host/lib/rfnoc')
-rw-r--r--host/lib/rfnoc/radio_ctrl_impl.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/host/lib/rfnoc/radio_ctrl_impl.cpp b/host/lib/rfnoc/radio_ctrl_impl.cpp
index 6ed09ecdd..1cc7a2472 100644
--- a/host/lib/rfnoc/radio_ctrl_impl.cpp
+++ b/host/lib/rfnoc/radio_ctrl_impl.cpp
@@ -243,6 +243,10 @@ void radio_ctrl_impl::issue_stream_cmd(const uhd::stream_cmd_t &stream_cmd, cons
{
boost::mutex::scoped_lock lock(_mutex);
UHD_RFNOC_BLOCK_TRACE() << "radio_ctrl_impl::issue_stream_cmd() " << chan << " " << char(stream_cmd.stream_mode) << std::endl;
+ if (not _is_streamer_active(uhd::RX_DIRECTION, chan)) {
+ UHD_RFNOC_BLOCK_TRACE() << "radio_ctrl_impl::issue_stream_cmd() called on inactive channel. Skipping." << std::endl;
+ return;
+ }
UHD_ASSERT_THROW(stream_cmd.num_samps <= 0x0fffffff);
_continuous_streaming[chan] = (stream_cmd.stream_mode == stream_cmd_t::STREAM_MODE_START_CONTINUOUS);