Commit b6382ffc authored by Danny Wood's avatar Danny Wood Committed by Stricted

audio: Fix bitmask when rear mic is selected

which caused selection of wrong input path

Change-Id: Ib5ad7c2b4bdd108e1a43864be3a5421b7fd6d5c1
parent bd92d142
......@@ -763,7 +763,7 @@ static snd_device_t get_input_snd_device(struct audio_device *adev, audio_device
}
} else if (source == AUDIO_SOURCE_VOICE_COMMUNICATION || source == AUDIO_SOURCE_MIC) {
if (out_device & AUDIO_DEVICE_OUT_SPEAKER)
in_device = AUDIO_DEVICE_IN_BACK_MIC;
in_device = AUDIO_DEVICE_IN_BACK_MIC & ~AUDIO_DEVICE_BIT_IN;
if (active_input) {
if (active_input->enable_aec) {
if (in_device & AUDIO_DEVICE_IN_BACK_MIC) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment