From c939e0998b24925e7990fd345b39c0884fc6ede7 Mon Sep 17 00:00:00 2001 From: c vw Date: Mon, 15 Nov 2021 13:54:54 +0100 Subject: [PATCH] Regression: do not swap iq samples for SOAPY if "iqswap" is set, first do more experiments --- soapy_protocol.c | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) diff --git a/soapy_protocol.c b/soapy_protocol.c index 7797784..f3a285b 100644 --- a/soapy_protocol.c +++ b/soapy_protocol.c @@ -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); -- 2.45.2