summaryrefslogtreecommitdiffstats
path: root/audio
diff options
context:
space:
mode:
authorEric Laurent <elaurent@google.com>2012-08-30 11:20:32 -0700
committerEric Laurent <elaurent@google.com>2012-08-30 11:20:32 -0700
commitf16cf6b30f5e670b7b40482db17b5e91f9d77229 (patch)
tree632fd3a4cfd540af9b0224a64e40203b7d58c7ab /audio
parent9d7c4beb988d61b7b0ccd1996cafc6e0fdcb44cd (diff)
downloaddevice_samsung_tuna-f16cf6b30f5e670b7b40482db17b5e91f9d77229.zip
device_samsung_tuna-f16cf6b30f5e670b7b40482db17b5e91f9d77229.tar.gz
device_samsung_tuna-f16cf6b30f5e670b7b40482db17b5e91f9d77229.tar.bz2
audio: fix echo reference channels configuration
When an auxiliary mic channel is used, the echo reference should use only the main channels to be consistent with the way the reverse effect processing is configured. Change-Id: I28ee1e2a9852fdd0e904fb01bedf90f3372683c9
Diffstat (limited to 'audio')
-rw-r--r--audio/audio_hw.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/audio/audio_hw.c b/audio/audio_hw.c
index f2fda76..2caba05 100644
--- a/audio/audio_hw.c
+++ b/audio/audio_hw.c
@@ -2202,7 +2202,7 @@ static int start_input_stream(struct tuna_stream_in *in)
if (in->need_echo_reference && in->echo_reference == NULL)
in->echo_reference = get_echo_reference(adev,
AUDIO_FORMAT_PCM_16_BIT,
- in->config.channels,
+ popcount(in->main_channels),
in->requested_rate);
/* this assumes routing is done previously */