Commit graph

2166 commits

Author SHA1 Message Date
Shunkai Yao
89ec63ed09 Implement AIDL effect IFacotry::queryProcessing
Bug: 281572768
Test: atest --test-mapping hardware/interfaces/audio/aidl/vts:presubmit
Change-Id: I0166786d531437ef52690b92067766879b043a1d
2023-05-12 14:36:23 +00:00
Mikhail Naganov
ba65d8a948 audio VTS: Update 7.0/PolicyConfig
The call to instantiate PolicyConfig was updated
in Iced9d665d018853c4b2a50f4471a545af7bf60bb, however
the version of PolicyConfig class for HIDL HAL 7.x
was not updated accordingly

Bug: 205884982
Bug: 281450557
Test: atest VtsHalAudioV7_0TargetTest
Test: atest HalAudioV7_0GeneratorTest
(cherry picked from https://android-review.googlesource.com/q/commit:a273cdde847a627465458f971f88fa9ce07d4731)
Merged-In: Ic7ed6b186e1d0f1ff853f84ad962c1e4acf17a68
Change-Id: Ic7ed6b186e1d0f1ff853f84ad962c1e4acf17a68
2023-05-09 16:00:54 +00:00
Mikhail Naganov
85da71a9b5 audio VTS: Update PolicyConfig after AudioPolicyConfig
Make necessary changes to use updated AudioPolicyConfig class.

Bug: 205884982
Test: m VtsHalAudioV6_0TargetTest
Test: atest HalAudioV6_0GeneratorTest
(cherry picked from https://android-review.googlesource.com/q/commit:33a35b5ffbbcbcf8a41d70a8af807d6c16f332c9)
Merged-In: Iced9d665d018853c4b2a50f4471a545af7bf60bb
Change-Id: Iced9d665d018853c4b2a50f4471a545af7bf60bb
2023-05-02 18:14:43 +00:00
Shunkai Yao
51fd9e9e7d Merge "Remove Descriptor proxy field from individual effect" into udc-dev 2023-05-02 17:55:58 +00:00
Shunkai Yao
db026a8ca0 Remove Descriptor proxy field from individual effect
This field should be filled by IFactory implementation

Bug: 271500140
Test: atest --test-mapping hardware/interfaces/audio/aidl/vts:presubmit
Change-Id: I96203b8cd037fd81b0b1d88fc5ca9915df02a919
2023-05-01 19:07:05 +00:00
Jiabin Huang
b811015579 AHAL: add more comment for IModule.disconnectExternalDevice
Bug: 277955540
Test: TH
(cherry picked from https://android-review.googlesource.com/q/commit:cf210c83b2d29882aa0144a8e52af0d460628b6e)
Merged-In: I0d6a73884ab4bcfec62da45124024e8680155144
Change-Id: I0d6a73884ab4bcfec62da45124024e8680155144
2023-04-28 17:10:05 +00:00
Vlad Popa
91dc5573f2 Merge "CSD: Load the ISoundDoseFactory dynamically" into udc-dev 2023-04-27 19:01:49 +00:00
Vlad Popa
b742cdf2a0 CSD: Load the ISoundDoseFactory dynamically
Also removed the default implementation of the ISoundDoseFactory which
only provides a dummy SoundDose object. It is better to fall back to the
framework MEL.

Test: manual, logs
Bug: 272260521
Change-Id: I3b49c9ae4af7c4eafaef46de3fc90aa05bd819c4
2023-04-27 10:58:46 +02:00
Shunkai Yao
57f771d49d Fix Visualizer and Volume type UUID
Bug: b/279432911
Test: atest --test-mapping hardware/interfaces/audio/aidl/vts:presubmit
Change-Id: I3e7d145aa37fb67d78cf05c06da22f74c0ea07ad
2023-04-26 18:49:51 +00:00
Treehugger Robot
43a6934217 Merge "Add EventFlag for effect HAL thread processing" am: fe4b88ab73 am: b91c54705b am: 9bab6aa527
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/2529223

Change-Id: Iae1fb8b92e5336073cf00df4b74c7d4b6a0c516d
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-04-13 18:02:47 +00:00
Treehugger Robot
2e10b87f4a Merge "AHAL: use PCM_FORMAT_INVALID as the termination of format array." am: d10869b255 am: 3c7da0cf68 am: ff4d1519d2
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/2534999

Change-Id: I23f3ae5779ccd75a1ab0d47129d64945f99d5f3a
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-04-13 17:59:49 +00:00
Treehugger Robot
fe4b88ab73 Merge "Add EventFlag for effect HAL thread processing" 2023-04-13 16:57:44 +00:00
jiabin
768c6f94d6 AHAL: use PCM_FORMAT_INVALID as the termination of format array.
Bug: 266216550
Test: make
Change-Id: Ibe2056eb4fdecb14c3e25daa3dbdd769d6433136
2023-04-12 23:46:55 +00:00
Shunkai Yao
41888a2f07 Add EventFlag for effect HAL thread processing
Bug: 261129656
Test: atest --test-mapping hardware/interfaces/audio/aidl/vts:presubmit

Change-Id: Ibe6052a8c2a182b33e6fe727b8606431dd2f5355
2023-04-11 00:10:50 +00:00
Alex Buynytskyy
ec1198d941 UpsideDownCake is now 34
Ignore-AOSP-First: UpsideDownCake Finalization
Bug: 275409981
Test: build
Change-Id: I832ab7a8b5445ba85e27bbcf5be64906bfa0e5be
2023-04-07 23:41:20 +00:00
Mikhail Naganov
7b2d12b1f7 audio: Clarify profiles management for external devices
Clarify what should happen to mix port profiles after
connection of an external device. Add a test to verify
this behavior.

Also, add an XML file for the test runner for
VtsHalAudioCoreTargetTest.

Bug: 273252382
Test: atest VtsHalAudioCoreTargetTest
Change-Id: I3381dd29c5922bf31fa3a8ae6fa273597e8333a1
Merged-In: I3381dd29c5922bf31fa3a8ae6fa273597e8333a1
2023-03-30 20:32:00 -07:00
Mikhail Naganov
d5536d9ac6 audio: Add some utility methods, improve logging
Add 'isDefaultAudioFormat' to Utils.h.

Print the module type in 'setModuleDebug'.

Align 'suggestDeviceAddressTag' with framework code.

Bug: 273252382
Test: m
Change-Id: I0248d2e866522a63a745d4af6132b7d2b6a01564
Merged-In: I0248d2e866522a63a745d4af6132b7d2b6a01564
2023-03-30 20:32:00 -07:00
Mikhail Naganov
fe09942d2a audio: Clarify profiles management for external devices
Clarify what should happen to mix port profiles after
connection of an external device. Add a test to verify
this behavior.

Also, add an XML file for the test runner for
VtsHalAudioCoreTargetTest.

Bug: 273252382
Test: atest VtsHalAudioCoreTargetTest
Change-Id: I3381dd29c5922bf31fa3a8ae6fa273597e8333a1
2023-03-30 12:25:49 -07:00
Mikhail Naganov
04b2cdba73 audio: Add some utility methods, improve logging
Add 'isDefaultAudioFormat' to Utils.h.

Print the module type in 'setModuleDebug'.

Align 'suggestDeviceAddressTag' with framework code.

Bug: 273252382
Test: m
Change-Id: I0248d2e866522a63a745d4af6132b7d2b6a01564
2023-03-30 12:25:49 -07:00
Treehugger Robot
014a8dd2c5 Merge "DynamicsProcessing: Validate config params based on ranges advertised" am: d14815472d am: 7449c3da5b am: 30366e7ad9
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/2499516

Change-Id: I02504abb71fe25f621d81976934c090211c33c39
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-03-30 17:29:42 +00:00
Treehugger Robot
d14815472d Merge "DynamicsProcessing: Validate config params based on ranges advertised" 2023-03-30 04:03:07 +00:00
Treehugger Robot
5f6d8f92df Merge "Add utils for checking range limits of effect config params" am: a4ccb03efd am: a24d05e852 am: 2b4c953fae
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/2510455

Change-Id: Iee8727075768543788569babffcf0a8158ee4975
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-03-29 05:05:19 +00:00
Treehugger Robot
a4ccb03efd Merge "Add utils for checking range limits of effect config params" 2023-03-29 03:38:28 +00:00
Ram Mohan
afdf90b679 DynamicsProcessing: Validate config params based on ranges advertised
Bug: 272195502
Test: atest VtsHalDynamicsProcessingTargetTest

Change-Id: I05233c1e56cc35c4936f0a36e92aaf7a12dda49f
2023-03-28 21:08:51 +05:30
Ram Mohan
9c47719bf7 Add utils for checking range limits of effect config params
Bug: 272195502
Test: Build

Change-Id: I1ff5af7d25e9410c58f323b6d12dbe6764e40073
2023-03-28 20:28:04 +05:30
Treehugger Robot
e1c6db15dc Merge "Audio : Fix ASAN crash in VTS test cases" am: 5e311b67f4 am: 5a3a0907ef am: 6a67f3ab6c
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/2508735

Change-Id: Ia8795292500e706da3bb61bdb089227909802dff
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-03-28 07:18:07 +00:00
Shraddha Basantwani
b76f5abdcb Audio : Fix ASAN crash in VTS test cases
Effect Helper should not try to access min/max values of a tag
when it is not defined.

Bug: 271912230
Test: atest VtsHalAECTargetTest.cpp (with ASAN enabled)

Change-Id: Idf47a521fbd594c83ab0fc21f2750673652b3aee
2023-03-27 17:18:18 +05:30
Shunkai Yao
c23af93d56 Merge "AIDL effect: Effect factory add EffectProxy information in proxy" am: ff16dd1f7b am: a3e89e9f4e am: 7b7a074c16
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/2459230

Change-Id: I5fc72bfd25e0d8b13c8f2c1b4c5f9f91dacc7cf8
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-03-25 01:46:56 +00:00
Shunkai Yao
ff16dd1f7b Merge "AIDL effect: Effect factory add EffectProxy information in proxy" 2023-03-24 22:54:11 +00:00
Vlad Popa
ba2e505f40 CSD: Add VSR test annotation
Test: m
Bug: 248567177
Change-Id: Ie81669e87e8f7c4898d0ed02477d6661bc4676c5
2023-03-24 16:59:01 +00:00
jiabin
29e72cf30c AHAL: fix StreamUsb crash. am: fdee322c96 am: 1befadd762 am: 99e1788db0
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/2504016

Change-Id: Ia2af7dc363ab89f52eb7a25488678e16b8ffd98b
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-03-23 02:36:53 +00:00
jiabin
fdee322c96 AHAL: fix StreamUsb crash.
1. By default, the DriverUsb should be standby. When there is data
   transfer request, it will exit standby.
2. Initialize alsa device profile before reading device info.
3. Open the alsa device proxy after the preparation succeed.

Bug: 266216550
Test: atest VtsHalAudioCoreTargetTest
Change-Id: I1f0425036df176c52220320135079e7c98daa2d0
2023-03-22 22:16:13 +00:00
Jiabin Huang
91687e88b5 Merge "AHAL: fix USB HAL issues with reporting device capabilities." am: b3602ca092 am: abf4b3becc am: ada4a74c2c
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/2501017

Change-Id: I1bb0ad29b7c221d26115421aad8842cb6a8919ca
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-03-22 17:43:05 +00:00
Jiabin Huang
b3602ca092 Merge "AHAL: fix USB HAL issues with reporting device capabilities." 2023-03-22 16:18:49 +00:00
jiabin
118c261010 AHAL: fix USB HAL issues with reporting device capabilities.
1. The card and device must be specified before reading device info.
2. Map PcmType::FIXED_Q_8_24 to PCM_FORMAT_S24_LE.
   Map PcmType::INT_24_BIT to PCM_FORMAT_S24_3LE.

Bug: 266216550
Test: atest VtsHalAudioCoreTargetTest
Change-Id: Ib48538d01bc980524e2c4c5b221f6d7e479beba6
2023-03-21 23:07:40 +00:00
Shunkai Yao
4b3434f96e Update EffectUUID initialization
Avoid dynamic initialization global UUID variables

Bug: 271500140
Test: atest --test-mapping hardware/interfaces/audio/aidl/vts:presubmit
Change-Id: I7574c1fe1ba0aaff1d9d29a9eed10de1aef33806
2023-03-20 01:48:10 +00:00
Shunkai Yao
b1b8b68316 Merge "Update EffectUUID initialization" 2023-03-18 23:36:42 +00:00
Vlad Popa
429e51f4e7 Merge "CSD: rename get/setOutputRs2 to include upper bound" 2023-03-17 19:12:45 +00:00
Mikhail Naganov
fd0e4b68d5 Merge "Update visibility of libaudioserviceexampleimpl" am: 1120ee5603 am: f9199100ac am: 93c8497361
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/2490615

Change-Id: Icddae265b5c7e8b634079501bd1e8bc49e0caf91
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-03-17 18:45:14 +00:00
Shunkai Yao
f8be1acde7 Update EffectUUID initialization
Avoid dynamic initialization global UUID variables

Bug: 271500140
Test: atest --test-mapping hardware/interfaces/audio/aidl/vts:presubmit
Change-Id: I7574c1fe1ba0aaff1d9d29a9eed10de1aef33806
2023-03-17 18:16:22 +00:00
Mikhail Naganov
1120ee5603 Merge "Update visibility of libaudioserviceexampleimpl" 2023-03-17 16:55:05 +00:00
Vlad Popa
4d7aa9279b CSD: rename get/setOutputRs2 to include upper bound
RS2 represents an interval of power levels. This is why it is clearer to
specify upper bound in the naming to make it clear that we refer to the
upper limit which when exceeded will trigger a momentary exposure.

Test: atest VtsHalAudioCoreTargetTest
Bug: 273961110
Change-Id: If4e065deeedb32c3e5e81caf4cd6924fb5815dc0
Merged-In: If4e065deeedb32c3e5e81caf4cd6924fb5815dc0
2023-03-17 02:57:47 +01:00
Vlad Popa
34f4c1d5d7 CSD: rename get/setOutputRs2 to include upper bound
RS2 represents an interval of power levels. This is why it is clearer to
specify upper bound in the naming to make it clear that we refer to the
upper limit which when exceeded will trigger a momentary exposure.

Test: atest VtsHalAudioCoreTargetTest
Bug: 273961110
Change-Id: If4e065deeedb32c3e5e81caf4cd6924fb5815dc0
2023-03-16 19:37:18 +01:00
Mikhail Naganov
776e65e35f Update visibility of libaudioserviceexampleimpl
In order for vendors to be able to use this library
it needs to have public visibility.

Bug: 205884982
Test: m
Change-Id: Idd47c942ee1e97372047ec1b44bcd996d454e3e2
2023-03-15 09:29:16 -07:00
Xin Li
82e0eca1c4 Merge "Merge Android 13 QPR2" 2023-03-14 21:40:25 +00:00
Shunkai Yao
9dcf22d093 Merge "Add some Effect type UUID and offload indicater in common parameter" am: 54cec778ee am: 7062a4849b am: 3c7c189ae4
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/2485228

Change-Id: I2908c76ca911dbd985f0cbfba7d5116c6c938638
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-03-14 21:23:13 +00:00
Shunkai Yao
7062a4849b Merge "Add some Effect type UUID and offload indicater in common parameter" am: 54cec778ee
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/2485228

Change-Id: I830289ce7701f73956dad7f7b66440dcc8974a55
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-03-14 19:44:10 +00:00
Shunkai Yao
d30ff8fb80 Add some Effect type UUID and offload indicater in common parameter
Bug: 271500140
Test: atest --test-mapping hardware/interfaces/audio/aidl/vts:presubmit
Change-Id: I61ebf268600564cb5abddc90979070b675a85541
2023-03-14 16:07:25 +00:00
Treehugger Robot
b003b30bda Merge "audio: Put audio/aidl/common/include/Utils.h into 'aidl' NS" am: 7260130baf am: 99e5af4b2f am: 881ed49811
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/2480537

Change-Id: Icdfb08048b1a56772b14d88e090e1e57f2d36a00
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-03-13 12:31:38 +00:00
Treehugger Robot
99e5af4b2f Merge "audio: Put audio/aidl/common/include/Utils.h into 'aidl' NS" am: 7260130baf
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/2480537

Change-Id: If989453ea55808d193adca90d73b779605376831
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-03-10 23:08:37 +00:00