diff options
author | Josh Blum <josh@joshknows.com> | 2011-12-15 19:55:39 -0800 |
---|---|---|
committer | Josh Blum <josh@joshknows.com> | 2011-12-15 19:55:39 -0800 |
commit | f592102763d717f4a1baa3013fff86fab5ca1c48 (patch) | |
tree | 4742b490dc4498fffcf59b6f9cc1c987bb500b67 /host/lib | |
parent | d595f159674e507d6438174f53e0c8027239bcea (diff) | |
download | uhd-f592102763d717f4a1baa3013fff86fab5ca1c48.tar.gz uhd-f592102763d717f4a1baa3013fff86fab5ca1c48.tar.bz2 uhd-f592102763d717f4a1baa3013fff86fab5ca1c48.zip |
usrp1: fix div ratio for interp register
The interp register was getting set 2x, now fixed!
This bug was introduced w/ the streamer work.
Diffstat (limited to 'host/lib')
-rw-r--r-- | host/lib/usrp/usrp1/io_impl.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/host/lib/usrp/usrp1/io_impl.cpp b/host/lib/usrp/usrp1/io_impl.cpp index 234bf1b25..e9d9b65c2 100644 --- a/host/lib/usrp/usrp1/io_impl.cpp +++ b/host/lib/usrp/usrp1/io_impl.cpp @@ -497,7 +497,7 @@ double usrp1_impl::update_rx_samp_rate(size_t dspno, const double samp_rate){ double usrp1_impl::update_tx_samp_rate(size_t dspno, const double samp_rate){ - const size_t div = this->has_tx_halfband()? 2 : 1; + const size_t div = this->has_tx_halfband()? 4 : 2; //doubled for codec interp const size_t rate = boost::math::iround(_master_clock_rate/this->get_tx_dsp_host_rates().clip(samp_rate, true)); if (dspno == 0){ //only care if dsp0 is set since its homogeneous |