summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBalint Seeber <balint@ettus.com>2014-03-13 13:15:25 -0700
committerBen Hilburn <ben.hilburn@ettus.com>2014-03-31 12:50:18 -0700
commit3df02f00eaf312574325cb35af97c0512559cf3e (patch)
tree965a520dad575308f437d975df57549782513a4c
parent7f3a9249cc7a88a72ced9f08bb29144dc276a587 (diff)
downloaduhd-3df02f00eaf312574325cb35af97c0512559cf3e.tar.gz
uhd-3df02f00eaf312574325cb35af97c0512559cf3e.tar.bz2
uhd-3df02f00eaf312574325cb35af97c0512559cf3e.zip
b200: RX DSP scaling mask is 1 bit too narrow for decim 256
-rw-r--r--host/lib/usrp/cores/rx_dsp_core_3000.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/host/lib/usrp/cores/rx_dsp_core_3000.cpp b/host/lib/usrp/cores/rx_dsp_core_3000.cpp
index 86846667f..69829bf14 100644
--- a/host/lib/usrp/cores/rx_dsp_core_3000.cpp
+++ b/host/lib/usrp/cores/rx_dsp_core_3000.cpp
@@ -161,7 +161,7 @@ public:
// Calculate CIC decimation (i.e., without halfband decimators)
// Calculate closest multiplier constant to reverse gain absent scale multipliers
- const double rate_pow = std::pow(double(decim & 0xff), 4);
+ const double rate_pow = std::pow(double(decim & 0x1ff), 4);
_scaling_adjustment = std::pow(2, ceil_log2(rate_pow))/(1.65*rate_pow);
this->update_scalar();