summaryrefslogtreecommitdiff
path: root/audio/common
AgeCommit message (Collapse)Author
2023-04-20Merge tag 'LA.QSSI.13.0.r1-09800-qssi.0' into tachibanaalk3pInjection
"LA.QSSI.13.0.r1-09800-qssi.0" Change-Id: Ic76606f2ea0ed3f21712ea081b19c5fc802404c0
2023-03-02Merge t-qpr-2023-03Matt Lee
Change-Id: I2e4738c71d248997dc6d4064b157d19b430f2ff9
2023-01-11Merge tag 'LA.QSSI.13.0.r1-08600-qssi.0' into tachibanaalk3pInjection
"LA.QSSI.13.0.r1-08600-qssi.0" Change-Id: Iddb463b48260eb82738fdda94df88b12032d64dd
2022-12-16audio HAL: Optimize for Spatial AudioAndy Hung
Add CAP_SYS_NICE. Allow util_clamp_min for Spatializer Effect worker thread. Reduce glitches caused by core migration. Reduce power consumption as Spatializer Effect is DSP compute bound. This change only affects Spatial Audio Effect processing. Test: instrumented Test: adb shell 'uclampset -a -p $(pgrep -of android.hardware.audio.service)' Test: adb shell cat "/proc/$(adb shell pgrep -of android.hardware.audio.service)/status" Test: adb shell 'ps -Tl -p $(pgrep -of android.hardware.audio.service)' Bug: 181148259 Bug: 260918856 Bug: 261228892 Bug: 261686532 Bug: 262803152 Change-Id: I59ea99e8a1720f61954747f6c29e14cfea9a0f56
2022-12-02audio HAL: Enable RT priority inheritanceAndy Hung
Test: instrumented Bug: 181148259 Bug: 260918856 Change-Id: If56e449a9c6f1a49e372591893d8714534574e3a
2022-10-03Merge t-mpr-2022-10Matt Lee
Change-Id: I67c35e1977e4d161d89c9cf00c6a23e1584f80fc
2022-09-05fixup! Merge TP1A.211206.001alk3pInjection
what a great mismerge that ended up WASTING THE WHOLE DAY Fixes: I8b3a43021a3328cf6afb4e7e157339d8e214ddbe Change-Id: I5cd65dec5a6f31114c70edd6d1b1891505c7808a
2022-08-19Fix array out of bound in audioTransportToHal.jiabin
The number of audio profile and extra audio descriptor must not be greater than the maximum value. Bug: 237288416 Bug: 237717857 Test: repo step in bug Test: atest android.hardware.audio.common@7.0-util_tests Change-Id: I1fcfa29d7841a1cb73bafb1ea92f3b1630992ae9 Merged-In: I1fcfa29d7841a1cb73bafb1ea92f3b1630992ae9 (cherry picked from commit 0ee75ca925f6334741d3e34c5e1d1b0efae5943b) (cherry picked from commit f16c6d3a5741768356159f099d04bfe2219c81fe) Merged-In: I1fcfa29d7841a1cb73bafb1ea92f3b1630992ae9
2022-07-07[automerge] Fix array out of bound in audioTransportToHal. 2p: f16c6d3a57 ↵jiabin
2p: 0d43585645 Original change: https://googleplex-android-review.googlesource.com/c/platform/hardware/interfaces/+/19214732 Bug: 237288416 Bug: 237717857 Change-Id: I65135fa57c7ba449ad856ef5b4081c3580fb4c6f Merged-In: I1fcfa29d7841a1cb73bafb1ea92f3b1630992ae9
2022-07-07Fix array out of bound in audioTransportToHal.jiabin
The number of audio profile and extra audio descriptor must not be greater than the maximum value. Bug: 237288416 Bug: 237717857 Test: repo step in bug Test: atest android.hardware.audio.common@7.0-util_tests Change-Id: I1fcfa29d7841a1cb73bafb1ea92f3b1630992ae9 Merged-In: I1fcfa29d7841a1cb73bafb1ea92f3b1630992ae9 (cherry picked from commit 0ee75ca925f6334741d3e34c5e1d1b0efae5943b)
2022-03-25Merge TP1A.220321.002Scott Lobdell
Change-Id: If51d1324897593e6bb61bf4795bc157004c10083
2022-03-11Merge TP1A.220225.003Scott Lobdell
Change-Id: Iad9e960e034127e3320f78d2eadd23e36300b10c
2022-03-07Merge TP1A.220209.001Deyao Ren
Change-Id: Ia39c40c82efb5b7c7d2ad4c464b75e6fd4e073aa
2022-03-02Clear apex.go entries for bluetooth libsWilliam Escande
Test: Build + TH + boot phone & use bluetooth Bug: 216433795 Change-Id: Ib1f9fee90006c73e5726a208e6cba8647967f5f4
2022-02-24Merge "Add timed out test files to tidy_timeout_srcs" am: ff54f73b4f am: ↵Chih-hung Hsieh
fa83970b3a am: 581616e658 Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/1992232 Change-Id: I2eac13fe3b5ab0b4f15d6ceadf376e5e74124a81
2022-02-18Add timed out test files to tidy_timeout_srcsChih-Hung Hsieh
* Timed out runs do not show any warning messages. * These test files cannot finish clang-tidy runs with the following settings: TIDY_TIMEOUT=90 WITH_TIDY=1 CLANG_ANALYZER_CHECKS=1 * When TIDY_TIMEOUT is set, in Android continuous builds, tidy_timeout_srcs files will not be compiled by clang-tidy. When developers build locally without TIDY_TIMEOUT, tidy_timeout_srcs files will be compiled. * Some of these test modules may be split into smaller ones, or disable some time consuming checks, and then enable clang-tidy to run within limited time. Bug: 201099167 Test: make droid tidy-hardware-interfaces_subset Change-Id: I1de28f1572fff368f67eab512fffec9f2e5c2a9b
2022-02-17Merge "Audio: Load Bluetooth AIDL HAL" am: 9938caf08b am: ea8522964b am: ↵Treehugger Robot
c43c0bcbf8 Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/1942860 Change-Id: Ia88c5a97417146792a10632300939c943a28f001
2022-02-16Audio: Load Bluetooth AIDL HALJosh Wu
Test: m android.hardware.audio.service Bug: 203490261 Change-Id: If518ed69331489bd9aeb2a0c58e17c2917e3c0cf
2022-02-16audio: use binder threadpool am: d90c47420a am: 142ba0857b am: cc75285f2eJasmine Cha
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/1986309 Change-Id: I77d258201a43d69555e6ac4bbba2831674f40958
2022-02-16audio: use binder threadpoolJasmine Cha
Support to communicate with other service with AIDL interface. Bug: 215463744 Test: build pass Signed-off-by: Jasmine Cha <chajasmine@google.com> Change-Id: I13da2121623779b0ba21d29cf39c11abc7b96dd9
2022-02-14Make AUDIO_USAGE_NOTIFICATION_EVENT available to HALs am: a85cebb63e am: ↵Mikhail Naganov
783f8f14e2 am: 6ae5c189c2 Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/1983828 Change-Id: Ibb5768f2e6ad8d7d2eba6caece5f7a495d7d2bd6
2022-02-12Make AUDIO_USAGE_NOTIFICATION_EVENT available to HALsMikhail Naganov
This aligns the list of usages between the framework and HALs Bug: 199193042 Test: atest android.hardware.audio@7.1-util_tests Test: atest android.hardware.audio.common@7.1-util_tests Test: atest VtsHalAudioV7_1TargetTest Change-Id: I4d7fdbacff87eebcbc8d68dd6ed8cefdd52aa84e
2022-02-12audio: Add android.hardware.audio[.common]@7.1-util modulesMikhail Naganov
android.hardware.audio.common@7.1-util and android.hardware.audio@7.1-util utilize the 7.1 XSD enums conversion library and thus can work with the new enum strings added in 7.1 Bug: 218504031 Test: atest VtsHalAudioV7_1TargetTest Test: atest android.hardware.audio.common@7.0-util_tests Test: atest android.hardware.audio.common@7.1-util_tests Test: atest android.hardware.audio@7.0-util_tests Test: atest android.hardware.audio@7.1-util_tests Change-Id: Icc5a354cdc2e377a2a2424c28377bcb0ba05bf4e (cherry picked from commit fa4a4f8da7d8a8ba74b781e96a515f6049cd5073) Merged-In: Icc5a354cdc2e377a2a2424c28377bcb0ba05bf4e
2022-02-09audio: Add android.hardware.audio[.common]@7.1-util modulesMikhail Naganov
android.hardware.audio.common@7.1-util and android.hardware.audio@7.1-util utilize the 7.1 XSD enums conversion library and thus can work with the new enum strings added in 7.1 Bug: 218504031 Test: atest VtsHalAudioV7_1TargetTest Test: atest android.hardware.audio.common@7.0-util_tests Test: atest android.hardware.audio.common@7.1-util_tests Test: atest android.hardware.audio@7.0-util_tests Test: atest android.hardware.audio@7.1-util_tests Change-Id: Icc5a354cdc2e377a2a2424c28377bcb0ba05bf4e
2022-02-07audio: add new enums for 7.1 HALEric Laurent
Add the following enums to 7.1 audio HAL: - Spatial audio: spatializer output flag front wide channel masks - Bluetooth LE broadcast audio device Bug: 187446271 Test: m android.hardware.audio.common@7.1-enums Change-Id: I9bfb937ece3a07a7844877de5f355ece1141f92d (cherry picked from commit 5b8529a1da6a2fe9c5732215dd29b337da88e7ac) Merged-In: I9bfb937ece3a07a7844877de5f355ece1141f92d
2022-02-05Audio HAL V7.1: Update VTSMikhail Naganov
Mechanical updates from global greps. Updated test code to use new methods from V7.1. Added missing checks for null pointers in PcmOnlyConfig...StreamTest::releasePatchIfNeeded for V7. Bug: 214426419 Test: atest VtsHalAudioV7_1TargetTest Change-Id: Id3a99993bf2ee0c87d44f668d759f7c10db9a435 (cherry picked from commit 40fde0bc07be50644705a708a522c941840f35c7) Merged-In: Id3a99993bf2ee0c87d44f668d759f7c10db9a435
2022-02-05Audio HAL V7.1: Update the default implementationMikhail Naganov
Split versions of "common" and "core" types from the version of the interfaces. "Common" and "core" versions are set to 7.0. Implemented new methods of V7.1 interfaces. Bug: 214426419 Test: m android.hardware.audio@7.1-impl Test: m android.hardware.audio@7.0-impl Test: m android.hardware.audio.effect@7.0-impl Test: m android.hardware.audio@6.0-impl Change-Id: Ic4c44d4ac9bbfa7b62695866b9aa7473658390b2 (cherry picked from commit 7d01538eeccf81aa57da61b4abba830d34582195) Merged-In: Ic4c44d4ac9bbfa7b62695866b9aa7473658390b2
2022-02-05Audio HAL V7.1: Interfaces & typesMikhail Naganov
Introduced V7.1 of the core HAL. The only added methods of the interfaces are those for creating objects implementing the new version. HIDL types are from V7.0. APM XSD is cloned for adding new enums. Provided the minor update for the enums utility library. CTS-Coverage-Bug: 215647214 Bug: 214426419 Test: m Change-Id: I3caa2fda2fb5d7d8e8292e23fb2cf0e32e05c146 (cherry picked from commit a0cd944914f30aed36c8891bd22e825aee312fdc) Merged-In: I3caa2fda2fb5d7d8e8292e23fb2cf0e32e05c146
2022-01-27audio: add new enums for 7.1 HALEric Laurent
Add the following enums to 7.1 audio HAL: - Spatial audio: spatializer output flag front wide channel masks - Bluetooth LE broadcast audio device Bug: 187446271 Test: m android.hardware.audio.common@7.1-enums Change-Id: I9bfb937ece3a07a7844877de5f355ece1141f92d
2022-01-25Audio HAL V7.1: Update VTSMikhail Naganov
Mechanical updates from global greps. Updated test code to use new methods from V7.1. Added missing checks for null pointers in PcmOnlyConfig...StreamTest::releasePatchIfNeeded for V7. Bug: 214426419 Test: atest VtsHalAudioV7_1TargetTest Change-Id: Id3a99993bf2ee0c87d44f668d759f7c10db9a435
2022-01-25Audio HAL V7.1: Update the default implementationMikhail Naganov
Split versions of "common" and "core" types from the version of the interfaces. "Common" and "core" versions are set to 7.0. Implemented new methods of V7.1 interfaces. Bug: 214426419 Test: m android.hardware.audio@7.1-impl Test: m android.hardware.audio@7.0-impl Test: m android.hardware.audio.effect@7.0-impl Test: m android.hardware.audio@6.0-impl Change-Id: Ic4c44d4ac9bbfa7b62695866b9aa7473658390b2
2022-01-25Audio HAL V7.1: Interfaces & typesMikhail Naganov
Introduced V7.1 of the core HAL. The only added methods of the interfaces are those for creating objects implementing the new version. HIDL types are from V7.0. APM XSD is cloned for adding new enums. Provided the minor update for the enums utility library. CTS-Coverage-Bug: 215647214 Bug: 214426419 Test: m Change-Id: I3caa2fda2fb5d7d8e8292e23fb2cf0e32e05c146
2022-01-21Merge TP1A.211206.001Scott Lobdell
Change-Id: I8b3a43021a3328cf6afb4e7e157339d8e214ddbe
2022-01-14Merge TP1A.211116.001Scott Lobdell
Change-Id: Iba540947aa34084b7ef3210f93332bb757b4bb43
2021-11-29[automerger] Remove C Style comments for the 64 bit RC file am: 1192f50b10Suresh
Change-Id: I72ece98f9d63b1c413db56dd366301bcbbec63ff
2021-11-29Remove C Style comments for the 64 bit RC fileShashank Sivakumar
Removing the C style comments added to the RC file. The other RC file too have this removed. CRs-Fixed:3082120 Change-Id: Iafbf12b09fa4d8ef9c5084da4ca83aaec3a8a04d
2021-11-23Merge TP1A.211013.002Scott Lobdell
Change-Id: I9e0cb5f7b3c56c56676d7d980f57548ae45234f3
2021-11-17Merge "audio: Support 64bit configuration on 32+64bit compatible OS" am: ↵Carter Hsu
f665b8fa86 am: 66cfe34ef4 am: 0e98137981 am: e3d00ca753 Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/1891181 Change-Id: Ib2580f903900723f4408ed59b4d08a4cad488c56
2021-11-16audio: Support 64bit configuration on 32+64bit compatible OSCarter Hsu
The default value is 'prefer32', in order to run the hardware audio service as 64 bit on a 32+64bit OS, please add the content below into 'device.mk': SOONG_CONFIG_NAMESPACES += android_hardware_audio SOONG_CONFIG_android_hardware_audio += \ run_64bit SOONG_CONFIG_android_hardware_audio_run_64bit := true Bug: 205240941 Test: build pass Signed-off-by: Carter Hsu <carterhsu@google.com> Change-Id: Ic7632a4f80298721512cd538ce93945b82a9981f
2021-11-12Merge "Fix the integration issue for HAL 2.2" am: c4718b793c am: 5e070c733a ↵Treehugger Robot
am: ee5538cb27 am: dda57e13d1 Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/1881111 Change-Id: Idb9763abf1aa5c846cff4c109f122c040bb2988a
2021-11-09Fix the integration issue for HAL 2.2Alice Kuo
Bug: 150670922 Bug: 197297498 Test: A2DP & LE aduio stream works well with HIDL 2.1/2.2 Change-Id: I64113dd4a229874b2d17ae71d088abafd8197cfd
2021-10-07Expose HIDL HALs to car framework apexKeun young Park
- all HALs also get //apex_available:platform as HAL should be available for platform Bug: 192665266 Test: build Change-Id: Ic6781447628761a8e8a9aa31e473dfc340af9989
2021-09-30Merge TP1A.210812.002Haamed Gheibi
Bug: 198367246 Change-Id: I64df13aefdc06c8bb9f9b3a4256c41879e15e515
2021-09-29audio: ignore SIGPIPE in audio HAL processWeiyin Jiang
Ignore SIGPIPE in audio HAL process. CRs-Fixed: 3032815 Change-Id: Ib120f3ea27f609d7aca1e06e8f90f04d8f957c26
2021-07-12Merge SP1A.210709.002Haamed Gheibi
Change-Id: I36831b099954848921ec9805ca2fb6d10d743368
2021-07-08audio: Fix handling of relative XML include paths in VTSMikhail Naganov
Pass "no fixup base dirs" flag to the XInclude processor to avoid modifications of the top-level elements from included XML files as a result of "fixup." Added tests to ensure that all relevant XInclude scenarios work. Bug: 192619060 Test: atest -host android.hardware.audio.common.test.utility_tests Change-Id: Id595c9fd30be378d76387ee55a8937e0bf28d1cd Merged-In: Id595c9fd30be378d76387ee55a8937e0bf28d1cd
2021-07-08Merge "audio: Fix handling of relative XML include paths in VTS" into sc-dev ↵TreeHugger Robot
am: 3456ce6816 am: 569611f123 Original change: https://googleplex-android-review.googlesource.com/c/platform/hardware/interfaces/+/15193448 Change-Id: I0e71a9d93ff7153fa785f29e219f1b04421ddf8a
2021-07-08Merge "audio: Fix handling of relative XML include paths in VTS" into sc-devTreeHugger Robot
2021-07-07audio: Fix handling of relative XML include paths in VTSMikhail Naganov
Pass "no fixup base dirs" flag to the XInclude processor to avoid modifications of the top-level elements from included XML files as a result of "fixup." Added tests to ensure that all relevant XInclude scenarios work. Bug: 192619060 Test: atest -host android.hardware.audio.common.test.utility_tests Change-Id: Id595c9fd30be378d76387ee55a8937e0bf28d1cd
2021-07-07Merge "Revert "audio: exclude the echo reference device in capture position ↵TreeHugger Robot
test"" into sc-dev am: 8c5166b2f5 am: eb4b61958e Original change: https://googleplex-android-review.googlesource.com/c/platform/hardware/interfaces/+/15223272 Change-Id: Id48b51227ea17fea5c7921fc0e4925075e22e110