aboutsummaryrefslogtreecommitdiffstats
path: root/host/lib
diff options
context:
space:
mode:
authorBalint Seeber <balint@ettus.com>2014-03-13 13:15:25 -0700
committerNicholas Corgan <nick.corgan@ettus.com>2014-03-31 14:29:03 -0700
commitb6e21f1c201ef940443db229c9b525e89669ebd9 (patch)
tree1fd21003b3026a5fe28ce1b9215d5e1c4ade10e2 /host/lib
parent69feb0e437c04f0c79ace814c52cce67bb2194e9 (diff)
downloaduhd-b6e21f1c201ef940443db229c9b525e89669ebd9.tar.gz
uhd-b6e21f1c201ef940443db229c9b525e89669ebd9.tar.bz2
uhd-b6e21f1c201ef940443db229c9b525e89669ebd9.zip
b200: RX DSP scaling mask is 1 bit too narrow for decim 256
Diffstat (limited to 'host/lib')
-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();