diff options
Diffstat (limited to 'host')
| -rw-r--r-- | host/lib/rfnoc/ddc_block_ctrl_impl.cpp | 10 | 
1 files changed, 9 insertions, 1 deletions
| diff --git a/host/lib/rfnoc/ddc_block_ctrl_impl.cpp b/host/lib/rfnoc/ddc_block_ctrl_impl.cpp index 2aac22ca4..fb70b6f45 100644 --- a/host/lib/rfnoc/ddc_block_ctrl_impl.cpp +++ b/host/lib/rfnoc/ddc_block_ctrl_impl.cpp @@ -121,7 +121,15 @@ public:      double get_output_samp_rate(size_t port=ANY_PORT)      { -        port = port == ANY_PORT ? 0 : port; +        if (port == ANY_PORT) { +            port = 0; +            for (size_t i = 0; i < get_input_ports().size(); i++) { +                if (_rx_streamer_active.count(i) and _rx_streamer_active.at(i)) { +                    port = i; +                    break; +                } +            } +        }          if (not (_rx_streamer_active.count(port) and _rx_streamer_active.at(port))) {              return RATE_UNDEFINED;          } | 
