diff options
author | Eric Laurent <elaurent@google.com> | 2011-10-05 11:52:08 -0700 |
---|---|---|
committer | Eric Laurent <elaurent@google.com> | 2011-10-05 14:14:17 -0700 |
commit | e59f3822d8e66253d0753310c70743880e375ec3 (patch) | |
tree | 152de97e28c3fe9145ec20b7644eecb2cdbc2860 /audio/audio_hw.c | |
parent | 5c290dade2a93873bffb4cb2f0c5972d7966ddf0 (diff) | |
download | device_samsung_tuna-e59f3822d8e66253d0753310c70743880e375ec3.zip device_samsung_tuna-e59f3822d8e66253d0753310c70743880e375ec3.tar.gz device_samsung_tuna-e59f3822d8e66253d0753310c70743880e375ec3.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/audio_hw.c')
-rwxr-xr-x | audio/audio_hw.c | 2 |
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); |