summaryrefslogtreecommitdiff
path: root/audio
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
2023-01-04Merge t-mpr-2023-01Matt Lee
Change-Id: I6b3acf023780524076585f8c581f258d2635093a
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-06Merge t-qpr-2022-12Matt Lee
Change-Id: I86a901f08eb87588bd2163cf8287e7dacea699b6
2022-12-05audio HAL: set minimum Binder access priorityAndy Hung
Use setMinSchedulerPolicy to enforce minimum thread priority when accessing the audio HAL to ANDROID_PRIORITY_AUDIO Test: instrumented Bug: 261496726 Change-Id: I700b04d3060e9405b1445206882a6131cea0d045
2022-12-02audio HAL: Enable RT priority inheritanceAndy Hung
Test: instrumented Bug: 181148259 Bug: 260918856 Change-Id: If56e449a9c6f1a49e372591893d8714534574e3a
2022-11-15EffectHal: Support retrieving worker thread tidAndy Hung
Use 'gtid' as the command, returns the worker thread tid. Test: see bug Bug: 253276925 Change-Id: Ia4fa129c62cf6df97821c34876b517944bc5322f (cherry picked from commit 7d5eb5c8371cd881d8d2fd7b57a6d2803206fd59) Merged-In: Ia4fa129c62cf6df97821c34876b517944bc5322f
2022-10-19EffectHal: Support retrieving worker thread tidAndy Hung
Use 'gtid' as the command, returns the worker thread tid. Test: see bug Bug: 253276925 Change-Id: Ia4fa129c62cf6df97821c34876b517944bc5322f
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-09-01audio: Add checks to effects feature configs retrievalMikhail Naganov
The size of the feature config needs to be limited by the Binder transaction size. This check is enforced before calling into legacy C API. Also, fixed invalid calculation of buffer size in Effect::getSupportedConfigsImpl. Bug: 240266798 Test: atest VtsHalAudioEffectV7_0TargetTest Change-Id: I1a1f7931a07e28642967fa68d9a358429138db29
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-08-05audio: Restrict the new VTS test for effects to T+Mikhail Naganov
The VTS test AudioEffectHidlTest#GetParameterInvalidMaxReplySize should only run for new devices launching on T+ because older vendor images do not have updated HAL default wrapper code and thus will fail. Bug: 237291425 Bug: 240932876 Test: atest VtsHalAudioEffectV7_0TargetTest:Equalizer_IEffect/AudioEffectHidlTest#GetParameterInvalidMaxReplySize/0_default Change-Id: I1697155fe7781cbc96c1913e674699e299aa26b3
2022-08-03Merge changes I26fd4fd2,Iaadf6e9b,I7d42f8a7,I0482376e into ↵TreeHugger Robot
stage-aosp-tm-ts-dev am: 744c329227 am: 5c5c78aa51 am: 6188e3b113 Original change: https://googleplex-android-review.googlesource.com/c/platform/hardware/interfaces/+/19345935 Change-Id: I7e03e1aebc8d994f34d7228c778cfad40feee71d Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-08-03audio VTS: CompressedOffloadOutputStream to check the vendor API level am: ↵Mikhail Naganov
3f2e330990 am: b9b5652fcc am: ebb6782251 Original change: https://googleplex-android-review.googlesource.com/c/platform/hardware/interfaces/+/19340462 Change-Id: I0e751fdd984eb60a6c32a6d837fcf7ec93cd64fe Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-08-03audio VTS: add CompressedOffloadOutputStream test am: 56f1666feb am: ↵Mikhail Naganov
96ddc8f20f am: 9d171af82d Original change: https://googleplex-android-review.googlesource.com/c/platform/hardware/interfaces/+/19345352 Change-Id: I3ed7195ebfdafe747ad238fdfcacc66ee3b21e04 Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-08-03audio VTS: Refactor test parameter generation for I/O streams am: 1e703f182e ↵Mikhail Naganov
am: a4c937fe91 am: 1d8b62bf92 Original change: https://googleplex-android-review.googlesource.com/c/platform/hardware/interfaces/+/19340459 Change-Id: I7f0253cab91f1d8166fa42e9b9086c19621a846e Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-08-02Merge changes I26fd4fd2,Iaadf6e9b,I7d42f8a7,I0482376e into ↵TreeHugger Robot
stage-aosp-tm-ts-dev am: 744c329227 Original change: https://googleplex-android-review.googlesource.com/c/platform/hardware/interfaces/+/19345935 Change-Id: I2b54fab89ae38c8060fbec12c080304830a467fc Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-08-02audio VTS: CompressedOffloadOutputStream to check the vendor API level am: ↵Mikhail Naganov
3f2e330990 Original change: https://googleplex-android-review.googlesource.com/c/platform/hardware/interfaces/+/19340462 Change-Id: I85785803514d775f765e1ae4217a17591d7e4fb7 Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-08-02audio VTS: add CompressedOffloadOutputStream test am: 56f1666febMikhail Naganov
Original change: https://googleplex-android-review.googlesource.com/c/platform/hardware/interfaces/+/19345352 Change-Id: Id24534dd0c3c977e1b775229734bcadb11a42ad5 Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-08-02audio VTS: Refactor test parameter generation for I/O streams am: 1e703f182eMikhail Naganov
Original change: https://googleplex-android-review.googlesource.com/c/platform/hardware/interfaces/+/19340459 Change-Id: Iac28cf5830ddb01b3dc78d696c10d80bbd2d85c0 Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-07-19audio VTS: Update CompressedOffloadOutputStream implementationMikhail Naganov
Do not rely on blocking behavior of 'IStreamOut.write', instead use stream callbacks. Measure the time between write start and drain complete. This makes the test working reliably across different chipsets. Bug: 219767875 Test: atest VtsHalAudioV7_0TargetTest:CompressedOffloadOutputStream/CompressedOffloadOutputStreamTest Test: atest VtsHalAudioV7_1TargetTest:CompressedOffloadOutputStream/CompressedOffloadOutputStreamTest Change-Id: I26fd4fd26914ed2a0b3273f4ae5512a87f9cca2c Merged-In: I26fd4fd26914ed2a0b3273f4ae5512a87f9cca2c (cherry picked from commit a0a5d4a9f6e68a1c6babd5c9e6307aa7322c2f89)
2022-07-19audio VTS: CompressedOffloadOutputStream to check the vendor API levelMikhail Naganov
Update CompressedOffloadOutputStream to fail the test if compressed offload mix port does not support gapless offload for a new device launching on T+. Bug: 219767875 Test: atest VtsHalAudioV7_0TargetTest Test: atest VtsHalAudioV7_1TargetTest Change-Id: Iaadf6e9b9bb7340ccaf5bc26c45fda9654190510 Merged-In: Iaadf6e9b9bb7340ccaf5bc26c45fda9654190510 (cherry picked from commit 1bc0dc4cebf3a968934d0239a1b17e6cc8c9a7e8)
2022-07-19audio VTS: add CompressedOffloadOutputStream testMikhail Naganov
CompressedOffloadOutputStreamTest#Mp3FormatGaplessOffload verifies that gapless offload is supported by compressed offload mix ports. Bug: 219767875 Test: atest VtsHalAudioV7_0TargetTest Test: atest VtsHalAudioV7_1TargetTest Change-Id: I7d42f8a714da2923b8775445ba301938ca90b885 Merged-In: I7d42f8a714da2923b8775445ba301938ca90b885 (cherry picked from commit 158a2ddb2fafa01e2e52a4c9033b81c29d05dfdd)
2022-07-19audio VTS: Refactor test parameter generation for I/O streamsMikhail Naganov
Two changes that are necessary to test offloaded output: 1. Pass all mix port flags specified in the config to HAL when opening an output stream. Previously the generator was omitting the 'NON_BLOCKING' flag, however it is necessary for offloaded output to work. This also now passes the 'GAPLESS_OFFLOAD' flag to the stream opening call site. 2. Provide the DeviceAddress of the attached source/sink device to tests that use mix ports. Some tests were looking up the device address anyway. Also, HAL implementations seem to prefer to have the actual output device instead of 'DEFAULT' when opening offload streams. Bug: 219767875 Test: atest VtsHalAudioV7_0TargetTest Test: atest VtsHalAudioV7_1TargetTest Test: atest HalAudioV7_0GeneratorTest Change-Id: I0482376ecc7d6964f45f508a80716ffab18044b4 Merged-In: I0482376ecc7d6964f45f508a80716ffab18044b4 (cherry picked from commit 713d2c55908aa6bd22481163509c4543a9c6d1bf)
2022-07-11[automerge] Fix array out of bound in audioTransportToHal. 2p: f16c6d3a57 ↵jiabin
2p: 0d43585645 am: 3074154353 am: c9c8e96cfd Original change: https://googleplex-android-review.googlesource.com/c/platform/hardware/interfaces/+/19214732 Change-Id: I5ffb19250606281dd1af6b299da2348613fe4fc7 Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-07-08audio: Add checks to HIDL -> effect_param_t conversionMikhail Naganov
By convention, the size of the resulting effect_param_t can not exceed EFFECT_PARAM_SIZE_MAX. This checks needs to be enforced when converting from HIDL arguments into legacy C API structures. Bug: 237291425 Test: atest VtsHalAudioEffectV7_0TargetTest Change-Id: Ie92f62b002dc622fa8246139c3d956909670fdb6
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-05-25Merge TP1A.220523.001Deyao Ren
Change-Id: Iab5bc188cdb4d615b0a980009d7f7604d6112713
2022-05-19Update VtsHalAudioPolicyV1_0TargetTest to match XML changesMikhail Naganov
There was a proposal for a backward-compatible XML schema change (https://android-review.googlesource.com/q/I1bf31c6bf6c57c9b79f0d5751601aa77780f1f80) which had a mistake. Express the change correctly to match the implementation. Bug: 231929160 Test: atest VtsHalAudioPolicyV1_0TargetTest Change-Id: Id581e290740a3c00ba3719a339c9bc47d730f35c (cherry picked from commit 356bb458dc5b5e79a9aee89098a49e8865baa144) Merged-In: Id581e290740a3c00ba3719a339c9bc47d730f35c
2022-05-15Merge TP1A.220507.001Brian Orr
Change-Id: Ifd94c5f23194526eeb62cfe29ad19207671380ad
2022-05-08Merge TP1A.220425.001Deyao Ren
Change-Id: Iadbc8b240b510dc630fb32d0336e0fb6740daa4a
2022-05-06Merge "Effect: benchmark the effect process" into tm-devAndy Hung
2022-05-05audio VTS: Fix handling of ULTRASOUND sourcesMikhail Naganov
When opening a stream on an ultrasound input (AUDIO_INPUT_FLAG_ULTRASOUND), the source type AUDIO_SOURCE_ULTRASOUND must be used. Bug: 231275185 Test: atest VtsHalAudioV7_0TargetTest Test: atest VtsHalAudioV7_1TargetTest Change-Id: Ib1fb5b8218eb0c52edf31789fa937c0a8b6c5082 Merged-In: Ib1fb5b8218eb0c52edf31789fa937c0a8b6c5082 (cherry picked from commit 1ce9d5488ab1ebb885d49f9b15eecedf67be5e09)
2022-05-04Effect: benchmark the effect processAndy Hung
Required for Spatializer tuning. Test: adb shell dumpsys media.audio_flinger Bug: 228862341 Change-Id: I59f3b35c9cdd1e45e9afc79cbf9aac30a5decd67
2022-05-03Merge TP1A.220422.001Deyao Ren
Change-Id: Ic995758f9abfaf9d0ac14cfe1d182387f988e42c
2022-04-23VTSHalAudio: Increase test timeout for V6, V7.x to 10 minutesMikhail Naganov
TV devices can list a lot of configurations and have low performing CPUs which causes the test to run for a significant amount of time. From b/229824670 it seems that 10 minutes should be enough. Bug: 229824670 Test: atest VtsHalAudioV6_0TargetTest Test: atest VtsHalAudioV7_0TargetTest Test: atest VtsHalAudioV7_1TargetTest Change-Id: Id7fa8eaa98bf2437fd1f676b9e5a7290df260fbd (cherry picked from commit 0b9b03eb710e7bcf4b2b2cf4489777e3c321b95f) Merged-In: Id7fa8eaa98bf2437fd1f676b9e5a7290df260fbd
2022-04-22Merge TP1A.220414.003Scott Lobdell
Change-Id: Id8894d5b946744d159e41f802b49bc770b28e4b5
2022-04-18V1 is the latest version of android.media.audio.common.typesJiyong Park
As part of the AIDL API freeze for TM, the V1 of android.media.autio.common.types was frozen. As a result, unversioned reference to the interface now refers to the V2 of the interface, yet to be frozen. This causes ODR violation where V1 and V2 of the interfaces are both used in the platform. To fix that, replaced the unversioned reference explicitly with the reference to V1. Bug: 225941299 Test: m Change-Id: I8c57c730bebfe88b182d42a4bb8acea32ac4aee8
2022-04-12audio: Require exact implementation version match am: 7c92256c1a am: ↵Mikhail Naganov
541eb4099c am: 5571021c52 Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/2058922 Change-Id: I230abccbbd62b6dbb3cafead89ddfea5ff050154 Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-04-12audio: Require exact implementation version matchMikhail Naganov
Align the behavior of minor version mismatch with the behavior of major version mismatch. For example, trying to run VTS test intended for V7.0 on a device with V7.1 yields no results, similar to what happens when running a V6.0 test on V7.0 device. This is done to avoid test failures when the device uses features added by V7.1 in the APM XML config. Bug: 227150535 Test: atest VtsHalAudioV7_0TargetTest Test: atest VtsHalAudioV7_1TargetTest Change-Id: I8ad6595a221f0bc9aedea057f27a75c172954da5
2022-04-08Merge TP1A.220404.001Scott Lobdell
Change-Id: I3bce78ab5d441ef9e6c038cf7ebea0adcc41d47e
2022-03-31Freeze AIDL APIs for TMJiyong Park
Bug: 225941299 Test: m Change-Id: Ie41cc0797710f813f92c65c387f247c7806d8394
2022-03-25Merge TP1A.220321.002Scott Lobdell
Change-Id: If51d1324897593e6bb61bf4795bc157004c10083
2022-03-15Merge "audio: Add OWNERS to aidl folder" am: f325a1756c am: 508ef6caa5 am: ↵Mikhail Naganov
c39ae7b60b Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/2025328 Change-Id: Idaf88f9cd251aaa053db4fa88b389518d94530bf
2022-03-14audio: Add OWNERS to aidl folderMikhail Naganov
Bug: 205884982 Test: N/A Change-Id: I9f49d2a9c670c7bbf45dd00d262eff6d445679ea
2022-03-11Merge TP1A.220225.003Scott Lobdell
Change-Id: Iad9e960e034127e3320f78d2eadd23e36300b10c