Commit graph

1319 commits

Author SHA1 Message Date
Jasmine Cha
b0a67561e6 audio: use binder threadpool am: d90c47420a am: 142ba0857b am: cc75285f2e
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/1986309

Change-Id: I77d258201a43d69555e6ac4bbba2831674f40958
2022-02-16 05:44:50 +00:00
Jasmine Cha
d90c47420a audio: use binder threadpool
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-16 10:07:57 +08:00
Mikhail Naganov
872beb16ee Make AUDIO_USAGE_NOTIFICATION_EVENT available to HALs am: a85cebb63e am: 783f8f14e2 am: 6ae5c189c2
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/1983828

Change-Id: Ibb5768f2e6ad8d7d2eba6caece5f7a495d7d2bd6
2022-02-14 18:34:05 +00:00
Mikhail Naganov
e6214078ba audio VTS: Fix HAL device management
Straighten out logic in DeviceManager for proper handling
of IPrimaryDevice and IDevice instances across all supported
HAL versions.

This fixes a recently introduced bug which was causing
the same HAL device to be opened twice in a row, and then closed
twice.

Bug: 218610286
Test: atest VtsHalAudioV7_0TargetTest
Test: atest VtsHalAudioV7_1TargetTest
Change-Id: I415cbadae9d325ac63160e49e5e638906c8c63fd
(cherry picked from commit 285c0a041c)
Merged-In: I415cbadae9d325ac63160e49e5e638906c8c63fd
2022-02-12 00:35:19 +00:00
Mikhail Naganov
a85cebb63e Make AUDIO_USAGE_NOTIFICATION_EVENT available to HALs
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-12 00:03:49 +00:00
Mikhail Naganov
ec8ef38ad9 audio: Add android.hardware.audio[.common]@7.1-util modules
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 fa4a4f8da7)
Merged-In: Icc5a354cdc2e377a2a2424c28377bcb0ba05bf4e
2022-02-12 00:03:49 +00:00
Carter Hsu
ff62b259f8 audio: add Ultrasound materials to 7.1
Bug: 200256985
Test: build pass
Signed-off-by: Carter Hsu <carterhsu@google.com>
Change-Id: I50ba1272c0b29e482532010f1aca0b6ec83e925c
(cherry picked from commit bb2fe3f4d5)
Merged-In: I50ba1272c0b29e482532010f1aca0b6ec83e925c
2022-02-11 23:16:53 +00:00
Mikhail Naganov
4a016add95 audio: Remove IStreamIn@7.1
This has turned out to be an empty interface. By removing
it we save about 100 kB in the interface code.

Bug: 217752112
Test: atest VtsHalAudioV7_1TargetTest
Change-Id: I2522653600a254ddcf2c4eac8bed1df69ac11d3d
(cherry picked from commit 893ea21681)
Merged-In: I2522653600a254ddcf2c4eac8bed1df69ac11d3d
2022-02-10 17:45:31 +00:00
Mikhail Naganov
9307992466 audio: Add IDevice.setConnectedState_7_1 method
This is an updated version of IDevice.setConnectedState which
accepts a full AudioPort so that additional data like extra
audio descriptors can be passed to the audio HAL.

Bug: 211601178
Test: atest VtsHalAudioV7_1TargetTest
Change-Id: Id746caa32122dabfb83feb5b515bed7717bcb67c
(cherry picked from commit 533f78f411)
Merged-In: Id746caa32122dabfb83feb5b515bed7717bcb67c
2022-02-10 17:45:21 +00:00
Mikhail Naganov
22dc9b9aa4 audio: Add recommended mute duration attribute to APM XSD
Add 'recommendedMuteDurationMs' optional attribute to 'mixPort'
element. This attribute specifies customized mute duration while
switching device's audio path to avoid truncated sound at the
beginning.

The framework is already aware of this attribute, only need
to allow it in the XSD.

