summaryrefslogtreecommitdiffstats
path: root/host/lib/usrp/usrp2
diff options
context:
space:
mode:
authorJosh Blum <josh@joshknows.com>2011-11-21 09:55:55 -0800
committerJosh Blum <josh@joshknows.com>2011-11-21 09:55:55 -0800
commitdac9a5001a0cdb2f03241025fc61cca7baeb3787 (patch)
tree7d9ce02e1971183b0b19ac7e4f0243c2fb2327ad /host/lib/usrp/usrp2
parent1a25e4867b395a35b718effe9d89dd217ff71941 (diff)
downloaduhd-dac9a5001a0cdb2f03241025fc61cca7baeb3787.tar.gz
uhd-dac9a5001a0cdb2f03241025fc61cca7baeb3787.tar.bz2
uhd-dac9a5001a0cdb2f03241025fc61cca7baeb3787.zip
usrp: clear dsp when making new streamer
Diffstat (limited to 'host/lib/usrp/usrp2')
-rw-r--r--host/lib/usrp/usrp2/io_impl.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/host/lib/usrp/usrp2/io_impl.cpp b/host/lib/usrp/usrp2/io_impl.cpp
index 8018875ec..742fe3e94 100644
--- a/host/lib/usrp/usrp2/io_impl.cpp
+++ b/host/lib/usrp/usrp2/io_impl.cpp
@@ -474,6 +474,7 @@ tx_streamer::sptr usrp2_impl::get_tx_stream(const uhd::stream_args_t &args_){
num_chan_so_far += _mbc[mb].tx_chan_occ;
if (chan < num_chan_so_far){
const size_t dsp = chan + _mbc[mb].tx_chan_occ - num_chan_so_far;
+ _mbc[mb].tx_dsp->clear();
my_streamer->set_xport_chan_get_buff(chan_i, boost::bind(
&usrp2_impl::io_impl::get_send_buff, _io_impl.get(), abs, _1
));