hal: fix concurrent call-recordings with normal recordings .
if one recording is ongoing then currently second open_input_stream
takes uc for compress record.However, if this input is opened for
call recording then it changes the usecase in-between for
call recording leading to a state where inputs are configured
at c_in but not reset because of this in-between change of usecase.
for virtual sources like uplink, downlink, which actually don't record
form hardware input source, don't assign a compress usecase.
Change-Id: I154446fe867af63f0f6e0cb0de6d4a567658050f
diff --git a/hal/audio_hw.c b/hal/audio_hw.c
index 8d768ce..d027138 100644
--- a/hal/audio_hw.c
+++ b/hal/audio_hw.c
@@ -9301,7 +9301,11 @@
goto err_open;
}
}
- if (audio_extn_is_concurrent_capture_enabled()) {
+
+ /* assign concurrent capture usecase if record has to caried out from
+ * actual hardware input source */
+ if (audio_extn_is_concurrent_capture_enabled() &&
+ !audio_is_virtual_input_source(in->source)) {
/* Acquire lock to avoid two concurrent use cases initialized to
same pcm record use case */