audio: added support for dual mic capture
Added support for simultaneous capture of front and back mic.
Added device definitions for dual mic config for voice recognition use
case: no pre processing enabled.
stream->channels() reports actual channel mask instead of recontructing
it from channel count.
TODO: check if ACDB settings copied from single mic voice recognition
are correct.
Change-Id: I41282d0af5deb256ef68ec17ee34f5aae7807a6f
diff --git a/alsa_sound/AudioHardwareALSA.h b/alsa_sound/AudioHardwareALSA.h
index 932b18f..4ef878b 100644
--- a/alsa_sound/AudioHardwareALSA.h
+++ b/alsa_sound/AudioHardwareALSA.h
@@ -170,6 +170,7 @@
struct pcm * handle;
snd_pcm_format_t format;
uint32_t channels;
+ audio_channel_mask_t channelMask;
uint32_t sampleRate;
unsigned int latency; // Delay in usec
unsigned int bufferSize; // Size of sample buffer