From 7ca25b6f1f3e111578993e6e8fdd90bdbf2fa7d6 Mon Sep 17 00:00:00 2001 From: Trung N Tran Date: Tue, 19 Dec 2017 17:29:50 -0800 Subject: mg: Fix tx low band frequency Reviewed-by: Martin Braun --- host/lib/usrp/dboard/magnesium/magnesium_radio_ctrl_impl.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'host/lib') diff --git a/host/lib/usrp/dboard/magnesium/magnesium_radio_ctrl_impl.cpp b/host/lib/usrp/dboard/magnesium/magnesium_radio_ctrl_impl.cpp index 8fa500872..dd239484b 100644 --- a/host/lib/usrp/dboard/magnesium/magnesium_radio_ctrl_impl.cpp +++ b/host/lib/usrp/dboard/magnesium/magnesium_radio_ctrl_impl.cpp @@ -230,7 +230,7 @@ double magnesium_radio_ctrl_impl::set_tx_frequency( _is_low_band[TX_DIRECTION] = true; const double desired_low_freq = MAGNESIUM_TX_IF_FREQ - freq; coerced_if_freq = - this->set_tx_lo_freq(desired_low_freq, MAGNESIUM_LO2, chan) + freq; + this->_set_tx_lo_freq(adf4351_source, MAGNESIUM_LO2, desired_low_freq, chan) + freq; UHD_LOG_TRACE(unique_id(), "coerced_if_freq = " << coerced_if_freq); } else { _is_low_band[TX_DIRECTION] = false; @@ -241,8 +241,7 @@ double magnesium_radio_ctrl_impl::set_tx_frequency( coerced_if_freq : 2*coerced_if_freq; - this->set_tx_lo_freq(desired_if_freq, MAGNESIUM_LO1, chan); - + this->_set_tx_lo_freq(ad9371_source, MAGNESIUM_LO1, desired_if_freq, chan); this->_update_freq(chan, TX_DIRECTION); this->_update_gain(chan, TX_DIRECTION); return radio_ctrl_impl::get_tx_frequency(chan); -- cgit v1.2.3