From 6f9a5b8435dfaf0eff14a9bd7be467f657501a5b Mon Sep 17 00:00:00 2001 From: Josh Blum Date: Mon, 19 Sep 2011 20:26:40 -0700 Subject: usrp1: disable pad to one for usrp1 (not needed) This was messing up the pad to 512 bytes logic for empty flushes. --- host/lib/transport/super_send_packet_handler.hpp | 3 +++ host/lib/usrp/usrp1/io_impl.cpp | 1 + 2 files changed, 4 insertions(+) (limited to 'host/lib') diff --git a/host/lib/transport/super_send_packet_handler.hpp b/host/lib/transport/super_send_packet_handler.hpp index e377a1e74..a99adcb5f 100644 --- a/host/lib/transport/super_send_packet_handler.hpp +++ b/host/lib/transport/super_send_packet_handler.hpp @@ -22,6 +22,7 @@ #include #include #include +#include #include #include #include @@ -173,9 +174,11 @@ public: //////////////////////////////////////////////////////////////// //TODO remove this code when sample counts of zero are supported by hardware + #ifndef SSPH_DONT_PAD_TO_ONE if (nsamps_per_buff == 0) return send_one_packet( _zero_buffs, 1, if_packet_info, io_type, timeout ) & 0x0; + #endif return send_one_packet( buffs, diff --git a/host/lib/usrp/usrp1/io_impl.cpp b/host/lib/usrp/usrp1/io_impl.cpp index 28399ce57..de325ea5d 100644 --- a/host/lib/usrp/usrp1/io_impl.cpp +++ b/host/lib/usrp/usrp1/io_impl.cpp @@ -18,6 +18,7 @@ #include "validate_subdev_spec.hpp" #define SRPH_DONT_CHECK_SEQUENCE #include "../../transport/super_recv_packet_handler.hpp" +#define SSPH_DONT_PAD_TO_ONE #include "../../transport/super_send_packet_handler.hpp" #include "usrp1_calc_mux.hpp" #include "fpga_regs_standard.h" -- cgit v1.2.3