summaryrefslogtreecommitdiffstats
path: root/audio
diff options
context:
space:
mode:
authorEric Laurent <elaurent@google.com>2011-10-05 11:52:08 -0700
committerEric Laurent <elaurent@google.com>2011-10-05 14:14:17 -0700
commit209789d6d5cc726599a9832d8597b16c771141a2 (patch)
tree38efa372cd320de7945942b018304eb90fe59123 /audio
parent0758aa1eb49ae1a4cf2e808f937af4583115a8ef (diff)
downloaddevice_samsung_tuna-209789d6d5cc726599a9832d8597b16c771141a2.zip
device_samsung_tuna-209789d6d5cc726599a9832d8597b16c771141a2.tar.gz
device_samsung_tuna-209789d6d5cc726599a9832d8597b16c771141a2.tar.bz2
audio HAL: fix echo reference.
The number of frames written to the echo reference buffer in out_write() was wrong. As we write frames at the audioflinger sampling rate we should write the number of frames passed to out_write(), not the number of frames passed to tynialsa after resamopling. Change-Id: Ia6a1c7e090c73e1566634a17b720e1e6049b22fe
Diffstat (limited to 'audio')
-rwxr-xr-xaudio/audio_hw.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/audio/audio_hw.c b/audio/audio_hw.c
index 744edbc..9f5bff9 100755
--- a/audio/audio_hw.c
+++ b/audio/audio_hw.c
@@ -1325,7 +1325,7 @@ static ssize_t out_write(struct audio_stream_out *stream, const void* buffer,
if (out->echo_reference != NULL) {
struct echo_reference_buffer b;
b.raw = (void *)buffer;
- b.frame_count = out_frames;
+ b.frame_count = in_frames;
get_playback_delay(out, out_frames, &b);
out->echo_reference->write(out->echo_reference, &b);