Bug: 183344508
Bug: 197823000
Test: m
CTS-Coverage-bug: 215647214
Change-Id: I3be36009d1b5db218c846efe96f078e858283992
(cherry picked from commit b6800fc715)
Merged-In: I3be36009d1b5db218c846efe96f078e858283992
2022-02-10 17:45:13 +00:00
Andy Hung
87edc66e1f Audio: Add memory leak checking for HAL
$ adb shell setprop libc.debug.malloc.program android.hardware.audio.service
$ adb shell setprop libc.debug.malloc.options backtrace=8
$ adb shell setenforce 0
$ adb shell pkill audioserver
$ adb shell dumpsys media.audio_flinger

Test: Check the audio flinger dumpsys as above.
Bug: 186054996
Bug: 187462632
Change-Id: I2e8db14b816cc4cd7e1420c538505bf71fa58c97
(cherry picked from commit 8f836b9499)
Merged-In: I2e8db14b816cc4cd7e1420c538505bf71fa58c97
2022-02-10 17:44:56 +00:00
TreeHugger Robot
b2a9e07272 Merge "audio VTS: Fix HAL device management" 2022-02-10 17:24:22 +00:00
Keun-young Park
eeb724982d Merge "Adding AIDL version 2 of AudioControl HAL" 2022-02-10 05:01:57 +00:00
Mikhail Naganov
285c0a041c audio VTS: Fix HAL device management
Straighten out logic in DeviceManager for proper handling
of IPrimaryDevice and IDevice instances across all supported
HAL versions.

This fixes a recently introduced bug which was causing
the same HAL device to be opened twice in a row, and then closed
twice.

Bug: 218610286
Test: atest VtsHalAudioV7_0TargetTest
Test: atest VtsHalAudioV7_1TargetTest
Change-Id: I415cbadae9d325ac63160e49e5e638906c8c63fd
2022-02-10 04:31:15 +00:00
Francois Gaffie
5d7af1e971 Adding AIDL version 2 of AudioControl HAL
- Updated APIs to use PlaybackTrackMetadata (aka AudioAttributes)
instead of usage to get rid of usages list limitation.

- Add Gain Callback to notify unexpected gain changed from HAL
(as currently done for Audio Focus).

- Aggregate Callbacks within a unique IAudioControlCallback interface

Bug: b/218682011
Test: build

Signed-off-by: Francois Gaffie <francois.gaffie@renault.com>
Change-Id: If74d575fad3888b698250a8ec9a6918f7cb294d7
2022-02-09 08:17:14 -08:00
Mikhail Naganov
fa4a4f8da7 audio: Add android.hardware.audio[.common]@7.1-util modules
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-09 00:26:44 +00:00
Mikhail Naganov
9a30ec87a3 audio VTS: A follow-up to latency mode APIs tests
Provide instantiation statements for the new tests.

Bug: 210803914
Test: atest VtsHalAudioV7_1TargetTest
Change-Id: I4ed95be6e50a9dcd1362a87ec120e66abea659b6
2022-02-08 23:57:00 +00:00
Eric Laurent
16894f0e06 audio: add new enums for 7.1 HAL
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 5b8529a1da)
Merged-In: I9bfb937ece3a07a7844877de5f355ece1141f92d
2022-02-07 19:55:51 +00:00
Eric Laurent
ed7dfd5f35 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
(cherry picked from commit 040984fd44)
Merged-In: I363db3bf7f7b6439e326d0f6f4becc10b3947e7d
2022-02-07 19:54:41 +00:00
Carter Hsu
c588601a15 Merge "audio: add Ultrasound materials to 7.1" 2022-02-07 02:49:05 +00:00
Mikhail Naganov
563238913b 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
(cherry picked from commit 40fde0bc07)
Merged-In: Id3a99993bf2ee0c87d44f668d759f7c10db9a435
2022-02-05 00:44:59 +00:00
Mikhail Naganov
8140f5660a 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
(cherry picked from commit 7d01538eec)
Merged-In: Ic4c44d4ac9bbfa7b62695866b9aa7473658390b2
2022-02-05 00:44:17 +00:00
Mikhail Naganov
51a7e13849 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
(cherry picked from commit a0cd944914)
Merged-In: I3caa2fda2fb5d7d8e8292e23fb2cf0e32e05c146
2022-02-05 00:43:27 +00:00
TreeHugger Robot
9290c6f326 Merge "audio: Remove IStreamIn@7.1" 2022-02-04 20:25:14 +00:00
Eric Laurent
7fc5feab4f Merge "audio VTS: add tests for latency mode APIs" 2022-02-04 19:04:05 +00:00
Eric Laurent
bcfa0f45b9 audio VTS: add tests for latency mode APIs
Add test cases for latency mode control APIs in V7.1 VTS.

