From 3296cee7e533de55eb6bb20c3518fa53261004a3 Mon Sep 17 00:00:00 2001 From: Kevin Rocard Date: Mon, 26 Jun 2017 15:50:33 -0700 Subject: [PATCH] Configure audio effects libraries with relative path audio effects.conf legacy format had the libraries specified in absolute path. Nevertheless those libraries must be in specific folders. The .conf loader used to strip the prefix of the paths then try to load the libraries in those specific folders. With new xml format the user only has to specify the name of the library and the loader will load it from the known folders. Test: run xmllint against a config with absolute paths Bug: 37492580 Change-Id: I2863e04b3cdf0c6758d9f7be33796621fee527ed Signed-off-by: Kevin Rocard --- audio/effect/2.0/xml/audio_effects_conf_V2_0.xsd | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/audio/effect/2.0/xml/audio_effects_conf_V2_0.xsd b/audio/effect/2.0/xml/audio_effects_conf_V2_0.xsd index 52653032bc..9ae1621f12 100644 --- a/audio/effect/2.0/xml/audio_effects_conf_V2_0.xsd +++ b/audio/effect/2.0/xml/audio_effects_conf_V2_0.xsd @@ -56,17 +56,22 @@ + + + + + List of effect libraries to load. Each library element must have "name" and - "path" attributes. The latter is giving the full path of the library .so file. + "path" attributes. The latter is giving the path of the library .so file + relative to the standard effect folders: /(vendor|odm|system)/lib(64)?/soundfx/ - Example: - - + Example for a library in "/vendor/lib/soundfx/lib.so": + @@ -74,7 +79,7 @@ - +