]> git.rkrishnan.org Git - pihpsdr.git/commitdiff
Regression: do not swap iq samples for SOAPY if "iqswap" is set,
authorc vw <dl1ycf@darc.de>
Mon, 15 Nov 2021 12:54:54 +0000 (13:54 +0100)
committerc vw <dl1ycf@darc.de>
Mon, 15 Nov 2021 12:54:54 +0000 (13:54 +0100)
first do more experiments

soapy_protocol.c

index 77977843512ea7a11a5eaefb567e59e6e66a0233..f3a285bf076433ddfcca1a4de29954703a23cff1 100644 (file)
@@ -408,16 +408,17 @@ void soapy_protocol_iq_samples(float isample,float qsample) {
   long long timeNs=0;
   long timeoutUs=100000L;
   if(isTransmitting()) {
-    if (iqswap) {
-      //
-      // Here I assume that iqswap also applies to the TX samples
-      //
-      output_buffer[(output_buffer_index*2)]=qsample;
-      output_buffer[(output_buffer_index*2)+1]=isample;
-    } else {
+    //
+    // Seemingly "iqswap" ONLY applies to the RX samples. So
+    // the check on "iqswap" should *not* be made here (???)
+    //
+    //if (iqswap) {
+    //  output_buffer[(output_buffer_index*2)]=qsample;
+    //  output_buffer[(output_buffer_index*2)+1]=isample;
+    //} else {
       output_buffer[(output_buffer_index*2)]=isample;
       output_buffer[(output_buffer_index*2)+1]=qsample;
-    }
+    //}
     output_buffer_index++;
     if(output_buffer_index>=max_tx_samples) {
       int elements=SoapySDRDevice_writeStream(soapy_device,tx_stream,tx_buffs,max_tx_samples,&flags,timeNs,timeoutUs);