aboutsummaryrefslogtreecommitdiffstats
path: root/host/lib/usrp/common
diff options
context:
space:
mode:
authorDerek Kozel <derek.kozel@ettus.com>2018-05-25 23:14:33 +0100
committerMartin Braun <martin.braun@ettus.com>2018-06-06 08:19:30 -0700
commit8969d2193bd6f9fbac166509f1d08c404d5951ff (patch)
tree29ea0749bec9cf44c38a9adb4a267568964226d3 /host/lib/usrp/common
parentec786351c73a4b94bf43f5212b1f57d0820267bb (diff)
downloaduhd-8969d2193bd6f9fbac166509f1d08c404d5951ff.tar.gz
uhd-8969d2193bd6f9fbac166509f1d08c404d5951ff.tar.bz2
uhd-8969d2193bd6f9fbac166509f1d08c404d5951ff.zip
LMX2592: Skip output div-by-3 due to harmonics
Diffstat (limited to 'host/lib/usrp/common')
-rw-r--r--host/lib/usrp/common/lmx2592.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/host/lib/usrp/common/lmx2592.cpp b/host/lib/usrp/common/lmx2592.cpp
index 3f71fb04c..4a6cef887 100644
--- a/host/lib/usrp/common/lmx2592.cpp
+++ b/host/lib/usrp/common/lmx2592.cpp
@@ -151,6 +151,12 @@ public:
// Find the largest possible divider
auto output_divider_index = 0;
for (auto limit : LMX2592_CHDIV_MIN_FREQ) {
+ // The second harmonic level is very bad when using the div-by-3
+ // Skip and let the div-by-4 cover the range
+ if (LMX2592_CHDIV_DIVIDERS[output_divider_index] == 3) {
+ output_divider_index++;
+ continue;
+ }
if (target_freq < limit) {
output_divider_index++;
} else {