Dynamically read the sound card number and device id
of the pcm device used for visualizer from procfs.
CRs-Fixed: 2430458
Change-Id: Ie757b7810eeeb8cebdbee557be1d930b6cab3f03
WFD and offload visualizer effect both use same
proxy capture device resulting in pcm_open failure
when offload playback with visualizer effect is
enabled on WFD device.This is handled by APM to
fallback to deep-buffer so that software visualizer
effect is enabled.
This change ensures to avoid pcm_open until APM invalidates
offload track, that is, changing the visualizer effect
state transition.
CRs-Fixed: 2310784
Change-Id: I13ccf1051d10b67898a35d7a8a855c9b1f6c1e58
Enable GCOV if config is set to true. Also
add gcov_flush in source files to get enhanced
code coverage.
Change-Id: I39776cc6d6f16cd23da05b66669eea22fc4cba81
Signed-off-by: Vatsal Bucha <vbucha@codeaurora.org>
Even if data flow might be in various channels during pcm offload
use case, pcm read from proxy is always stereo. There's no need to
check against stereo.
Change-Id: I60d2380bb7a20024fbc9e50ccd77ae69bafc35ca
CRs-Fixed: 2077166
Provide default initialization for return values in
visualizer_hal_start_output and visualizer_hal_stop_output
as in few conditions these are getting returned without any
explicit assignment.
Change-Id: Iac5b5ffb7c71dfeabd29bff9978dfc62f69ec7db
Rename all instances of msmcobalt to msm8998. Rename
the config directory, defines, functions, and look for
the renamed target and soundcard.
Change-Id: Idbc4c5a425c837342069c2db17b6ec984021bf60
Offload visualizer had a hardcoded PCM device. Since the device
number changed, update the hash define
Change-Id: Ice44a5c8c3dbee6eb04188b661e2b7ea4d056937
CRs-Fixed: 1057902
When compress offload playback is active, if the Visualizer effect
is enabled, decoded PCM audio is routed to AFE Proxy port and
read from it by the Visualizer wrapper library. When audio is routed
to proxy port, current output device specific calibration is also
being applied which is not desired.
Avoid this by sending default audio calibration i.e. no post-processing
to be applied the data.
Change-Id: Id576c4ed7bbb482683074e3e33aa5760b7597d37
Add Peak and RMS measurement capabilities in the "offloaded" version
of the visualizer effect.
Bug 8413913
Change-Id: I09a88f4cc791db6c68f0769dc23ced0d3aac955c
Add library for visualizer effect used when
audio decompression is offloaded to QCOM audio DSP.
The implementation reads PCM back from the proxy port
in the audio DSP.
The audio HAL dynamically loads the effect library if present
and indicates offloaded output activity.
The PCM capture is only active when an offloaded output
is active and at least one effect is enabled on this output.
Bug: 8174410.
Change-Id: Ic78de932f9116e246494f9171c1cc7c3e35a0ea1