diff options
author | Martin Braun <martin.braun@ettus.com> | 2017-04-13 15:33:03 -0700 |
---|---|---|
committer | Martin Braun <martin.braun@ettus.com> | 2017-04-13 15:33:03 -0700 |
commit | 2790b51f3072b5ad5e3a5c4921a84f460096f92d (patch) | |
tree | c91809e9b289bbcb62c156d0f1af9f66c01d3f8c /host/lib/rfnoc/duc_block_ctrl_impl.cpp | |
parent | 068de67366777322a7a132c4739bee9889c2bf19 (diff) | |
parent | fae9468c3a2c00c4390a50679b5ae176c5f9a2a5 (diff) | |
download | uhd-2790b51f3072b5ad5e3a5c4921a84f460096f92d.tar.gz uhd-2790b51f3072b5ad5e3a5c4921a84f460096f92d.tar.bz2 uhd-2790b51f3072b5ad5e3a5c4921a84f460096f92d.zip |
Merge branch 'maint'
Diffstat (limited to 'host/lib/rfnoc/duc_block_ctrl_impl.cpp')
-rw-r--r-- | host/lib/rfnoc/duc_block_ctrl_impl.cpp | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/host/lib/rfnoc/duc_block_ctrl_impl.cpp b/host/lib/rfnoc/duc_block_ctrl_impl.cpp index 07279ed47..d0742a6d0 100644 --- a/host/lib/rfnoc/duc_block_ctrl_impl.cpp +++ b/host/lib/rfnoc/duc_block_ctrl_impl.cpp @@ -113,6 +113,15 @@ public: double get_input_samp_rate(size_t port=ANY_PORT) { port = (port == ANY_PORT) ? 0 : port; + + // Wait, what? If this seems out of place to you, you're right. However, + // we need a function call that is called when the graph is complete, + // but streaming is not yet set up. + if (_tree->exists("tick_rate")) { + const double tick_rate = _tree->access<double>("tick_rate").get(); + set_command_tick_rate(tick_rate, port); + } + if (not (_tx_streamer_active.count(port) and _tx_streamer_active.at(port))) { return RATE_UNDEFINED; } |