• Home
  • History
  • Annotate
  • only in /system/media/audio_utils/
History log of /system/media/audio_utils/
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
7a0bacaf9634d6bf0abbea9608fb15e94a675358 19-Jul-2012 Glenn Kasten <gkasten@google.com> Add mono <-> stereo upmix and downmix routines

Change-Id: I3d960fb27fd3440f903333903c0dbf2ab59d3b56
nclude/audio_utils/primitives.h
rimitives.c
f06cdb511b2d093fed687fdff4153f7b6e088b62 30-Mar-2012 Eric Laurent <elaurent@google.com> Echo reference tuning and bug fixes

- Add some smoothing in the method used to detect and compensate for echo path
delay deviation: update the reference buffer only if a deviation in the same
direction is observed for more than N consecutive reads.
Also increase the threshold controlling the reference buffer update to avoid
excessive adjustments.

- Fix problem in get_next_buffer() when echo_reference_write() is called with
variable buffer sizes which happens when the echo reference is used after a
resampler in the audio HAL.

- Use the same resampler quality level in echo reference and audio HAL to help
the AEC by reducing the delay variation and filtering differences between the
capture and echo path.

- Take resampler delay into account when calculating echo reference delay.

Change-Id: I2f425154efddd9a28f1d035fde70d55104043606
cho_reference.c
67d46429d51999359504f00c9701a9348a361f7a 14-Mar-2012 Glenn Kasten <gkasten@google.com> Prepare to move system/media

Change-Id: Iac6dcfb72753e53e9a42b5feeaa2d6523f2395a4
ndroid.mk
c164cb8a9ee435c00d1a7daeaf5e6836d772eb40 17-Feb-2012 Eric Laurent <elaurent@google.com> echo reference: fix buffer overflow

commit 33e8f78b introduced a regression causing the input buffer
size to be underestimated when downsampling and doing stereo to mono
conversion.

Also a test in create_echo_reference() was not removed and prevented
write sampling rates lower than read sampling rates.

Change-Id: I2ce2e32748eb9d00f4d5b32e5db5149f177c8804
cho_reference.c
bea20acc937e3be459416e07045d69b011e21ce8 14-Feb-2012 Glenn Kasten <gkasten@google.com> Fix memory leak

Change-Id: I6937d23aa5c8f1f85368f8a6909272cd9b0994dc
esampler.c
33e8f78bb282cbb7b1c55ce0c9d412458989bc9e 06-Feb-2012 Eric Laurent <elaurent@google.com> audio utils: modify echo reference resampler

Modify echo reference resampler to accept upsampling.
This allows higher sampling rates in the capture path than
in the playback path.

Change-Id: Id7b5a11a53e8e09511dcb060bff8355bca3c1420
cho_reference.c
ddb2e930bef3d1be1627c613fb8f3df848166ac7 16-Jan-2012 Glenn Kasten <gkasten@google.com> Move memcpy_to_i16_from_u8 from libmedia

Change-Id: I178b953767f11abcca721efcd7f255d0cb2f3bd0
nclude/audio_utils/primitives.h
rimitives.c
a269f35b6247cb69e8815b84440bf1bfc938b87b 16-Jan-2012 Glenn Kasten <gkasten@google.com> Move fixed FFT from frameworks/base/media/libmedia

Change-Id: I55a3706c329de471ac867f196f777c71c1306bcb
ndroid.mk
ixedfft.cpp
nclude/audio_utils/fixedfft.h
d0e472977acbfd5c8d56d506f40039f451f84f8f 06-Jan-2012 Steve Block <steveblock@google.com> Rename (IF_)LOGW(_IF) to (IF_)ALOGW(_IF) DO NOT MERGE

See https://android-git.corp.google.com/g/157065

Bug: 5449033
Change-Id: I270cbf7b920d5f2fbb5f345f3c88426697c4391d
cho_reference.c
esampler.c
632e0c016c9a518b36f09988b740b3bc1199c3e4 16-Dec-2011 Glenn Kasten <gkasten@google.com> Extract out audio DSP primitives from AudioFlinger

Change-Id: If7e8d934f773981e1f63c16aa57ada37dc8d3cd6
ndroid.mk
nclude/audio_utils/primitives.h
rimitives.c
cdde1970f4f80034b9f2b23bf43a0b28372867a1 28-Nov-2011 Eric Laurent <elaurent@google.com> audio utils: fix resampler frame count calculation

The calculation of the number of input frames needed by
resampler_resample_from_provider() for a given number of output frames
is broken. The consequence is that we request too many frames when upsampling
causing unecessary buffering and delay and too few frames when downsampling causing
more calls to provider->get_next_buffer() than necessary.

Change-Id: I74b6a1708f347f45ca3c12312bf1b47320823742
esampler.c
473d4a5c5c66fd8a2e99791d61fa16076558ab54 26-Oct-2011 Steve Block <steveblock@google.com> Rename LOGV(_IF) to ALOGV(_IF) DO NOT MERGE

See https://android-git.corp.google.com/g/#/c/143865

Bug: 5449033
Change-Id: I4c0e3dc9da0a0cdf9aef8be4fae7b24da876dc17
cho_reference.c
esampler.c
c9d5dff9789312449c936913a577fa799565bf1f 01-Sep-2011 Eric Laurent <elaurent@google.com> clean up in echo reference code

Change-Id: Ie06ed382eee2f1d4d1289d9a49d8a93dcf103e4e
cho_reference.c
b3184d71bc6cee9fcbb36343e379143329be00ce 18-Aug-2011 Eric Laurent <elaurent@google.com> Converted libaudioutils implementation to C.

Converted libaudioutils implementation and interfaces from C++ to C
and removed dependencies from frameworks/base classes so that it can
be used by any audio HAL implementation.

Change-Id: I3f7ce541be8495d41864661451540971b067359b
ndroid.mk
choReference.cpp
eSampler.cpp
cho_reference.c
nclude/audio_utils/EchoReference.h
nclude/audio_utils/ReSampler.h
nclude/audio_utils/echo_reference.h
nclude/audio_utils/resampler.h
esampler.c
c369e05b3d3e48b54f675434f5ee92efe016a6bc 17-Aug-2011 Eric Laurent <elaurent@google.com> Created library for common audio HAL functions.

libaudioutils groups functions that can be used by any audio HAL
implementation.
Current functions are:
- a resampler based on speex resampler.
- an echo reference module providing resampling, buffering and
time stamp management of PCM data between an output stream and an
input stream for use as echo reference by an AEC module.

This commit is the first step consisting of moving code previously in
crespo audio HAL. This C++ code will the be converted to C and stripped from
dependencies to frameworks/base classes for use by all audio HALs.

Change-Id: Ifa51e0c6358c23122a379d7f5d9ce13a65ff0cf0
ndroid.mk
choReference.cpp
eSampler.cpp
nclude/audio_utils/EchoReference.h
nclude/audio_utils/ReSampler.h