Commit Graph

25 Commits

Author SHA1 Message Date
qctecmdr 33ea74e33c Merge "hal: visualizer: replace string api" 2019-05-14 06:56:19 -07:00
qctecmdr 2d88d216fb Merge "visualizer:Handle pcmopen error for WFD+visualizer" 2019-05-10 20:10:56 -07:00
Aalique Grahame 09bb37c4cf hal: visualizer: replace string api
Use a different api for string parsing

CRs-Fixed: 2451049
Change-Id: I1496a6f2dd9dcddacbe4e68a6a8272d657968cee
2019-05-10 14:19:43 -07:00
Aalique Grahame 49e6b6888c hal: visualizer: dynamically read pcm device
Dynamically read the sound card number and device id
of the pcm  device used for visualizer from procfs.

CRs-Fixed: 2430458
Change-Id: Ie757b7810eeeb8cebdbee557be1d930b6cab3f03
2019-04-09 17:59:09 -07:00
Sujin Panicker ee5c40c6bc visualizer:Handle pcmopen error for WFD+visualizer
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
2019-03-29 13:06:14 +05:30
Aalique Grahame 6de37c0554 audio: revert invalid markings
Revert invalid markings added to AOSP files.

CRs-Fixed: 2380934
Change-Id: I5e729616dccb5e04e870e26462f822e16433879d
2019-02-07 11:51:59 -08:00
Aalique Grahame 22e4910d3d audio: unify hal
Unify audio hal components

CRs-Fixed: 2380934
Change-Id: Iacafdc44d935de5f343240421a1572a0a3241bd0
2019-01-25 15:15:46 +05:30
Vatsal Bucha c09ae066d5 audio: Add flags to makefiles
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>
2018-11-14 13:25:50 +05:30
Vinay Verma addfa4a100 Fix VNDK Compilation Errors
VNDK restrictions doesn't includes standard headers by
default, add them explicitly.

Change-Id: Icafac6f07fcdf58fccaabde8d472509090fb3e6f
2018-05-08 05:17:02 -07:00
Weiyin Jiang fb61e203b5 visualizer: remove stereo channel check
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
2017-07-28 10:52:47 -07:00
Weiyin Jiang 813b888e5c visualizer: correct copyright years
Correct copyright years.

Change-Id: I1c40d643599c842d7fd94b33ad2cf93465a794b1
CRs-Fixed: 2032490
2017-05-11 04:20:29 -07:00
Linux Build Service Account 703444d058 Merge "visualizer: fix warnings due to uninitialized return values" 2017-05-05 11:24:59 -07:00
Dhananjay Kumar 5f90a5aca9 visualizer: fix warnings due to uninitialized return values
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
2017-05-05 02:44:10 -07:00
Weiyin Jiang 2d95548ccb visualizer: update PCM device id for sdm660 target
Update PCM device id for sdm660 target.

Change-Id: Icc27d5319ac3273c34f1c32d8fcbbd4b57255fda
CRs-Fixed: 2032490
2017-05-05 02:33:09 -07:00
rago 95b51a58de Fix potential NULL dereference in Visualizer effect
Bug: 30229821

Test: fixing CL. Existing unit tests still pass.

Change-Id: I73d3fe413dd7590470c5b3b19569d6a7969c4dd8
(cherry picked from commit 0c39abc483ba980f7c417e57a0aa39139136c97a)
2017-01-24 00:58:57 -08:00
Linux Build Service Account a154c895d3 Merge audio-userspace.lnx.2.1-rel on remote branch
Change-Id: I181b4424624c7ddbe084efcfd06b3170340a1103
2016-11-23 01:09:17 -08:00
Ben Romberger 22d4123dd4 hal: Rename all instances of msmcobalt to msm8998
Rename all instances of msmcobalt to msm8998. Rename
the config directory, defines, functions, and look for
the renamed target and soundcard.

Change-Id: Idbc4c5a425c837342069c2db17b6ec984021bf60
2016-11-21 19:51:58 -08:00
rago d8c80c2fb0 Fix potential overflow in Visualizer effect
Bug: 30229821
Change-Id: Iea1c4a21735e893aeded95b980044ec0861a7ea8
(cherry picked from commit 2fa52194ef64843c2908c69527384c6c2fcdbafa)
(cherry picked from commit 57ac66340ad488a17fc285b6fc2635cb7375d72b)
(cherry picked from commit 9cb9810ecb63c8ff55ecf4bc77431dc5b0688b5f)
2016-11-08 10:40:28 -08:00
Garmond Leung 6406e9d287 visualizer: Update PCM device id for visualizer
Offload visualizer had a hardcoded PCM device. Since the device
number changed, update the hash define

Change-Id: Ice44a5c8c3dbee6eb04188b661e2b7ea4d056937
CRs-Fixed: 1057902
2016-09-15 18:56:33 -07:00
vivek mehta 39cfce6113 hal: effect: visualizer: support two offload sessions
add support to get visualizer data for two offload
session.

Change-Id: I273aa392080e67a605137c43a3a5b798f66513fb
2015-09-22 12:27:34 -07:00
Ravi Kumar Alamanda 518bcbb6ab visualizer: do not apply calibration on audio routed to afe proxy
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
2015-02-26 13:59:24 -08:00
wjiang ebb69fae68 post_proc: fix post and pre process KW issues
KW issue fix includes:
- handle memory allocation failure
- array index boundary check

Change-Id: I083952ba58d348a5b650601a83e6f492b0d686bb
2014-05-16 23:11:15 +08:00
Subhash Chandra Bose Naripeddy 1d08916721 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.

Change-Id: I4e0b01ab4ae29d4b1c7986f2a6146e18e8bce2c1
2013-11-29 01:26:10 -08:00
Jean-Michel Trivi a6c11c11e2 Level measurement in offloaded visualizer
Add Peak and RMS measurement capabilities in the "offloaded" version
  of the visualizer effect.

Bug 8413913

Change-Id: I09a88f4cc791db6c68f0769dc23ced0d3aac955c
2013-09-24 15:45:55 -07:00
Eric Laurent c4aef75c2c add offloaded audio visualizer
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
2013-09-17 17:44:42 -07:00