laforge
/
openbts-osmo
Archived
1
0
Fork 0

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.

753118031e

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 <ttsou@vt.edu>
master
Thomas Tsou 12 years ago
parent 7fc5b4e6cd
commit c42165cba5
  1. 7
      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