post_proc: Offload effects combined patchset
* Support effects in DSP for tunnel mode playback Add interface to support configuring equlaizer, bass boost, virtualizer and reverb effects in DSP for tunnel mode of playback. (cherry-picked from CAF commit 3eedc004) * post_proc: Enable effects param in DSP to start effect -During switch to tunnel playback, offload effects-flags remain disabled. This stops effects being applied on tunnel playback. -Send effects enable params to DSP to start effects during switch. (cherry-picked from CAF commit d02f2cd7) * post_proc: disable adsp reverb when preset is 'None' Audio HAL set corresponding preset id into adsp, but doesn't disabe reverb explicitly when 'None' preset is chosen. However, preset=0 means custom preset in adsp, so adsp won't stop reverb processing. (cherry-picked from CAF commit b27e25f0) * post_proc: send ENABLE_FLAG directly to offload effect driver Enable flag should be sent directly through offload effect driver to adsp whenever bundle receives EFFECT_CMD_ENABLE. Otherwise enablement will only take effect in adsp after subsequent parameters being set, and that's not expected. (cherry-picked from CAF commit d45948e2) * post_proc: reverb preset id is not mapped correctly Array index is not correct and causes uninitialized value being used when 'Plate' is chosen. Correct index to retrieve the right preset id. (cherry-picked from CAF commit ca2685b2) * post_proc: disable Bassboost and Virtualizer for certain devices WFD, Hdmi and usb audio are not intended to be applied with SA+ bassboost and virtualizer, so add into invalid device list. (cherry-picked from CAF ee2ff962) * post_proc: disable effect immediately when routed to invalid devices Offload effect is still perceived when invalid output device is connected. We should send disable command immediately once phone is routed to unexpected device and forbid effect enablement during temporary disabled state. (cherry-picked from CAF commit 95d74c22) * post_proc: Enable reverb in DSP to start effect During switch to tunnel playback, reverb enable command is not sent to DSP and causes reverb effect not applied continuously. Send reverb enable params to DSP to start effects during switch. (cherry-picked from CAF commit c37c260f) * post_proc: include audio_effects.h from kernel exported headers Currently, audio_effects.h header file is included with reference to the absolute path. Instead, reference it from the kernel exported headers. (cherry-picked from CAF commit 090a2aa3) * hal: Add support for audio effects in DSP for tunnel mode playback Add support to enable or disable audio post processing effects in DSP for tunnel mode playback. (cherry-picked from CAF commit 1d089167) Change-Id: I7ead6da4c216fd87e8ca1884811c4e0155053f49
Loading
Please register or sign in to comment