Commit graph

1232 commits

Author SHA1 Message Date
Eric Laurent
040984fd44 Audio HAL V7.1: Add latency mode APIs
Add APis for controlling the latency mode on an output stream.
Latency mode control is optional but mandated if spatial audio with
head tracking is supported over Bluetooth classic audio link.

Bug: 187446271
Test: m android.hardware.audio@7.1-impl
Change-Id: I363db3bf7f7b6439e326d0f6f4becc10b3947e7d
2022-01-27 21:05:47 +01:00
Mikhail Naganov
9b5dcd32aa Merge changes from topic "b-214426419-hal-v7_1"
* changes:
  Audio HAL V7.1: Update VTS
  Audio HAL V7.1: Update the default implementation
  Audio HAL V7.1: Interfaces & types
2022-01-26 18:57:31 +00:00
Treehugger Robot
0e19cd154f Merge "audio VTS: Update SetConnectedStateInvalidDeviceAddress" am: 3812519bc1 am: 9f7d0a7f55 am: f0f4df7c2c am: b79dbd949e
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/1959939

Change-Id: I68d653ddce2cb901742fb01dc206b41b4ea8f5b7
2022-01-25 21:18:28 +00:00
Treehugger Robot
b79dbd949e Merge "audio VTS: Update SetConnectedStateInvalidDeviceAddress" am: 3812519bc1 am: 9f7d0a7f55 am: f0f4df7c2c
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/1959939

Change-Id: I812ee096e0800c16901c7b5577376f7b5e48e959
2022-01-25 21:06:36 +00:00
Mikhail Naganov
4993240b9c audio VTS: Update SetConnectedStateInvalidDeviceAddress
Allow IDevice.setConnectedState to return NOT_SUPPORTED
when invalid device address is passed in.

Bug: 214426419
Test: atest VtsHalAudioV7_0TargetTest
Change-Id: I5084cbeedc10696e215c8decc235433849c3bfce
2022-01-25 02:29:15 +00:00
Mikhail Naganov
40fde0bc07 Audio HAL V7.1: Update VTS
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-25 01:24:52 +00:00
Mikhail Naganov
7d01538eec Audio HAL V7.1: Update the default implementation
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-25 01:24:52 +00:00
Mikhail Naganov
a0cd944914 Audio HAL V7.1: Interfaces & types
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-25 01:24:52 +00:00
Treehugger Robot
395e94b74b Merge "VTSHalAudio: Increase test timeout for V6 and V7" am: 11a4d832fe am: d968376429 am: e37cf3e025 am: cb4870847d
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/1957459

Change-Id: I89f90463debc6d77053f0ad5ace5ebd7d6596399
2022-01-24 19:01:41 +00:00
Treehugger Robot
cb4870847d Merge "VTSHalAudio: Increase test timeout for V6 and V7" am: 11a4d832fe am: d968376429 am: e37cf3e025
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/1957459

Change-Id: I5024d838f690668faa54d551b300156994437811
2022-01-24 18:41:24 +00:00
Mikhail Naganov
57633e5a78 VTSHalAudio: Increase test timeout for V6 and V7
V6 and V7 use actual device audio configuration
when testing I/O streams functionality. On low-end
TV devices this can cause the test to run for
significant time due to lower CPU speed and the
amount of multichannel configurations.

From testing on real devices, the timeout value
of 5 minutes seems to be adequate.

Bug: 211945822
Test: atest VtsHalAudioV6_0TargetTest
Change-Id: Ie233e014f9f3650f58319c4d5f5a836cfdea87ba
2022-01-21 21:27:34 +00:00
Treehugger Robot
9b865ed322 Merge "audio: Add AIDL definitions for Playback/RecordTrackMetadata" am: f96d2ef9b6 am: 6fc603725c am: 057468476e
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/1936041

Change-Id: I22017d09cc8b00a6573eacb4a5726c10965851eb
2022-01-07 16:16:30 +00:00
Josh Wu
73cddd17b5 audio: Add AIDL definitions for Playback/RecordTrackMetadata
This is a temporary change for unblocking Bluetooth
audio AIDL development. When Audio AIDL gets
released officially, it should be overwritten.

