From 209789d6d5cc726599a9832d8597b16c771141a2 Mon Sep 17 00:00:00 2001 From: Eric Laurent Date: Wed, 5 Oct 2011 11:52:08 -0700 Subject: 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 --- audio/audio_hw.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'audio') 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); -- cgit v1.1