From 54229a06d1e4c05158ef9517fd61e61204363ed6 Mon Sep 17 00:00:00 2001 From: Josh Blum Date: Fri, 8 Jul 2011 11:58:51 -0700 Subject: usrp: added software scale factor adjustment --- host/lib/usrp/e100/io_impl.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'host/lib/usrp/e100/io_impl.cpp') diff --git a/host/lib/usrp/e100/io_impl.cpp b/host/lib/usrp/e100/io_impl.cpp index 9f7dc9921..412febd83 100644 --- a/host/lib/usrp/e100/io_impl.cpp +++ b/host/lib/usrp/e100/io_impl.cpp @@ -217,6 +217,8 @@ void e100_impl::update_tick_rate(const double rate){ void e100_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 = _rx_dsps.front()->get_scaling_adjustment(); + _io_impl->recv_handler.set_scale_factor(adj/32767.); } void e100_impl::update_tx_samp_rate(const double rate){ -- cgit v1.2.3