Bug: 198812639
Test: m android.hardware.audio.common
Test: m check-vintf-all
Change-Id: Ia63135da4af4682e471e7de6b191b19e7a326a1e
Merged-In: I7064c3819d4c8e61981542ca2ccc52ca992a4ef8
2022-01-06 06:32:36 +00:00
Francois Gaffie
b23ec019ce AudioPolicy Engine: update schema for optional attributes of criterion types
The wrapping of mutli bit audio devices on 64 bits requires an adaptation,
adding the android value associated to the bitfield allow to
translate android value to / from bitfield inclusive criterion type.

Test: make

Signed-off-by: Francois Gaffie <francois.gaffie@renault.com>
Change-Id: I1bf31c6bf6c57c9b79f0d5751601aa77780f1f80
2021-12-17 14:09:04 +01:00
Mikhail Naganov
571cc78179 Merge "audio VTS: Consider only attached devices for stream tests" am: 1323e4bd90 am: 384ecfa68e am: d511b36e35 am: 79418d5eb7
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/1895277

Change-Id: I6cb3024221806a11129f8a077b8964a0a118cc9e
2021-11-22 18:22:54 +00:00
Mikhail Naganov
79418d5eb7 Merge "audio VTS: Consider only attached devices for stream tests" am: 1323e4bd90 am: 384ecfa68e am: d511b36e35
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/1895277

Change-Id: If742993c606e2577fc08ddea18cde2176099ea9e
2021-11-22 18:11:12 +00:00
Mikhail Naganov
3483b0ad7e audio VTS: Consider only attached devices for stream tests
V6 and V7 use the audio policy configuration file for generating
the set of test profiles. The generator must only take into
account profiles of mix ports that are routed to device ports of
attached devices. Otherwise the HAL can rightfully refuse
to create a stream for the profile when the device isn't attached.

Bug: 205808571
Test: atest HalAudioV6_0GeneratorTest
Test: atest HalAudioV7_0GeneratorTest
Test: atest VtsHalAudioV6_0TargetTest
Test: atest VtsHalAudioV7_0TargetTest
Change-Id: I798f978c1c0bc32831c20e4b08338b462d8eea16
2021-11-19 22:25:19 +00:00
Carter Hsu
76fe18d229 Merge "audio: Support 64bit configuration on 32+64bit compatible OS" am: f665b8fa86 am: 66cfe34ef4 am: 0e98137981 am: e3d00ca753
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/1891181

Change-Id: Ib2580f903900723f4408ed59b4d08a4cad488c56
2021-11-17 06:13:09 +00:00
Carter Hsu
e3d00ca753 Merge "audio: Support 64bit configuration on 32+64bit compatible OS" am: f665b8fa86 am: 66cfe34ef4 am: 0e98137981
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/1891181

Change-Id: I636d282b4bc1695ba05da24fd96b8b546594c28a
2021-11-17 05:54:29 +00:00
Carter Hsu
150dded787 audio: Support 64bit configuration on 32+64bit compatible OS
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-16 00:44:36 +00:00
Treehugger Robot
16db22ab79 Merge "Fix the integration issue for HAL 2.2" am: c4718b793c am: 5e070c733a am: ee5538cb27 am: dda57e13d1
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/1881111

Change-Id: Idb9763abf1aa5c846cff4c109f122c040bb2988a
2021-11-12 13:41:43 +00:00
Treehugger Robot
dda57e13d1 Merge "Fix the integration issue for HAL 2.2" am: c4718b793c am: 5e070c733a am: ee5538cb27
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/1881111

Change-Id: I3f78f2b105aa1df68bec2b3448ebd33d6f04dc12
2021-11-12 13:28:31 +00:00
Treehugger Robot
c4718b793c Merge "Fix the integration issue for HAL 2.2" 2021-11-12 12:53:17 +00:00
Alice Kuo
95ba6a2181 Fix the integration issue for HAL 2.2
Bug: 150670922
Bug: 197297498
Test: A2DP & LE aduio stream works well with HIDL 2.1/2.2
Change-Id: I64113dd4a229874b2d17ae71d088abafd8197cfd
2021-11-09 22:56:30 +08:00
Treehugger Robot
0b086e4af4 Merge "audio: Fix handling of dynamic profiles in VtsHalAudioV7_0TargetTest" am: 8d27f7c7da am: 35f98d3e91 am: e3224e4f76 am: bfaac30040 am: 3e1e44e264
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/1880608

Change-Id: I6e6201fc70f5a9db1e4ac2ec1440795b17470b7a
2021-11-04 11:24:34 +00:00
Treehugger Robot
3e1e44e264 Merge "audio: Fix handling of dynamic profiles in VtsHalAudioV7_0TargetTest" am: 8d27f7c7da am: 35f98d3e91 am: e3224e4f76 am: bfaac30040
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/1880608

