The list of possible paths for the audio configuration
files is now retrieved using audio_get_configuration_paths()
function. All duplicated lists of known configuration
directories have been removed.
Bug: 153680356
Test: test audio on built image working
atest VtsHalAudioV6_0TargetTest VtsHalAudioPolicyV6_0TargetTest
Change-Id: I8c369442f5ca7baa17df95e6a001396fc9de5681
Merged-In: I8c369442f5ca7baa17df95e6a001396fc9de5681
Retained the code as per the macros defined and removed all
conditional compilation checks for BUILD_FLOAT, HIGHER_FS,
NATIVE_FLOAT_BUFFER, LVM_PCM, MUL32x32INTO32,
MUL32x16INTO32 and ADD2_SAT_32x32.
Removed multiple blank lines in the code and replaced
with one blank line.
Test: android.media.cts.AudioEffectTest
Test: android.media.cts.AudioPreProcessingTest
Test: android.media.cts.BassBoostTest
Test: android.media.cts.EnvReverbTest
Test: android.media.cts.EqualizerTest
Test: android.media.cts.LoudnessEnhancerTest
Test: android.media.cts.PresetReverbTest
Test: android.media.cts.VirtualizerTest
Test: android.media.cts.VisualizerTest
Test: Tested using standalone application
Bug: 129491957
Change-Id: I392f890811e4277ee13cbfddae07da5b122ca645
Void cast related comments for LoadConst_Float function are
not relevant. Removed the same.
Test: Tested using standalone application
Change-Id: Iace5add23c27f8008a3abc9807f141d4985bd1c5
Manual merge by recursive strategy with no conflicts (automerger failed).
Test: build and sanity
Bug: None
Change-Id: I9e2d9466d26fde80a95f0c7a2ac336c1a23c3bc5
Removed extern "C" declaration in header files. Since all
files at lvm/lib are .cpp and all function names are unique,
extern "C" is no longer required.
Note: Build errors due to renaming of files to .cpp
are taken care in this patch.
Test: android.media.cts.AudioEffectTest
Test: android.media.cts.AudioPreProcessingTest
Test: android.media.cts.BassBoostTest
Test: android.media.cts.EnvReverbTest
Test: android.media.cts.EqualizerTest
Test: android.media.cts.LoudnessEnhancerTest
Test: android.media.cts.PresetReverbTest
Test: android.media.cts.VirtualizerTest
Test: android.media.cts.VisualizerTest
Test: Play Music offload / non-offload
Test: Tested using standalone application
Bug: 129491957
Change-Id: I7033146c21681372a212d507f959ab02568b7538
This CL adds fm_tuner and echo_reference in the list of allowed
input sources for default effect(s) instantiation.
XSD aligned accordingly.
Test: build
Bug:
Signed-off-by: Francois Gaffie <francois.gaffie@renault.com>
Merged-In: I0da109d637dac646ee43e2dd602ddfb0b21fa31d
Change-Id: I0da109d637dac646ee43e2dd602ddfb0b21fa31d
This CL adds fm_tuner and echo_reference in the list of allowed
input sources for default effect(s) instantiation.
XSD aligned accordingly.
Test: build
Bug: 136294538
Signed-off-by: Francois Gaffie <francois.gaffie@renault.com>
Change-Id: I0da109d637dac646ee43e2dd602ddfb0b21fa31d
Add the possibility to specify a target audio device when
creating an audio effect by passing its audio port handle
to createEffect API.
Bug: 136294538
Test: make
Change-Id: I32a6400278496653b4204175cd8a16d81f9724a0
Merged-In: I32a6400278496653b4204175cd8a16d81f9724a0
New stream type: AUDIO_STREAM_ASSISTANT
This is intended to be used by a virtual assistant like
Google Assistant, Bixby, etc.
The audio stream has own volume alias and the volume
does not change by volume changes of other streams.
Bug: 123745215
Test: make
Change-Id: I17ec0480cad4c3507a97454ccb832255adda9897
Merged-In: I17ec0480cad4c3507a97454ccb832255adda9897
Signed-off-by: Baekgyeong Kim <baek.kim@samsung.com>
New stream type: AUDIO_STREAM_ASSISTANT
This is intended to be used by a virtual assistant like
Google Assistant, Bixby, etc.
The audio stream has own volume alias and the volume
does not change by volume changes of other streams.
Bug: 123745215
Test: make
Change-Id: I17ec0480cad4c3507a97454ccb832255adda9897
Signed-off-by: Baekgyeong Kim <baek.kim@samsung.com>
Add the possibility to specify a target audio device when
creating an audio effect by passing its audio port handle
to createEffect API.
Bug: 136294538
Test: make
Change-Id: I32a6400278496653b4204175cd8a16d81f9724a0
LVCS requires separate input and output buffers to process
stereo data out of multi channel audio.
In case of multi channel use case, actual number of inplace
scratch buffers required for LVCS module is 8. So, correct
the value of LVCS_SCRATCHBUFFERS to 8.
Test: Solotester
Bug: 132949357
Bug: 137835997
Change-Id: I27ad3d1a8e3b0f0ad32aaa538bf25850fb43ebe8
When using VNDK, Vendor modules should use shared version.
Bug: 137178339
Test: m && boot blueline
Change-Id: Iaf6029ca4ded12b1b7a04a59b26fda33dcb3d071
Enabling and disabling effects when offloaded may not drain
software effects properly as the software effect process
is not called. Make software effect draining more robust.
Test: Play Music with offload effect enable and disable per bug.
Bug: 130265457
Change-Id: Ibeeaca57359d6d82ddaa41d12caa9c03df225487
Split the analysis/resynthesis window into using sqrt() of Hanning.
Removed unnecessary zero padding of initial circular buffer input.
Bug: 133453863
Test: manual and listening tests
Change-Id: I05a7204d055a8de93bb9183c32709d3464877065
Split the analysis/resynthesis window into using sqrt() of Hanning.
Removed unnecessary zero padding of initial circular buffer input.
Test: manual and listening tests
Change-Id: I05a7204d055a8de93bb9183c32709d3464877065
Use stereo to match internal computations in LVM_Process.
Test: dedicated POC see bug below.
Bug: 131065273
Change-Id: Icdc15d0da2772979f82a4ad08d360c81b965f705
Copy_Float function present after the LVDBE_Process function in
LVM_Process.c was not taking into consideration NumChannels.
Corrected this.
Test: discovered by code inspection, CTS, Solotester
Bug: 130781096
Change-Id: Ib0bccd36f3986463b602fa20fc09ab0741f7e39e
Add pre processing effect management for concurrent capture scenarii.
When several clients on the same input stream have enabled audio effects,
only the effects attached to the top priotity client are active.
Other effects are suspended.
Add AudioFlinger API to suspend/restore audio effects build on top
of exisiting internal effect suspend mechanism.
RecordThread now supports more than one effect chain.
AOSP pre processing implementation supports more than one effect session
per input.
Refactor AudioPolicyManager::closeAllInputs() to call closeInput() on
all inputs instead of partially duplicated code.
Bug: 128419018
Test: make
Change-Id: I685286da4c2905a8894a4354679f9787b1400621
Crash was because of uninitialized (invalid) number of channels.
Initialized channels to default value and ensured
that during set config channel and channel mask value
are updated per the input config.
Test: BT playback with Spotify, GPM (Sailfish)
Bug: 129804987
Bug: 130013184
Change-Id: I71069b13a90e02bfc3b5cb9bf69c4c65c10ae36f
'preset' is allowed to be PRESET_CUSTOM, which is -1, when we
use it as an array index in an ALOGVV statement. We change this
logic to just use 'name' directly. While this risks a
truncation of the string, it avoids out-of-bounds and is
probably still sufficient for debugging.
Bug: 77720605
Test: TreeHugger
Change-Id: Id03829e4ba73764ca23ed8238632ff02946cdebc
Instead of rolling our own powerof2 function, use the version provided
by libc. In particular, this version is not ubsan safe, whereas the libc
version is. See https://android-review.googlesource.com/c/platform/bionic/+/932279
Test: compiles and boots
Change-Id: I0dd39254357826c14c3185a5e6332faa90975f01
Added code to update SourceFormat field properly for MC input in CS and EQ
modules.
Test: lvmtest
Bug: 127583584
Change-Id: If5aa175e2557f64f04cb1f2de5a5822ecb553f2e