From: c vw <dl1ycf@darc.de>
Date: Mon, 25 May 2020 14:23:35 +0000 (+0200)
Subject: Critical fix for SOAPY.
X-Git-Url: https://git.rkrishnan.org/Site/copyable.html?a=commitdiff_plain;h=81b33244ba914f672842527a9f7f228b6b830b82;p=pihpsdr.git

Critical fix for SOAPY.
---

diff --git a/portaudio.c b/portaudio.c
index bdbde1d..6e6f4de 100644
--- a/portaudio.c
+++ b/portaudio.c
@@ -220,6 +220,9 @@ int pa_mic_cb(const void *inputBuffer, void *outputBuffer, unsigned long framesP
     switch(protocol) {
       case ORIGINAL_PROTOCOL:
       case NEW_PROTOCOL:
+#ifdef SOAPYSDR
+      case SOAPYSDR_PROTOCOL:
+#endif
 	//
 	// put sample into ring buffer
 	//
@@ -236,12 +239,6 @@ int pa_mic_cb(const void *inputBuffer, void *outputBuffer, unsigned long framesP
 	  }
 	}
 	break;
-#ifdef SOAPYSDR
-      case SOAPYSDR_PROTOCOL:
-	// Note that this call ends up deeply in the TX engine
-	soapy_protocol_process_local_mic(sample);
-	break;
-#endif
       default:
 	break;
     }