Change-Id: Idceac72398e7f998502ce4f56e8f100f5994aa90
2021-11-04 11:01:47 +00:00
Mikhail Naganov
adf84c03b8 audio: Fix handling of dynamic profiles in VtsHalAudioV7_0TargetTest
The profiles generator wasn't loading correctly from the Audio
Policy Manager config file profiles with unpopulated attributes,
which is typical for dynamic profiles.

Bug: 204314749
Test: atest HalAudioV7_0GeneratorTest
Change-Id: I514a4e03da165cacb5dbaaa16470130895681484
2021-11-03 21:01:16 +00:00
Mikhail Naganov
32a8ef3d8e audio: Add AIDL definitions for Playback/RecordTrackMetadata
These types are used by I/O streams of the Audio HAL and
also by other HALs, so they are placed into 'a.h.audio.common'
types-only package.

Bug: 198812639
Test: m android.hardware.audio.common
Test: m check-vintf-all
Change-Id: I7064c3819d4c8e61981542ca2ccc52ca992a4ef8
2021-10-27 14:10:37 -07:00
Keun young Park
ab35e0a3d0 Expose HIDL HALs to car framework apex
- all HALs also get //apex_available:platform as HAL should
  be available for platform

Bug: 192665266
Test: build
Change-Id: Ic6781447628761a8e8a9aa31e473dfc340af9989
2021-10-07 23:05:53 +00:00
Treehugger Robot
ad4526287e Merge "Backfill owner information for VTS module VtsHalAudioPolicyV1_0TargetTest." am: f3ea9e1c94 am: d2a2202113 am: fbb330cdb7 am: 1cc2f83b59 am: b8336a576b
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/1814064

Change-Id: I6a6894c865f48b8846bcd6d1ffc1baab15a96456
2021-09-09 05:33:55 +00:00
Treehugger Robot
b8336a576b Merge "Backfill owner information for VTS module VtsHalAudioPolicyV1_0TargetTest." am: f3ea9e1c94 am: d2a2202113 am: fbb330cdb7 am: 1cc2f83b59
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/1814064

Change-Id: I60d6cdd0226504825eaefb38ea8f5b8e7c154dd4
2021-09-09 05:10:21 +00:00
Treehugger Robot
d2a2202113 Merge "Backfill owner information for VTS module VtsHalAudioPolicyV1_0TargetTest." am: f3ea9e1c94
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/1814064

Change-Id: I549e3b49267fbe4321073bf0bf29921fae61c1da
2021-09-09 04:38:53 +00:00
Treehugger Robot
f3ea9e1c94 Merge "Backfill owner information for VTS module VtsHalAudioPolicyV1_0TargetTest." 2021-09-09 04:26:30 +00:00
Treehugger Robot
8a15c9314a Merge "Backfill owner information for VTS module VtsHalAudioEffectV6_0TargetTest." am: a5197a42d4 am: 35d694b3e6 am: 0744cdf7ac am: c48b59a164 am: 3355702c32
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/1814063

Change-Id: I7feb058f22a9e5b4370fa98ecb0b318d2a13fc3d
2021-09-09 03:18:49 +00:00
Treehugger Robot
3355702c32 Merge "Backfill owner information for VTS module VtsHalAudioEffectV6_0TargetTest." am: a5197a42d4 am: 35d694b3e6 am: 0744cdf7ac am: c48b59a164
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/1814063

Change-Id: I7617c846b4438faece74397e0d7cb21e9292b652
2021-09-09 03:03:25 +00:00
Treehugger Robot
35d694b3e6 Merge "Backfill owner information for VTS module VtsHalAudioEffectV6_0TargetTest." am: a5197a42d4
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/1814063

Change-Id: I0d0f96422a14f5acdc83de580e605800fc8ab1ac
2021-09-09 02:12:03 +00:00
Treehugger Robot
a5197a42d4 Merge "Backfill owner information for VTS module VtsHalAudioEffectV6_0TargetTest." 2021-09-09 01:56:08 +00:00
Yiming Pan
7716a06508 Merge "Backfill owner information for VTS module VtsHalAudioV6_0TargetTest." am: 86e736283b am: fd3c91e19c am: ea0f857a55 am: 27d1fb72a9 am: 74b121c32f
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/1814068

