aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBrent Stapleton <brent.stapleton@ettus.com>2019-12-05 18:32:55 -0800
committerMartin Braun <martin.braun@ettus.com>2019-12-05 21:21:35 -0800
commitfecfe64fa54ab07841cbda09a31317e2d5ffb83c (patch)
treeba9fceadf897efd99af1efe882c71ce33add06d0
parent910ccc214daf1b1d74d768daa93b42196366e5b6 (diff)
downloaduhd-fecfe64fa54ab07841cbda09a31317e2d5ffb83c.tar.gz
uhd-fecfe64fa54ab07841cbda09a31317e2d5ffb83c.tar.bz2
uhd-fecfe64fa54ab07841cbda09a31317e2d5ffb83c.zip
ddc: fixup decimation property
- Use coerce_decim(), not int(), to coerce the decimation rate - Fix typo Fixes: a36fc4604f9b ("rfnoc: DDC: Fix property propagation") Fixes: 36853315741a ("rfnoc: Add DDC block controller")
-rw-r--r--host/lib/rfnoc/ddc_block_control.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/host/lib/rfnoc/ddc_block_control.cpp b/host/lib/rfnoc/ddc_block_control.cpp
index 9f90980d9..1d88dad26 100644
--- a/host/lib/rfnoc/ddc_block_control.cpp
+++ b/host/lib/rfnoc/ddc_block_control.cpp
@@ -73,7 +73,7 @@ public:
<< _cic_max_decim);
set_mtu_forwarding_policy(forwarding_policy_t::ONE_TO_ONE);
// Load list of valid decimation values
- std::set<size_t> decims{1}; // 1 is always a valid decimatino
+ std::set<size_t> decims{1}; // 1 is always a valid decimation
for (size_t hb = 0; hb < _num_halfbands; hb++) {
for (size_t cic_decim = 1; cic_decim <= _cic_max_decim; cic_decim++) {
decims.insert((1 << hb) * cic_decim);
@@ -348,7 +348,7 @@ private:
if (samp_rate_out.is_valid()) {
if (samp_rate_in.is_valid()) {
decim =
- coerce_decim(int(samp_rate_in.get() / samp_rate_out.get()));
+ coerce_decim(samp_rate_in.get() / samp_rate_out.get());
}
// If decim is dirty, it will trigger the decim resolver.
// However, the decim resolver will set the output rate based