From a7c27011b973ab3d973607a050890551e4063784 Mon Sep 17 00:00:00 2001 From: Ricardo Cerqueira Date: Mon, 12 Aug 2013 18:44:42 +0100 Subject: [PATCH 1/3] Add the CM DSP library to the device-specific effects table Change-Id: Iec434885dc30a6623556b9c0c132fef4a0201314 --- audio_effects.conf | 34 ++++++++++++++++++++++++++++------ 1 file changed, 28 insertions(+), 6 deletions(-) diff --git a/audio_effects.conf b/audio_effects.conf index 48801d90..7b88aee5 100644 --- a/audio_effects.conf +++ b/audio_effects.conf @@ -9,12 +9,18 @@ libraries { bundle { path /system/lib/soundfx/libbundlewrapper.so } + cm { + path /system/lib/soundfx/libcyanogen-dsp.so + } reverb { path /system/lib/soundfx/libreverbwrapper.so } visualizer { path /system/lib/soundfx/libvisualizer.so } + pre_processing { + path /system/lib/soundfx/libaudiopreprocessing.so + } qcom_pre_processing { path /system/lib/soundfx/libqcomvoiceprocessing.so } @@ -42,17 +48,21 @@ libraries { # } effects { + compression { + library cm + uuid f27317f4-c984-4de6-9a90-545759495bf2 + } bassboost { - library bundle - uuid 8631f300-72e2-11df-b57e-0002a5d5c51b + library cm + uuid 42b5cbf5-4dd8-4e79-a5fb-cceb2cb54e13 } virtualizer { - library bundle - uuid 1d4033c0-8557-11df-9f2d-0002a5d5c51b + library cm + uuid 7c6cc5f8-6f34-4449-a282-bed84f1a5b5a } equalizer { - library bundle - uuid ce772f20-847d-11df-bb17-0002a5d5c51b + library cm + uuid 58bc9000-0d7f-462e-90d2-035eddd8b434 } volume { library bundle @@ -82,6 +92,10 @@ effects { library downmix uuid 93f04452-e4fe-41cc-91f9-e475b6d1d69f } + agc { + library pre_processing + uuid aa8130e0-66fc-11e0-bad0-0002a5d5c51b + } aec { library qcom_pre_processing uuid 0f8d0d2a-59e5-45fe-b6e4-248c8a799109 @@ -90,6 +104,10 @@ effects { library loudness_enhancer uuid fa415329-2034-4bea-b5dc-5b381c8d1e2c } + ns { + library pre_processing + uuid c06c8400-8e06-11e0-9cb6-0002a5d5c51b + } } # Audio preprocessor configurations. # The pre processor configuration consists in a list of elements each describing @@ -126,3 +144,7 @@ effects { # } # ... # } + +# +# TODO: add default audio pre processor configurations after debug and tuning phase +# From 4a0b3e53620f3a2559a82cac9713e0b88389188d Mon Sep 17 00:00:00 2001 From: Pawit Pornkitprasan Date: Sat, 24 May 2014 10:54:32 +0700 Subject: [PATCH 2/3] mako: enable echo cancellation for voice communication This greatly improves the quality of VoIP calls, tested on the app "LINE". Without this, the other party will be able to hear echo of their own voice. Reference: http://source.android.com/devices/audio_implement.html#preprocessing Change-Id: Id0ccb732778ecc8d4c9e140249ec230654f351cc --- audio_effects.conf | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/audio_effects.conf b/audio_effects.conf index 7b88aee5..736e164d 100644 --- a/audio_effects.conf +++ b/audio_effects.conf @@ -148,3 +148,9 @@ effects { # # TODO: add default audio pre processor configurations after debug and tuning phase # + +pre_processing { + voice_communication { + aec {} + } +} From 80f8207c7e6524ce2c3e387d45512cd421e4bb3b Mon Sep 17 00:00:00 2001 From: Ricardo Cerqueira Date: Mon, 7 Jul 2014 23:59:22 +0100 Subject: [PATCH 3/3] dedupe soft video codecs Remove superfluous ffmpeg decoders for codecs that can be handled by OMX.google --- media_codecs.xml | 3 --- 1 file changed, 3 deletions(-) diff --git a/media_codecs.xml b/media_codecs.xml index 5a15f3b3..691f39e8 100644 --- a/media_codecs.xml +++ b/media_codecs.xml @@ -78,11 +78,8 @@ - - -