Change-Id: I66ea58bc1db7cba06a89b0d5d853b90cb5e885ec
2021-09-09 01:33:15 +00:00
Yiming Pan
74b121c32f Merge "Backfill owner information for VTS module VtsHalAudioV6_0TargetTest." am: 86e736283b am: fd3c91e19c am: ea0f857a55 am: 27d1fb72a9
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/1814068

Change-Id: I97909ec55faf79c676feb8347eebd0aa8fe3f1c6
2021-09-09 01:18:32 +00:00
Yiming Pan
fd3c91e19c Merge "Backfill owner information for VTS module VtsHalAudioV6_0TargetTest." am: 86e736283b
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/1814068

Change-Id: I5d66345749cff4df2faf38964c177a9829785588
2021-09-09 00:39:39 +00:00
Yiming Pan
86e736283b Merge "Backfill owner information for VTS module VtsHalAudioV6_0TargetTest." 2021-09-09 00:20:43 +00:00
Yiming Pan
56ba9d39fd Backfill owner information for VTS module VtsHalAudioV6_0TargetTest.
Each VTS module is required to have OWNERS file. The ownership is based on
go/vts-owners. For more information about ownership policy, please visit
go/xts-owners-policy.

Test: Tree Hugger
Bug: 143903671
Change-Id: I743c12b239732c85cecb421b4b4ee4ebcf36074a
2021-08-30 12:57:51 -07:00
Yiming Pan
72ff6a327f Backfill owner information for VTS module VtsHalAudioPolicyV1_0TargetTest.
Each VTS module is required to have OWNERS file. The ownership is based on
go/vts-owners. For more information about ownership policy, please visit
go/xts-owners-policy.

Test: Tree Hugger
Bug: 143903671
Change-Id: If490f3e7ac54a9ea7447c2a9c39e54263305e1c0
2021-08-30 12:57:10 -07:00
Yiming Pan
e1bd199f63 Backfill owner information for VTS module VtsHalAudioEffectV6_0TargetTest.
Each VTS module is required to have OWNERS file. The ownership is based on
go/vts-owners. For more information about ownership policy, please visit
go/xts-owners-policy.

Test: Tree Hugger
Bug: 143903671
Change-Id: Ic69622eb6b1c99d145b12d6250e3b04daf0294cf
2021-08-30 12:57:01 -07:00
Mikhail Naganov
e9f41f1fff Move common audio AIDL types to audio.media.audio.common
Since tests depend statically on libaudiofoundation,
they also need to depend on the generated interfaces code,
which contains vtables for interface classes.

Update 'sthal_cli_3' test app.

Bug: 188932434
Test: m HalAudioV6_0GeneratorTest
Test: m sthal_cli_3
Change-Id: Ifb8f81d02764f7710ce207603aa6fe2d20123e89
2021-08-23 17:43:20 -07:00
Andy Hung
9ef0cdad00 Merge "Remove libaudioclient from vendor" am: 0f23937288 am: 4df56a5449 am: 789c5284c9 am: 23569ce80e am: 4dfbfdcd79
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/1801733

Change-Id: I97366381bcfeb42bad1e38bb002970951c71d9b0
2021-08-20 17:04:55 +00:00
Treehugger Robot
07a3c8d98b Merge "Provide defaults for android.hardware.audio@7.0-impl" am: 9124807755 am: 03e3cb179a am: ef4c911657 am: d9fa71397a am: 95060bc08f
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/1803397

Change-Id: I3342c6fa2f1ac37968c243d0b25573b7a9e68fe2
2021-08-20 17:04:47 +00:00
Andy Hung
4dfbfdcd79 Merge "Remove libaudioclient from vendor" am: 0f23937288 am: 4df56a5449 am: 789c5284c9 am: 23569ce80e
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/1801733

Change-Id: I038609d3dca5ed207bc1c69a8e4c40078d4d1685
2021-08-20 16:48:09 +00:00
Treehugger Robot
95060bc08f Merge "Provide defaults for android.hardware.audio@7.0-impl" am: 9124807755 am: 03e3cb179a am: ef4c911657 am: d9fa71397a
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/1803397

Change-Id: Id7bef815e74ea1909f6128215ee7743c2219400a
2021-08-20 16:47:51 +00:00
Andy Hung
4df56a5449 Merge "Remove libaudioclient from vendor" am: 0f23937288
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/1801733

Change-Id: Ib8b74771d2e7131a6bcc593312bee23acebe93fd
2021-08-20 16:05:28 +00:00