diff options
author | Michael West <michael.west@ettus.com> | 2017-11-17 16:45:45 -0800 |
---|---|---|
committer | Martin Braun <martin.braun@ettus.com> | 2017-12-22 15:05:06 -0800 |
commit | e3f409e8820bdba1cd2a42390d7db40692873363 (patch) | |
tree | df3e2bd30f3b3fb81c8e86d3a18bffb45dc406ae /host/lib/rfnoc | |
parent | 50a8624a4bb1949eafcc1a051cce50d2514c2fc0 (diff) | |
download | uhd-e3f409e8820bdba1cd2a42390d7db40692873363.tar.gz uhd-e3f409e8820bdba1cd2a42390d7db40692873363.tar.bz2 uhd-e3f409e8820bdba1cd2a42390d7db40692873363.zip |
legacy_compat: Fix number of TX channels per radio calculation when skip_dram is used
Diffstat (limited to 'host/lib/rfnoc')
-rw-r--r-- | host/lib/rfnoc/legacy_compat.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/host/lib/rfnoc/legacy_compat.cpp b/host/lib/rfnoc/legacy_compat.cpp index 945ce43ad..f6b065dcb 100644 --- a/host/lib/rfnoc/legacy_compat.cpp +++ b/host/lib/rfnoc/legacy_compat.cpp @@ -116,7 +116,7 @@ public: _num_mboards(_tree->list("/mboards").size()), _num_radios_per_board(device->find_blocks<radio_ctrl>("0/Radio").size()), // These might throw, maybe we catch that and provide a nicer error message. _num_tx_chans_per_radio( - calc_num_tx_chans_per_radio(_tree, _num_radios_per_board, _has_ducs, not device->find_blocks(DFIFO_BLOCK_NAME).empty()) + calc_num_tx_chans_per_radio(_tree, _num_radios_per_board, _has_ducs, _has_dmafifo) ), _num_rx_chans_per_radio(_has_ddcs ? std::min(num_ports(_tree, RADIO_BLOCK_NAME, "out"), num_ports(_tree, DDC_BLOCK_NAME, "out")) |