aboutsummaryrefslogtreecommitdiffstats
path: root/host
diff options
context:
space:
mode:
Diffstat (limited to 'host')
-rw-r--r--host/lib/usrp/multi_usrp_rfnoc.cpp10
1 files changed, 8 insertions, 2 deletions
diff --git a/host/lib/usrp/multi_usrp_rfnoc.cpp b/host/lib/usrp/multi_usrp_rfnoc.cpp
index 8b85e84ec..823f3547a 100644
--- a/host/lib/usrp/multi_usrp_rfnoc.cpp
+++ b/host/lib/usrp/multi_usrp_rfnoc.cpp
@@ -1780,8 +1780,14 @@ public:
double get_tx_freq(size_t chan)
{
- auto tx_chain = _get_tx_chan(chan);
- return tx_chain.radio->get_tx_frequency(tx_chain.block_chan);
+ auto& tx_chain = _get_tx_chan(chan);
+ // extract actual dsp and IF frequencies
+ const double actual_rf_freq =
+ tx_chain.radio->get_tx_frequency(tx_chain.block_chan);
+ const double actual_dsp_freq =
+ (tx_chain.duc) ? tx_chain.duc->get_freq(tx_chain.block_chan) : 0.0;
+ // invert the sign on the dsp freq for transmit
+ return actual_rf_freq - actual_dsp_freq * TX_SIGN;
}
freq_range_t get_tx_freq_range(size_t chan)