From 4769632f2868851438fac0310386034ddc7cbf8d Mon Sep 17 00:00:00 2001 From: Martin Braun Date: Tue, 24 Aug 2021 20:32:29 +0200 Subject: rh: Fix auto DC-offset correction and auto-IQ balance APIs N320 doesn't have an automatic RX IQ balance correction, so that API is removed. The auto-DC offset correction was calling into the manual DC offset correction code, which means auto-DC offset correction was never enabled for N320. --- host/lib/usrp/dboard/rhodium/rhodium_radio_control.cpp | 7 +------ host/lib/usrp/dboard/rhodium/rhodium_radio_control.hpp | 1 - 2 files changed, 1 insertion(+), 7 deletions(-) (limited to 'host/lib') diff --git a/host/lib/usrp/dboard/rhodium/rhodium_radio_control.cpp b/host/lib/usrp/dboard/rhodium/rhodium_radio_control.cpp index 5f80b84a1..6e24be21f 100644 --- a/host/lib/usrp/dboard/rhodium/rhodium_radio_control.cpp +++ b/host/lib/usrp/dboard/rhodium/rhodium_radio_control.cpp @@ -620,7 +620,7 @@ void rhodium_radio_control_impl::set_tx_iq_balance( void rhodium_radio_control_impl::set_rx_dc_offset(const bool enb, size_t) { - _rx_fe_core->set_dc_offset(enb); + _rx_fe_core->set_dc_offset_auto(enb); } void rhodium_radio_control_impl::set_rx_dc_offset( @@ -636,11 +636,6 @@ meta_range_t rhodium_radio_control_impl::get_rx_dc_offset_range(size_t) const .get(); } -void rhodium_radio_control_impl::set_rx_iq_balance(const bool enb, size_t) -{ - _rx_fe_core->set_iq_balance(enb); -} - void rhodium_radio_control_impl::set_rx_iq_balance( const std::complex& correction, size_t) { diff --git a/host/lib/usrp/dboard/rhodium/rhodium_radio_control.hpp b/host/lib/usrp/dboard/rhodium/rhodium_radio_control.hpp index a99289f21..36978ffa8 100644 --- a/host/lib/usrp/dboard/rhodium/rhodium_radio_control.hpp +++ b/host/lib/usrp/dboard/rhodium/rhodium_radio_control.hpp @@ -170,7 +170,6 @@ public: void set_rx_dc_offset(const bool enb, size_t chan = ALL_CHANS) override; void set_rx_dc_offset(const std::complex& offset, size_t chan) override; meta_range_t get_rx_dc_offset_range(size_t chan) const override; - void set_rx_iq_balance(const bool enb, size_t chan) override; void set_rx_iq_balance(const std::complex& correction, size_t chan) override; /************************************************************************ -- cgit v1.2.3