Bug: 210803914
Test: atest VtsHalAudioV7_1TargetTest
Change-Id: I22691f97a5c9b54f4fdec0c5cd2bd64486d0dd76
2022-02-04 11:27:16 +01:00
Carter Hsu
bb2fe3f4d5 audio: add Ultrasound materials to 7.1
Bug: 200256985
Test: build pass
Signed-off-by: Carter Hsu <carterhsu@google.com>
Change-Id: I50ba1272c0b29e482532010f1aca0b6ec83e925c
2022-02-04 10:08:07 +00:00
Roopa Sattiraju
d1e638a312 Merge "Adding bluetooth apex and min_sdk_version" am: 85d3fae9c5 am: 9793b79ce7 am: 08e6905ff5 am: 9b8d57f1b8
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/1971382

Change-Id: Ie0f0b8ce5b58f0a569bd8c1a080b021be627a15a
2022-02-04 03:10:44 +00:00
Roopa Sattiraju
9b8d57f1b8 Merge "Adding bluetooth apex and min_sdk_version" am: 85d3fae9c5 am: 9793b79ce7 am: 08e6905ff5
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/1971382

Change-Id: I185aa635544c1c90584e9279923a6541a56f2f5c
2022-02-04 02:57:20 +00:00
Mikhail Naganov
893ea21681 audio: Remove IStreamIn@7.1
This has turned out to be an empty interface. By removing
it we save about 100 kB in the interface code.

Bug: 217752112
Test: atest VtsHalAudioV7_1TargetTest
Change-Id: I2522653600a254ddcf2c4eac8bed1df69ac11d3d
2022-02-04 00:49:19 +00:00
Roopa Sattiraju
7455efc39a Adding bluetooth apex and min_sdk_version
Bug: 206121418
Test: Compile
Change-Id: I59dbd7a2b4758be4b90acfd419112e8b9e259219
2022-02-03 14:15:22 -08:00
Mikhail Naganov
7a8e9ac343 Merge "audio: Add IDevice.setConnectedState_7_1 method" 2022-02-01 20:52:49 +00:00
Mikhail Naganov
533f78f411 audio: Add IDevice.setConnectedState_7_1 method
This is an updated version of IDevice.setConnectedState which
accepts a full AudioPort so that additional data like extra
audio descriptors can be passed to the audio HAL.

Bug: 211601178
Test: atest VtsHalAudioV7_1TargetTest
Change-Id: Id746caa32122dabfb83feb5b515bed7717bcb67c
2022-01-31 22:43:51 +00:00
Eric Laurent
2553bd829b Merge "audio: add new enums for 7.1 HAL" 2022-01-31 21:01:59 +00:00
Mikhail Naganov
a792d555b2 Merge "audio: Add recommended mute duration attribute to APM XSD" 2022-01-31 19:49:30 +00:00
Mikhail Naganov
b6800fc715 audio: Add recommended mute duration attribute to APM XSD
Add 'recommendedMuteDurationMs' optional attribute to 'mixPort'
element. This attribute specifies customized mute duration while
switching device's audio path to avoid truncated sound at the
beginning.

The framework is already aware of this attribute, only need
to allow it in the XSD.

