aboutsummaryrefslogtreecommitdiffstats
path: root/host/lib/usrp/usrp2
diff options
context:
space:
mode:
authorJosh Blum <josh@joshknows.com>2012-02-01 09:48:28 -0800
committerJosh Blum <josh@joshknows.com>2012-02-01 09:48:28 -0800
commitd27125b9ab86e0d44db1317707aff7e9f9f8f32f (patch)
tree31e9379767f4a666e779ae0099b97dc22b32737c /host/lib/usrp/usrp2
parentd46c176af34b728fd43b3dd46485b38623a7335e (diff)
downloaduhd-d27125b9ab86e0d44db1317707aff7e9f9f8f32f.tar.gz
uhd-d27125b9ab86e0d44db1317707aff7e9f9f8f32f.tar.bz2
uhd-d27125b9ab86e0d44db1317707aff7e9f9f8f32f.zip
dsp rework: account for no sid used in tx vita pkt
Diffstat (limited to 'host/lib/usrp/usrp2')
-rw-r--r--host/lib/usrp/usrp2/io_impl.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/host/lib/usrp/usrp2/io_impl.cpp b/host/lib/usrp/usrp2/io_impl.cpp
index 6dcec6f1f..9b6c1c2f0 100644
--- a/host/lib/usrp/usrp2/io_impl.cpp
+++ b/host/lib/usrp/usrp2/io_impl.cpp
@@ -449,10 +449,11 @@ tx_streamer::sptr usrp2_impl::get_tx_stream(const uhd::stream_args_t &args_){
//calculate packet size
static const size_t hdr_size = 0
+ + vrt_send_header_offset_words32*sizeof(boost::uint32_t)
+ vrt::max_if_hdr_words32*sizeof(boost::uint32_t)
+ sizeof(vrt::if_packet_info_t().tlr) //forced to have trailer
- + vrt_send_header_offset_words32*sizeof(boost::uint32_t)
- sizeof(vrt::if_packet_info_t().cid) //no class id ever used
+ - sizeof(vrt::if_packet_info_t().sid) //no stream id ever used
;
const size_t bpp = _mbc[_mbc.keys().front()].tx_dsp_xport->get_send_frame_size() - hdr_size;
const size_t spp = bpp/convert::get_bytes_per_item(args.otw_format);