From c42165cba5501d77f7b006d3eecfd6643d9c88b9 Mon Sep 17 00:00:00 2001 From: Thomas Tsou Date: Wed, 1 Jun 2011 14:55:15 -0700 Subject: [PATCH] usrp: remove unnecessary I/Q swap for non-uhd This bug slipped in because the following patch was made before tuning adjustment changes that negated the need for the I/Q swap. 753118031e633cd4957d15369169f5b6fe8aec39 At this point, we assume that there are no big-endian users of OpenBTS with the USRP1. If there are any SPARC, PowerPC, or MIPS users, hopefully they will be resourceful enough to search the commit log and add the necessary byte swaps. Signed-off-by: Thomas Tsou --- public-trunk/Transceiver/USRPDevice.cpp | 7 ------- 1 file changed, 7 deletions(-) diff --git a/public-trunk/Transceiver/USRPDevice.cpp b/public-trunk/Transceiver/USRPDevice.cpp index 7ef4a97..5ecfbf6 100644 --- a/public-trunk/Transceiver/USRPDevice.cpp +++ b/public-trunk/Transceiver/USRPDevice.cpp @@ -386,13 +386,6 @@ int USRPDevice::readSamples(short *buf, int len, bool *overrun, timeStart = timestamp + len; if (readBuf!=NULL) delete[] readBuf; - // do IQ swap here - for (int i = 0; i < len; i++) { - short tmp = usrp_to_host_short(buf[2*i]); - buf[2*i] = usrp_to_host_short(buf[2*i+1]); - buf[2*i+1] = tmp; - } - return len; #else