Bug: 183344508
Bug: 197823000
Test: m
CTS-Coverage-bug: 215647214
Change-Id: I3be36009d1b5db218c846efe96f078e858283992
2022-01-29 00:44:50 +00:00
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
Eric Laurent
5b8529a1da audio: add new enums for 7.1 HAL
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-27 21:05:04 +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
Treehugger Robot
03e3cb179a Merge "Provide defaults for android.hardware.audio@7.0-impl" am: 9124807755
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/1803397

Change-Id: Id4138b78fa392c99148950e8615ec2cbebed0dea
2021-08-20 16:05:13 +00:00
Andy Hung
0f23937288 Merge "Remove libaudioclient from vendor" 2021-08-20 15:48:02 +00:00
Roman Kiryanov
4c5752d903 Provide defaults for android.hardware.audio@7.0-impl
see aosp/1366502.

Bug: 196868480
Bug: 161485545
Test: presubmit
Signed-off-by: Roman Kiryanov <rkir@google.com>
Change-Id: Ie582038f2212fbf881497ed3db62ef04bac286f3
2021-08-19 17:59:03 -07:00
Andy Hung
de0d3df464 Remove libaudioclient from vendor
Test: compiles
Bug: 189371870
Change-Id: Ic96bbb0c370883866fac731ef5e6941c1994c7c6
2021-08-18 20:30:02 -07:00
Xin Li
e287df40b9 Merge sc-dev-plus-aosp-without-vendor@7634622
Merged-In: Ifa71accba7ecf2ab15980227a4413831cfceb187
Change-Id: I7fb44c6c578a51c8ad36649d20a46233fd9609ca
2021-08-14 06:30:57 +00:00
Treehugger Robot
68de233181 Merge "Backfill owner information for VTS module VtsHalAudioV2_0TargetTest" am: 635c0b8416 am: 989612a1b6 am: ae777d6d52 am: af2040a2b4 am: 0fcf430b60
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/1793835

Change-Id: I85625b79f5ff113519ecf54ee42cff0cccf97044
2021-08-13 22:06:41 +00:00
Treehugger Robot
0fcf430b60 Merge "Backfill owner information for VTS module VtsHalAudioV2_0TargetTest" am: 635c0b8416 am: 989612a1b6 am: ae777d6d52 am: af2040a2b4
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/1793835

Change-Id: I5c651d67a525623989f84792fdf7e7b670d4d9d0
2021-08-13 21:36:00 +00:00
Treehugger Robot
ae777d6d52 Merge "Backfill owner information for VTS module VtsHalAudioV2_0TargetTest" am: 635c0b8416 am: 989612a1b6
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/1793835

Change-Id: Ia49a8b36da4ca0cf4ef57cf8acdf23a512096dfb
2021-08-13 18:06:55 +00:00
Treehugger Robot
635c0b8416 Merge "Backfill owner information for VTS module VtsHalAudioV2_0TargetTest" 2021-08-13 17:37:57 +00:00
Yiming Pan
494d01a431 Backfill owner information for VTS module VtsHalAudioV2_0TargetTest
Owner information already exists. Add bug component information.

Test: Tree Hugger
Bug: 143903671
Change-Id: I7142c9dea2af4ae037a0244d7d306e401c1d5cfb
2021-08-13 09:30:58 -07:00
Kuowei Li
e3fe4153f5 audio: Allow SetAudioProperties to not be supported am: de829572f9 am: 4f21be2965 am: 2950416a76 am: 9ee709c323
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/1762588

Change-Id: I6c6ae7038c424eaf91e4f1ed7eac4bbab9e982a1
2021-07-23 21:47:40 +00:00
Kuowei Li
9ee709c323 audio: Allow SetAudioProperties to not be supported am: de829572f9 am: 4f21be2965 am: 2950416a76
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/1762588

Change-Id: Ice1083c4c6e5f5f924880f3464d961b5687fc2d2
2021-07-23 21:44:07 +00:00
Kuowei Li
2950416a76 audio: Allow SetAudioProperties to not be supported am: de829572f9 am: 4f21be2965
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/1762588

Change-Id: I8711fc885403a22d7a09fc51aeb3d6e69ef759ea
2021-07-23 21:28:20 +00:00