summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* aenc-aac: bounds checkingHEADreplicant-6.0-0004-rc2replicant-6.0-0004-rc1replicant-6.0-0003cm-13.0Aalique Grahame2017-09-161-4/+15
| | | | | | | | Add bounds checking for buffers CRs-Fixed: 2013236 Change-Id: I0e1f75ea307088b92e87b99f8b614afbcd0f1c82 CVE-2017-8278
* Equalizer: Check value size for get preset nameAndy Hung2017-09-151-0/+7
| | | | | | | | Test: see CTS testAllEffectsEqualizer_CVE_2017_0401 Bug: 37536407 Change-Id: Ifa515dea10c9293022b7d0971d097f0bd727ac6c (cherry picked from commit 8cf151a63177247a370ecdef6f2e1ec0b80901d5) CVE-2017-0767
* Fix security vulnerability: Equalizer setParameter memory overflowreplicant-6.0-0002rago2017-08-141-0/+20
| | | | | | | | Bug: 37563371 Test: use POC on bug or cts security test Change-Id: Ia04f172fb21b11463ffa9ea023d69a3db01e0731 (cherry picked from commit 617cd5c7f46c2312c7253001c46e7eea4c0315e0)
* Effect/Equalizer command might allow negative indexes (msm8909)replicant-6.0-0001rago2017-01-131-9/+30
| | | | | | These are the changes from commit a66b28ebd1117778f025deaab2cf042d3e5ac74c applied to the msm8909 directory. Change-Id: I8e8e76db366b44806f8f8b5804706acdd36a3565
* Fix security vulnerability: Effect command might allow negative indexesrago2017-01-131-9/+30
| | | | | | | | | | | | | | | | | | | | | | | | | | Bug: 32588016 Bug: 32585400 Test: Use POC bug or cts security test Change-Id: I5ef8c756369d488ad5903c163584f24de63d73e3 (cherry picked from commit 500a9feaf816c719241de83f2ee65c8e2d7ff269) (cherry picked from commit ed79f2cc961d7d35fdbbafdd235c1436bcd74358) # Conflicts: # post_proc/equalizer.c Fix security vulnerability: Equalizer command might allow negative indexes Bug: 32247948 Bug: 32438598 Bug: 32436341 Test: use POC on bug or cts security test Change-Id: I56a92582687599b5b313dea1abcb8bcb19c7fc0e (cherry picked from commit 3f37d4ef89f4f0eef9e201c5a91b7b2c77ed1071) (cherry picked from commit ceb7b2d7a4c4cb8d03f166c61f5c7551c6c760aa) (cherry picked from commit d72ea85c78a1a68bf99fd5804ad9784b4102fe57)
* Fix potential NULL dereference in Visualizer effectrago2016-12-121-3/+7
| | | | | | | | | | | Bug: 30229821 CYNGNOS-3312 Test: fixing CL. Existing unit tests still pass. Change-Id: I73d3fe413dd7590470c5b3b19569d6a7969c4dd8 (cherry picked from commit 0c39abc483ba980f7c417e57a0aa39139136c97a) (cherry picked from commit 2aa3913e968dfe1721f29ab86197178e1ad80b6b)
* Merge tag 'android-6.0.1_r74' into HEADJessica Wagantall2016-11-091-0/+8
|\ | | | | | | | | | | CYNGNOS-3303 Android 6.0.1 release 74
| * Fix potential overflow in Visualizer effectrago2016-09-271-0/+8
| | | | | | | | | | | | | | Bug: 30229821 Change-Id: Iea1c4a21735e893aeded95b980044ec0861a7ea8 (cherry picked from commit 2fa52194ef64843c2908c69527384c6c2fcdbafa) (cherry picked from commit 57ac66340ad488a17fc285b6fc2635cb7375d72b)
* | audio: always send calibrationdcd2016-07-141-1/+2
| | | | | | | | | | | | * fixes low volume on bullhead Change-Id: I278c0eda14a5c15ab6ad07051789e8d49c59c1ad
* | Merge remote-tracking branch 'remotes/android-6.0.1_r52' into HEADJessica Wagantall2016-07-072-3/+6
|\| | | | | | | | | | | Ticket: CYNGNOS-3020 Change-Id: Iafd7ca0e83097fd9bec0fe3e8ff4c05205d6410c
| * DO NOT MERGE Fix AudioEffect reply overflowAndy Hung2016-05-272-3/+6
| | | | | | | | | | Bug: 28173666 Change-Id: I055af37a721b20c5da0f1ec4b02f630dcd5aee02
| * post proc : volume listener : fix effect release crashEric Laurent2016-02-261-5/+18
| | | | | | | | | | | | | | | | Fix access to deleted effect context in vol_prc_lib_release() Bug: 25753245. Change-Id: I64ca99e4d5d09667be4c8c605f66700b9ae67949 (cherry picked from commit 93ab6fdda7b7557ccb34372670c30fa6178f8426)
* | hal: reset backend configuration before speaker calibrationVidyakumar Athota2016-04-201-0/+1
| | | | | | | | | | | | | | | | | | | | | | For speaker thermal calibration, backend needs to be configured with default sample rate(48kHz). Currently backend configuration does not reset to default value after playback finishes, results in failure of speaker calibration. Fix this issue by resetting the backend configuration to default primary output value before speaker thermal calibration. Change-Id: Id231faf7249506ef668a943b6b12c2738b504a50
* | hal: Various upstream fixes and sanity checksSteve Kondik2016-04-202-31/+88
| | | | | | | | | | | | * Fix issues with soundtrigger and possible crashes. Change-Id: I7a455c176b97097464592a922154a62a0aa2283e
* | hal: stop sound trigger buffering during closeMingming Yin2016-04-202-2/+4
| | | | | | | | | | | | | | | | | | | | If the framework doesn't call read before standby and closes the record session, sound trigger buffering will not be stopped and sound trigger hal continue buffering internally. Fix this by stopping buffering during record session close. Change-Id: I83941610b3152f26e5ae9c449dbb8f9846b266a2 CRs-fixed: 966060
* | audio: Hacks for sound triggerSteve Kondik2016-04-201-0/+61
| | | | | | | | Change-Id: Ice58e83f731d45be77f69f2810426dd72cfb98f7
* | post_proc: Misc cleanupsSteve Kondik2016-04-192-3/+10
| | | | | | | | Change-Id: I6a0a0d15bf196e6f5ffab6b68a96e341fc6fe3bf
* | post_proc: improve loggingDhananjay Kumar2016-04-196-142/+118
| | | | | | | | | | | | | | Make logs more meaningful and remove ones not necessary. Change-Id: I9562cf34a5dee406b1c0347a9004db08de9cd5df
* | post_proc: Fix bassboost/virtualizer not disabled on speakerwjiang2016-04-192-9/+2
| | | | | | | | | | | | | | | | | | When output is unintended device, there's no need to query enable_flag before setting effect to disabled state. There's possiblity that enable_flag is 0 as initialized value, which hinder effects from being disabled. Change-Id: Ib90c0ad0982dc8274129bb1bed7861e11670fbdb
* | volume_listener: Silence volume listener logAlexy Joseph2016-04-191-1/+1
| | | | | | | | | | | | Silence volume listener log for offload use case Change-Id: I1b6344dbb898d64ae52a7d3ef60d5666703516f9
* | post_proc: fix inconsistency in virtualizer state from set_strength callDhananjay Kumar2016-04-192-6/+11
| | | | | | | | | | | | | | | | | | | | | | - Virtualizer is getting applied just by setting strength even though it was kept disabled by client. - Enable/disable from strength context is not able to track state set by client, since internal state may not be same as one set by client. - Add a separate variable to track state set by client which would help avoid going into any such inconsistent state. Change-Id: I4985b2d12dc0ee3f62089423e3a71d530f66027c
* | post_proc: Squash upstream changeswjiang2016-03-2310-34/+339
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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. Change-Id: I26d4ccfd77037a879622b0437ae3916ff0071a69 CRs-Fixed: 630408 post_proc: disable Bassboost and Virtualizer for USB_ACCESSORY USB_ACCESSORY is not intended to be applied with SA+ bassboost and virtualizer, so add into invalid devices list. CRs-Fixed: 659191 Change-Id: If1f3421f9935ce624dc21895d9244d36d195b2bd post_proc: fix post and pre process KW issues KW issue fix includes: - handle memory allocation failure - array index boundary check Change-Id: I083952ba58d348a5b650601a83e6f492b0d686bb post_proc: Fix improper datatype of EQ preset band level value unsigned int causes negative band level turn out to be extreme large value, which results in EQ works abnormally due to unexpected parameter sent. Change-Id: I81120c604f4e9f23b25d5a45a7b0294fea63d207 CRs-Fixed: 696825 post_proc: add support for virtualizer capability query Add extra virtualizer interfaces to keep align with aosp design. Extended capabilities include: - Stub interface to allow querying speaker angles. - Force set output device as specific virtualize mode. - Query virtualize mode Stub function remains to be refined in sync with upcoming aosp changes. Change-Id: I3316f6d944db1c9954eda7643a5ce433defa1a6c CRs-Fixed: 810294 post_proc: remove unnecessary command size check Up bound check for command size of EFFECT_CMD_SET_PARAM is not applicable for DSP effect bundle. Remove the check to avoid parameter not taking effect. Change-Id: I7e8f73377699f11bdc1f62a05f6bea03c9c24151 CRs-Fixed: 816053 post_proc: explicitly disable virtualizer module if strength is 0 0 stength in DSP virtualizer is not equivalent to disable state as down mix is still happening for multichannel inputs. For better user experience, explicitly disable virtualizer module when strength is 0. Change-Id: Ic2884ac7010e4f835df871719d546c0c05173f4b CRs-Fixed: 872772 post_proc: fix reverb processing issue when preset is set to NONE Reverb effects are getting applied even after setting reverb preset to REVERB_PRESET_NONE. Preset NONE is used by client and is supposed to be equivalent to disabled state, even though this preset is not supported in DSP. Fix this issue by avoiding enable command from post processing HAL to DSP when preset NONE is in use. CRs-Fixed: 868041 Change-Id: Iad626a7400246e80a97a926234cfb7756ec6083e post_proc: fix crash in offload effect bundle during stop output Effect bundle stop() frees mixer contol before doing module stop(), whereas module's stop() still needs this control to send disable command down the layer. Crash is observed if memory associated with effect control is reused and gets altered by the time mixer control is completed. Move mixer control's deletion after module's stop() to fix this issue. CRs-Fixed: 860604 Change-Id: Ia8b6d5f847b69392afbda1ba77fc740a47aba25d
* | Merge tag 'android-6.0.1_r22' of ↵Steve Kondik2016-03-11118-12/+59591
|\ \ | | | | | | | | | | | | | | | https://android.googlesource.com/platform/hardware/qcom/audio into cm-13.0 Android 6.0.1 release 22
| * | audio: msm8909w caf release LW.BR.1.0-00410-8x09w.0Uday Kishore Pasupuleti2016-01-08110-0/+59496
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | MSM8909w Audio HAL code copied from CAF release LW.BR.1.0-00410-8x09w.0 dbcce50 hal: Port wcd9326 changes to 8909 410c530 hal: update error handling for pcm_prepare failures ff79309 hal: fix compilation issues with audio FM extention 762d7eb policy_hal: add support for fm device loopback 7c418f9 audio_policy: modify few methods to appropriately override base 8b12163 audio: Add support to enable split A2DP a0559fa Revert "Revert "policy_hal: Function prototype correction for custom policy"." Fixed makefiles to be compatible with PDK without kernel source Change-Id: I9c6f2139adee62426b877516deeb41d4ed8052b2
| * | post proc : volume listener : fix effect release crash am: ebbb823651Eric Laurent2015-12-091-5/+18
| |\ \ | | | | | | | | | | | | | | | | | | | | | | | | am: ffa7f34752 * commit 'ffa7f347525d9f4c705e753908c55fe75af0560f': post proc : volume listener : fix effect release crash
| | * \ post proc : volume listener : fix effect release crashEric Laurent2015-12-091-5/+18
| | |\ \ | | | |/ | | |/| | | | | | | | | | | | | | | | | am: ebbb823651 * commit 'ebbb82365172337c6c250c6cac4e326970a9e351': post proc : volume listener : fix effect release crash
| | | * post proc : volume listener : fix effect release crashEric Laurent2015-12-091-5/+18
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Fix access to deleted effect context in vol_prc_lib_release() Bug: 25753245. Change-Id: I64ca99e4d5d09667be4c8c605f66700b9ae67949 (cherry picked from commit 93ab6fdda7b7557ccb34372670c30fa6178f8426)
| * | | hal: audio_stream_frame_size is deprecatedUday Kishore Pasupuleti2015-11-161-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Use audio_stream_out_frame_size instead Change-Id: I0416e0f9079b834361ac89821459c151cb428c0d Signed-off-by: Uday Kishore Pasupuleti <upasupul@codeaurora.org>
| * | | am 26f06c79: Merge "hal: fix mic selection for IN_COMMUNICATION mode" into ↵Eric Laurent2015-10-153-5/+11
| |\| | | | | | | | | | | | | | | | | | | | | | | | | | mnc-dr-dev * commit '26f06c79dd04fba38a97f2548ead140d25edde78': hal: fix mic selection for IN_COMMUNICATION mode
| * | | am cc3f2e8d: Merge "hal: Add support for perf lock management (continued)" ↵Glenn Kasten2015-10-131-0/+1
| |\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | into mnc-dr-dev * commit 'cc3f2e8dbe76ea15472471fa374051273c441035': hal: Add support for perf lock management (continued)
| * \ \ \ am c0750690: Configure platform msm8960Jean-Michel Trivi2015-10-122-1/+8
| |\ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | * commit 'c075069083619889b0b28147f08e53371551ea91': Configure platform msm8960
| * \ \ \ \ am 7246fb64: Define max number of channels for msm8974Jean-Michel Trivi2015-10-091-0/+3
| |\ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | * commit '7246fb647b8e30c0aaec48961274c3a81e67d6e3': Define max number of channels for msm8974
| * | | | | | hal: Support mute/unmute for HFP TxUday Kishore Pasupuleti2015-10-083-3/+18
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Current hal doesn't support mute/unmute for HFP Tx. So add the feature to support mute/unmute for HFP Tx Bug: 23559037 Change-Id: Ibd67225ce926516974ca87059bb139e6af0083ac Signed-off-by: Uday Kishore Pasupuleti <upasupul@codeaurora.org>
| * | | | | | am 888dc3d2: hal: fix hotword detection failure during music playbackRavi Kumar Alamanda2015-10-021-4/+6
| |\ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * commit '888dc3d2301c438392644b71dbea43b8860687bb': hal: fix hotword detection failure during music playback
| * \ \ \ \ \ \ am 8c83fe85: Add support for voice recognition on headset use caseJean-Michel Trivi2015-09-262-0/+6
| |\ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * commit '8c83fe85b6d1257298208de043acece927787c3f': Add support for voice recognition on headset use case
| * \ \ \ \ \ \ \ am 04643599: hal: Fix EC not working with some VoIP appRavi Kumar Alamanda2015-09-251-5/+6
| |\ \ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * commit '04643599078ac0501b64493e791320277ac05a47': hal: Fix EC not working with some VoIP app
| * \ \ \ \ \ \ \ \ am 533bb726: hal: Add support for perf lock managementRavi Kumar Alamanda2015-09-244-0/+127
| |\ \ \ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * commit '533bb72620933eddd232d41e171ab70ea0807e34': hal: Add support for perf lock management
| * \ \ \ \ \ \ \ \ \ am 88cbad34: Ramp speaker gain when swapping L/R channels for ACDB changeJean-Michel Trivi2015-09-241-0/+65
| |\ \ \ \ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * commit '88cbad341d2dd920ac74c2296f319482bd53a33d': Ramp speaker gain when swapping L/R channels for ACDB change
| * \ \ \ \ \ \ \ \ \ \ am 425e154c: hal: msm8974: Conditional device switch to swap LR channelsRavi Kumar Alamanda2015-09-241-7/+17
| |\ \ \ \ \ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * commit '425e154c046554deb7ba766e89b943e8870ee251': hal: msm8974: Conditional device switch to swap LR channels
| * \ \ \ \ \ \ \ \ \ \ \ am a1478073: Revert "Revert "audio HAL: fix thread starvation""Eric Laurent2015-09-222-18/+39
| |\ \ \ \ \ \ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * commit 'a1478073c18fbdecd6510452304270d2149ae5b6': Revert "Revert "audio HAL: fix thread starvation""
| * | | | | | | | | | | | | hal: Use default acdb id for hfpUday Kishore Pasupuleti2015-09-211-2/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Use default acdb id same as speaker and speaker-mic which will be present on platforms. overwrite the acdb ids through device specific config file audio_platform_info.xml if required. Change-Id: I732dcdea691a1ae74b553964f349f1312d300da1 Signed-off-by: Uday Kishore Pasupuleti <upasupul@codeaurora.org>
| * | | | | | | | | | | | | hal: Add support for HFP featureUday Kishore Pasupuleti2015-09-194-2/+20
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - add support for audio tuning of HFP - add TX reference for TX Echo Cancellation Change-Id: I5d7ffe1481a5093262b4b94ae0325fa81111feac Signed-off-by: Uday Kishore Pasupuleti <upasupul@codeaurora.org>
| * | | | | | | | | | | | | am 1536efd3: am 7106b08e: DO NOT MERGE - volume_listener: fix releaseAndy Hung2015-09-160-0/+0
| |\ \ \ \ \ \ \ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * commit '1536efd3864d745782e05aa92ebe48a5c327d79f': DO NOT MERGE - volume_listener: fix release
| * \ \ \ \ \ \ \ \ \ \ \ \ \ am 1b49155c: hal: change sequence of selecting output deviceEric Laurent2015-09-161-34/+34
| |\ \ \ \ \ \ \ \ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * commit '1b49155ca2a0b056d09f159861ad0d251a36116d': hal: change sequence of selecting output device
| * \ \ \ \ \ \ \ \ \ \ \ \ \ \ am e04901bf: Merge "msm7984: fix plaform_set_parameters()." into mnc-dr-devEric Laurent2015-09-142-7/+7
| |\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * commit 'e04901bfccd127bbf24f0064077c9ff93c2401e1': msm7984: fix plaform_set_parameters().
| * \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ am 13355e90: Merge "volume listener: fix process() function for accumulate ↵Eric Laurent2015-09-111-2/+23
| |\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | mode." into mnc-dr-dev * commit '13355e906843e889df8ee88d39015f373666fb7f': volume listener: fix process() function for accumulate mode.
| * \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ am e63e61d4: hal msm8974: fix logic in platform_check_backends_match().Eric Laurent2015-09-101-1/+1
| |\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * commit 'e63e61d40e171b60b8345f2a47022d066aa589f2': hal msm8974: fix logic in platform_check_backends_match().
| * \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ am 9af4b91d: hal: fix backend check routine for combo deviceEric Laurent2015-09-101-1/+1
| |\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * commit '9af4b91ddd17beb8e0db420874014a5662848159': hal: fix backend check routine for combo device
| * \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ am 2facd29c: Merge "volume_listener: fix release" into mnc-dr-devAndy Hung2015-09-091-2/+2
| |\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * commit '2facd29ca7a04fcfe01b83cf044d552d6b728dd7': volume_listener: fix release
| * \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ am 5a95ff68: hal: Fix incorrect audio calibration after device switchRavi Kumar Alamanda2015-09-031-7/+2
| |\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * commit '5a95ff689b4a1827488d576f02b6292e4318abb2': hal: Fix incorrect audio calibration after device switch