From 81b33244ba914f672842527a9f7f228b6b830b82 Mon Sep 17 00:00:00 2001
From: c vw <dl1ycf@darc.de>
Date: Mon, 25 May 2020 16:23:35 +0200
Subject: [PATCH] Critical fix for SOAPY.

---
 portaudio.c | 9 +++------
 1 file changed, 3 insertions(+), 6 deletions(-)

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;
     }
-- 
2.45.2