diff options
author | Josh Blum <josh@joshknows.com> | 2010-08-31 12:18:12 -0700 |
---|---|---|
committer | Josh Blum <josh@joshknows.com> | 2010-08-31 12:18:12 -0700 |
commit | 5b546c5075033cc3f5a9bc8c91f26a0c51c35d68 (patch) | |
tree | 88c2f98ccb1ec63aaaadbe935f17884391ef01a9 /host/lib/usrp/usrp2/mboard_impl.cpp | |
parent | 954be82738b9237e77162566d39e2daed8105a2a (diff) | |
parent | 02e339cc501eebd38f72b0f172551930106b8634 (diff) | |
download | uhd-5b546c5075033cc3f5a9bc8c91f26a0c51c35d68.tar.gz uhd-5b546c5075033cc3f5a9bc8c91f26a0c51c35d68.tar.bz2 uhd-5b546c5075033cc3f5a9bc8c91f26a0c51c35d68.zip |
Merge branch 'next' into usrp1
Diffstat (limited to 'host/lib/usrp/usrp2/mboard_impl.cpp')
-rw-r--r-- | host/lib/usrp/usrp2/mboard_impl.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/host/lib/usrp/usrp2/mboard_impl.cpp b/host/lib/usrp/usrp2/mboard_impl.cpp index d5785f326..0b9f8ee83 100644 --- a/host/lib/usrp/usrp2/mboard_impl.cpp +++ b/host/lib/usrp/usrp2/mboard_impl.cpp @@ -69,6 +69,11 @@ usrp2_mboard_impl::usrp2_mboard_impl( _allowed_decim_and_interp_rates.push_back(i); } + //Issue a stop streaming command (in case it was left running). + //Since this command is issued before the networking is setup, + //most if not all junk packets will never make it to the socket. + this->issue_ddc_stream_cmd(stream_cmd_t::STREAM_MODE_STOP_CONTINUOUS); + //init the rx control registers _iface->poke32(U2_REG_RX_CTRL_NSAMPS_PER_PKT, _io_helper.get_max_recv_samps_per_packet()); _iface->poke32(U2_REG_RX_CTRL_NCHANNELS, 1); @@ -107,11 +112,6 @@ usrp2_mboard_impl::usrp2_mboard_impl( //set default subdev specs (*this)[MBOARD_PROP_RX_SUBDEV_SPEC] = subdev_spec_t(); (*this)[MBOARD_PROP_TX_SUBDEV_SPEC] = subdev_spec_t(); - - //Issue a stop streaming command (in case it was left running). - //Since this command is issued before the networking is setup, - //most if not all junk packets will never make it to the socket. - this->issue_ddc_stream_cmd(stream_cmd_t::STREAM_MODE_STOP_CONTINUOUS); } usrp2_mboard_impl::~usrp2_mboard_impl(void){ |