aboutsummaryrefslogtreecommitdiffstats
path: root/host/lib/usrp
diff options
context:
space:
mode:
authorMartin Braun <martin.braun@ettus.com>2021-08-24 20:32:29 +0200
committerAaron Rossetto <aaron.rossetto@ni.com>2021-09-08 11:54:19 -0500
commit4769632f2868851438fac0310386034ddc7cbf8d (patch)
tree35b72d1e4f8082f9bed6c82bea189d54fd3dba50 /host/lib/usrp
parentfd2ff73b820079e4670f1348c5ab8f5c61143b34 (diff)
downloaduhd-4769632f2868851438fac0310386034ddc7cbf8d.tar.gz
uhd-4769632f2868851438fac0310386034ddc7cbf8d.tar.bz2
uhd-4769632f2868851438fac0310386034ddc7cbf8d.zip
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.
Diffstat (limited to 'host/lib/usrp')
-rw-r--r--host/lib/usrp/dboard/rhodium/rhodium_radio_control.cpp7
-rw-r--r--host/lib/usrp/dboard/rhodium/rhodium_radio_control.hpp1
2 files changed, 1 insertions, 7 deletions
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<double>& 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<double>& 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<double>& correction, size_t chan) override;
/************************************************************************