diff options
author | Josh Blum <josh@joshknows.com> | 2011-07-08 11:58:51 -0700 |
---|---|---|
committer | Josh Blum <josh@joshknows.com> | 2011-07-08 11:58:51 -0700 |
commit | 54229a06d1e4c05158ef9517fd61e61204363ed6 (patch) | |
tree | 9102001f3a60d3af433d5b257ed213cd3faa9fdf /host/lib/usrp/usrp2/io_impl.cpp | |
parent | aa6b340f436acf4c0cad80416f69312ecfe3f29f (diff) | |
download | uhd-54229a06d1e4c05158ef9517fd61e61204363ed6.tar.gz uhd-54229a06d1e4c05158ef9517fd61e61204363ed6.tar.bz2 uhd-54229a06d1e4c05158ef9517fd61e61204363ed6.zip |
usrp: added software scale factor adjustment
Diffstat (limited to 'host/lib/usrp/usrp2/io_impl.cpp')
-rw-r--r-- | host/lib/usrp/usrp2/io_impl.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/host/lib/usrp/usrp2/io_impl.cpp b/host/lib/usrp/usrp2/io_impl.cpp index eda2267bc..4c55012ce 100644 --- a/host/lib/usrp/usrp2/io_impl.cpp +++ b/host/lib/usrp/usrp2/io_impl.cpp @@ -299,6 +299,8 @@ void usrp2_impl::update_tick_rate(const double rate){ void usrp2_impl::update_rx_samp_rate(const double rate){ boost::mutex::scoped_lock recv_lock = _io_impl->recv_handler.get_scoped_lock(); _io_impl->recv_handler.set_samp_rate(rate); + const double adj = _mbc[_mbc.keys().front()].rx_dsps.front()->get_scaling_adjustment(); + _io_impl->recv_handler.set_scale_factor(adj/32767.); } void usrp2_impl::update_tx_samp_rate(const double rate){ |