exynos: audiohal_comv1: Set device for camcorder quad mic
* Originally these were set after proxy created the stream, so proxy
will never have the chance to enable quad mic during the creation.
This set usage and route before proxy created the stream, so quad
mic can be correctly enabled.
Change-Id: I2f23a8c7f07871ba7a8115fb3a5f6c9d5d406566
Signed-off-by: Francescodario Cuzzocrea <bosconovic@gmail.com>
diff --git a/libaudio/audiohal_comv1/common_audiohal/audio_hw.c b/libaudio/audiohal_comv1/common_audiohal/audio_hw.c
index a0a4442..167ca8d 100644
--- a/libaudio/audiohal_comv1/common_audiohal/audio_hw.c
+++ b/libaudio/audiohal_comv1/common_audiohal/audio_hw.c
@@ -4224,6 +4224,7 @@
case AUDIO_SOURCE_CAMCORDER:
in->common.stream_usage = AUSAGE_CAMCORDER;
+ adev_set_route((void *)in, AUSAGE_CAPTURE, ROUTE, NON_FORCE_ROUTE);
break;
case AUDIO_SOURCE_VOICE_RECOGNITION: