From 40c637bfb723be607800f67a3115aa1eee31f9d7 Mon Sep 17 00:00:00 2001 From: Josh Blum Date: Mon, 5 Dec 2011 13:04:23 -0800 Subject: uhd: work with stream clearing dont clear when using the compat device API tx clear also resets expected seqnum tx clear on usrp2 resets flow control monitor --- host/include/uhd/device_deprecated.ipp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'host/include') diff --git a/host/include/uhd/device_deprecated.ipp b/host/include/uhd/device_deprecated.ipp index 698a8a508..0ee1cd706 100644 --- a/host/include/uhd/device_deprecated.ipp +++ b/host/include/uhd/device_deprecated.ipp @@ -85,6 +85,7 @@ size_t send( stream_args_t args; args.cpu_format = (_send_tid == io_type_t::COMPLEX_FLOAT32)? "fc32" : "sc16"; args.otw_format = "sc16"; + args.args["noclear"] = "1"; for (size_t ch = 0; ch < buffs.size(); ch++) args.channels.push_back(ch); //linear mapping _tx_streamer = get_tx_stream(args); @@ -140,6 +141,7 @@ size_t recv( stream_args_t args; args.cpu_format = (_recv_tid == io_type_t::COMPLEX_FLOAT32)? "fc32" : "sc16"; args.otw_format = "sc16"; + args.args["noclear"] = "1"; for (size_t ch = 0; ch < buffs.size(); ch++) args.channels.push_back(ch); //linear mapping _rx_streamer = get_rx_stream(args); @@ -159,6 +161,7 @@ size_t get_max_send_samps_per_packet(void){ stream_args_t args; args.cpu_format = "fc32"; args.otw_format = "sc16"; + args.args["noclear"] = "1"; _tx_streamer = get_tx_stream(args); _send_tid = io_type_t::COMPLEX_FLOAT32; } @@ -174,6 +177,7 @@ size_t get_max_recv_samps_per_packet(void){ stream_args_t args; args.cpu_format = "fc32"; args.otw_format = "sc16"; + args.args["noclear"] = "1"; _rx_streamer = get_rx_stream(args); _recv_tid = io_type_t::COMPLEX_FLOAT32; } -- cgit v1.2.3