summaryrefslogtreecommitdiffstats
path: root/host/lib/usrp/b200
diff options
context:
space:
mode:
authorJosh Blum <josh@joshknows.com>2013-07-23 20:45:40 -0700
committerJosh Blum <josh@joshknows.com>2013-07-23 20:45:40 -0700
commit200f4fa8b6b0976453d9bd65c84acc9f2000fb8c (patch)
tree0dd1c950b3976b16664e8a8aebcbdb6b86140ea8 /host/lib/usrp/b200
parent4a6e30a40fd48704432fc4410b06684cedea2ef6 (diff)
downloaduhd-200f4fa8b6b0976453d9bd65c84acc9f2000fb8c.tar.gz
uhd-200f4fa8b6b0976453d9bd65c84acc9f2000fb8c.tar.bz2
uhd-200f4fa8b6b0976453d9bd65c84acc9f2000fb8c.zip
b200: max spp limit at full rate stb
Diffstat (limited to 'host/lib/usrp/b200')
-rw-r--r--host/lib/usrp/b200/b200_io_impl.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/host/lib/usrp/b200/b200_io_impl.cpp b/host/lib/usrp/b200/b200_io_impl.cpp
index bb71fa5b6..5a588f902 100644
--- a/host/lib/usrp/b200/b200_io_impl.cpp
+++ b/host/lib/usrp/b200/b200_io_impl.cpp
@@ -237,7 +237,8 @@ rx_streamer::sptr b200_impl::get_rx_stream(const uhd::stream_args_t &args_)
;
const size_t bpp = _data_transport->get_recv_frame_size() - hdr_size;
const size_t bpi = convert::get_bytes_per_item(args.otw_format);
- const size_t spp = unsigned(args.args.cast<double>("spp", bpp/bpi));
+ size_t spp = unsigned(args.args.cast<double>("spp", bpp/bpi));
+ spp = std::min<size_t>(2041, spp); //magic maximum for framing at full rate
//make the new streamer given the samples per packet
if (not my_streamer) my_streamer = boost::make_shared<sph::recv_packet_streamer>(spp);