summaryrefslogtreecommitdiffstats
path: root/host/lib/usrp/usrp2
diff options
context:
space:
mode:
authorJosh Blum <josh@joshknows.com>2011-10-05 14:41:57 -0700
committerJosh Blum <josh@joshknows.com>2011-11-03 20:37:11 -0700
commite4561a18cd4bbcf8a20799704c42bfb4c2543dc2 (patch)
tree0583973c563e6690dfbc1577bdc5a504f06e81d2 /host/lib/usrp/usrp2
parenta629bbe7e3c39a10bdc3a981f6badb85a436b443 (diff)
downloaduhd-e4561a18cd4bbcf8a20799704c42bfb4c2543dc2.tar.gz
uhd-e4561a18cd4bbcf8a20799704c42bfb4c2543dc2.tar.bz2
uhd-e4561a18cd4bbcf8a20799704c42bfb4c2543dc2.zip
usrp1: did work for stream interface on usrp1
Diffstat (limited to 'host/lib/usrp/usrp2')
-rw-r--r--host/lib/usrp/usrp2/io_impl.cpp6
1 files changed, 0 insertions, 6 deletions
diff --git a/host/lib/usrp/usrp2/io_impl.cpp b/host/lib/usrp/usrp2/io_impl.cpp
index 44217c36c..f271d480a 100644
--- a/host/lib/usrp/usrp2/io_impl.cpp
+++ b/host/lib/usrp/usrp2/io_impl.cpp
@@ -272,14 +272,12 @@ void usrp2_impl::update_tick_rate(const double rate){
boost::shared_ptr<sph::recv_packet_streamer> my_streamer =
boost::dynamic_pointer_cast<sph::recv_packet_streamer>(_mbc[mb].rx_streamers[i].lock());
if (my_streamer.get() == NULL) continue;
- boost::mutex::scoped_lock lock = my_streamer->get_scoped_lock();
my_streamer->set_tick_rate(rate);
}
for (size_t i = 0; i < _mbc[mb].tx_streamers.size(); i++){
boost::shared_ptr<sph::send_packet_streamer> my_streamer =
boost::dynamic_pointer_cast<sph::send_packet_streamer>(_mbc[mb].tx_streamers[i].lock());
if (my_streamer.get() == NULL) continue;
- boost::mutex::scoped_lock lock = my_streamer->get_scoped_lock();
my_streamer->set_tick_rate(rate);
}
}
@@ -290,8 +288,6 @@ void usrp2_impl::update_rx_samp_rate(const std::string &mb, const size_t dsp, co
boost::dynamic_pointer_cast<sph::recv_packet_streamer>(_mbc[mb].rx_streamers[dsp].lock());
if (my_streamer.get() == NULL) return;
- boost::mutex::scoped_lock lock = my_streamer->get_scoped_lock();
-
my_streamer->set_samp_rate(rate);
const double adj = _mbc[mb].rx_dsps[dsp]->get_scaling_adjustment();
my_streamer->set_scale_factor(adj/32767.);
@@ -302,8 +298,6 @@ void usrp2_impl::update_tx_samp_rate(const std::string &mb, const size_t dsp, co
boost::dynamic_pointer_cast<sph::send_packet_streamer>(_mbc[mb].tx_streamers[dsp].lock());
if (my_streamer.get() == NULL) return;
- boost::mutex::scoped_lock lock = my_streamer->get_scoped_lock();
-
my_streamer->set_samp_rate(rate);
}