Merge "hal: Fix Rx/Tx mute during HFP call" into audio-userspace.lnx.2.2-dev
diff --git a/hal/audio_hw.c b/hal/audio_hw.c
index dc933d3..9d62533 100644
--- a/hal/audio_hw.c
+++ b/hal/audio_hw.c
@@ -4314,6 +4314,9 @@
     if (adev->voice_tx_output == out)
         adev->voice_tx_output = NULL;
 
+    if (adev->primary_output == out)
+        adev->primary_output = NULL;
+
     pthread_cond_destroy(&out->cond);
     pthread_mutex_destroy(&out->lock);
     free(stream);