From fecfe64fa54ab07841cbda09a31317e2d5ffb83c Mon Sep 17 00:00:00 2001 From: Brent Stapleton Date: Thu, 5 Dec 2019 18:32:55 -0800 Subject: 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") --- host/lib/rfnoc/ddc_block_control.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'host') 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 decims{1}; // 1 is always a valid decimatino + std::set 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 -- cgit v1.2.3