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>
This commit is contained in:
Thomas Tsou 2011-06-01 14:55:15 -07:00
parent 7fc5b4e6cd
commit c42165cba5
1 changed files with 0 additions and 7 deletions

View File

@ -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