From 3c5b4b5f9f3db6a3c1327d1d583a28f55fa09a1d Mon Sep 17 00:00:00 2001
From: Tom Tsou <tom.tsou@ettus.com>
Date: Wed, 17 Jun 2015 17:44:42 -0700
Subject: ad9361: Prevent positive loop gain on Rx quadrature tracking

Patch fixes a portion of #807

"B210: severe distortion on In-phase data for some gain settings"

ADI recommends that the "Prevent Pos Loop Gain" setting be enabled to
prevent the Rx quadrature tracking loop from becoming unstable at low
power levels. ADI Linux kernel driver also reflects this setting.

We do not follow the ADI recommendation. Adjust accordingly.

Signed-off-by: Tom Tsou <tom.tsou@ettus.com>
---
 host/lib/usrp/common/ad9361_driver/ad9361_device.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

(limited to 'host/lib/usrp/common/ad9361_driver')

diff --git a/host/lib/usrp/common/ad9361_driver/ad9361_device.cpp b/host/lib/usrp/common/ad9361_driver/ad9361_device.cpp
index c374780f7..19b6242ff 100644
--- a/host/lib/usrp/common/ad9361_driver/ad9361_device.cpp
+++ b/host/lib/usrp/common/ad9361_driver/ad9361_device.cpp
@@ -783,7 +783,7 @@ void ad9361_device_t::_calibrate_rx_quadrature()
     _io_iface->poke8(0x168, 0x03); // Set tone level for cal
     _io_iface->poke8(0x16e, 0x25); // RX Gain index to use for cal
     _io_iface->poke8(0x16a, 0x75); // Set Kexp phase
-    _io_iface->poke8(0x16b, 0x15); // Set Kexp amplitude
+    _io_iface->poke8(0x16b, 0x95); // Set Kexp amplitude
 
     if(_use_iq_balance_correction)
     {
-- 
cgit v1.2.3