summaryrefslogtreecommitdiff
path: root/visualizer/offload_visualizer.c
AgeCommit message (Collapse)Author
2020-03-12visualizer: dynamically parse the sound card when opening mixerMingshu Pang
Sound card number is not always 0 with USB headset, get it dynamically when opening mixer. CRs-Fixed: 2620185 Change-Id: I019e5988bc845af1f721ef00fbe874137c1811ef
2020-01-19visualizer: fix sub-overflowMingshu Pang
Fix visualizer crash due to sub-overflow. CRs-Fixed: 2593280 Change-Id: Id695dcadc6e5a4d333ddaabe7834db42ca52ed75
2020-01-17visualizer: fix sub-overflowWeiyin Jiang
Fix visualizer crash due to sub-overflow. CRs-Fixed: 2571235 Change-Id: I37dc0ac9b0011243f8f4ce11141869228fb858a4
2019-05-14Merge "hal: visualizer: replace string api"qctecmdr
2019-05-10Merge "visualizer:Handle pcmopen error for WFD+visualizer"qctecmdr
2019-05-10hal: visualizer: replace string apiAalique Grahame
Use a different api for string parsing CRs-Fixed: 2451049 Change-Id: I1496a6f2dd9dcddacbe4e68a6a8272d657968cee
2019-04-09hal: visualizer: dynamically read pcm deviceAalique Grahame
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-03-29visualizer:Handle pcmopen error for WFD+visualizerSujin Panicker
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-02-07audio: revert invalid markingsAalique Grahame
Revert invalid markings added to AOSP files. CRs-Fixed: 2380934 Change-Id: I5e729616dccb5e04e870e26462f822e16433879d
2019-01-25audio: unify halAalique Grahame
Unify audio hal components CRs-Fixed: 2380934 Change-Id: Iacafdc44d935de5f343240421a1572a0a3241bd0
2018-11-14audio: Add flags to makefilesVatsal Bucha
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-05-08Fix VNDK Compilation ErrorsVinay Verma
VNDK restrictions doesn't includes standard headers by default, add them explicitly. Change-Id: Icafac6f07fcdf58fccaabde8d472509090fb3e6f
2017-07-28visualizer: remove stereo channel checkWeiyin Jiang
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-05-11visualizer: correct copyright yearsWeiyin Jiang
Correct copyright years. Change-Id: I1c40d643599c842d7fd94b33ad2cf93465a794b1 CRs-Fixed: 2032490
2017-05-05Merge "visualizer: fix warnings due to uninitialized return values"Linux Build Service Account
2017-05-05visualizer: fix warnings due to uninitialized return valuesDhananjay Kumar
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-05visualizer: update PCM device id for sdm660 targetWeiyin Jiang
Update PCM device id for sdm660 target. Change-Id: Icc27d5319ac3273c34f1c32d8fcbbd4b57255fda CRs-Fixed: 2032490
2017-01-24Fix potential NULL dereference in Visualizer effectrago
Bug: 30229821 Test: fixing CL. Existing unit tests still pass. Change-Id: I73d3fe413dd7590470c5b3b19569d6a7969c4dd8 (cherry picked from commit 0c39abc483ba980f7c417e57a0aa39139136c97a)
2016-11-23Merge audio-userspace.lnx.2.1-rel on remote branchLinux Build Service Account
Change-Id: I181b4424624c7ddbe084efcfd06b3170340a1103
2016-11-21 hal: Rename all instances of msmcobalt to msm8998Ben Romberger
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-08Fix potential overflow in Visualizer effectrago
Bug: 30229821 Change-Id: Iea1c4a21735e893aeded95b980044ec0861a7ea8 (cherry picked from commit 2fa52194ef64843c2908c69527384c6c2fcdbafa) (cherry picked from commit 57ac66340ad488a17fc285b6fc2635cb7375d72b) (cherry picked from commit 9cb9810ecb63c8ff55ecf4bc77431dc5b0688b5f)
2016-09-15visualizer: Update PCM device id for visualizerGarmond Leung
Offload visualizer had a hardcoded PCM device. Since the device number changed, update the hash define Change-Id: Ice44a5c8c3dbee6eb04188b661e2b7ea4d056937 CRs-Fixed: 1057902
2015-09-22hal: effect: visualizer: support two offload sessionsvivek mehta
add support to get visualizer data for two offload session. Change-Id: I273aa392080e67a605137c43a3a5b798f66513fb
2015-02-26visualizer: do not apply calibration on audio routed to afe proxyRavi Kumar Alamanda
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
2014-05-16post_proc: fix post and pre process KW issueswjiang
KW issue fix includes: - handle memory allocation failure - array index boundary check Change-Id: I083952ba58d348a5b650601a83e6f492b0d686bb
2013-11-29hal: Add support for audio effects in DSP for tunnel mode playbackSubhash Chandra Bose Naripeddy
Add support to enable or disable audio post processing effects in DSP for tunnel mode playback. Change-Id: I4e0b01ab4ae29d4b1c7986f2a6146e18e8bce2c1
2013-09-24Level measurement in offloaded visualizerJean-Michel Trivi
Add Peak and RMS measurement capabilities in the "offloaded" version of the visualizer effect. Bug 8413913 Change-Id: I09a88f4cc791db6c68f0769dc23ced0d3aac955c
2013-09-17add offloaded audio visualizerEric Laurent
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