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:
parent
7fc5b4e6cd
commit
c42165cba5
|
@ -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
|
||||
|
|
Reference in New Issue