Treehugger Robot
1709c0e72a
Merge "audio HAL: Support for external device connections" am: eefac18b26
am: 62be00231e
am: ea913efbd4
am: dac39d4c69
...
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/2194135
Change-Id: Ib6f976417044ae41b56a90f4f8ce2696e6507a65
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-08-24 18:14:53 +00:00
Treehugger Robot
ea913efbd4
Merge "audio HAL: Support for external device connections" am: eefac18b26
am: 62be00231e
...
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/2194135
Change-Id: I9b72f28864edf14ec63bd80c1917d23a25580387
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-08-24 16:34:15 +00:00
Treehugger Robot
eefac18b26
Merge "audio HAL: Support for external device connections"
2022-08-24 15:01:49 +00:00
Xin Li
056da74605
Merge "Merge android13-tests-dev"
2022-08-23 23:07:05 +00:00
Mikhail Naganov
00603d14b3
audio HAL: Support for external device connections
...
Add methods 'IModule.connect/disconnectExternalDevice' which inform
audio HAL about connection / disconnection of an external
non-attached device. Add method 'getAudioRoutesForPort' to
retrieve only routes that include the specified port.
Update the behavior of 'getAudioPorts' and 'getAudioRoutes'
indicating that the result may change due to instantiation
of new device ports for connected external devices.
Clarify behavior of 'IModule.setAudioPortConfig' that it can not
work with device ports with no profiles.
Add debug flags structure 'ModuleDebug' and method
'IModule.setModuleDebug' to control the debugging aspects. VTS
tests use these flags to test HAL behavior which would otherwise
require human intervention.
Update the default implementation and VTS for the AIDL changes.
Bug: 205884982
Test: atest VtsHalAudioCoreTargetTest
Merged-In: Iad5f7009e283729206f88b6278c8992f7f8a92a2
Change-Id: Iad5f7009e283729206f88b6278c8992f7f8a92a2
2022-08-23 22:40:20 +00:00
Treehugger Robot
eb46983781
Merge changes from topic "upstream-audio-aidl-hal" am: 2468ff5608
am: 933e626ce7
am: 06bd2b0cff
am: 6881a2e9ce
...
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/2190590
Change-Id: I6fc34190ae71e19c6b56956f1ba9c1c10e6c81f0
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-08-22 22:01:02 +00:00
Jiyong Park
cf55b93e75
Explicitly depend on audio.common-V1 am: d25eddfd7d
am: a20627a17e
am: 13f2863da7
am: e2dba4d599
...
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/2190589
Change-Id: I87d18f2611e9aabd43219b70ec0d198d5d7e3ba5
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-08-22 22:01:01 +00:00
Mikhail Naganov
9b139c6fef
audio HAL: initial VTS tests am: e5d747e908
am: 4c6e690f4f
am: 29326f2ca5
am: c7fe9f1fde
...
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/2190588
Change-Id: I6ca23851fe4e92d2c870adde05ce17c10b400a32
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-08-22 22:00:59 +00:00
Mikhail Naganov
fd1c54dcb6
audio HAL: Minimal example implementation am: df5adfde15
am: 88a81f47c6
am: 09c9ec4195
am: 4d9b179925
...
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/2190587
Change-Id: I3b9a0209d69f9520067ea1863f62c412c670b758
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-08-22 22:00:57 +00:00
Mikhail Naganov
0ce63f6d67
audio HAL: Initial AIDL interfaces am: bd4013f179
am: cf54f19db5
am: e2ec1b9f0d
am: 23890bc388
...
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/2190586
Change-Id: Id648458d9109f3bc0a270129cfe381f385667571
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-08-22 22:00:53 +00:00
Treehugger Robot
06bd2b0cff
Merge changes from topic "upstream-audio-aidl-hal" am: 2468ff5608
am: 933e626ce7
...
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/2190590
Change-Id: I3300e891699abe434200fc0ef488565ff76476fb
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-08-22 21:09:27 +00:00
Jiyong Park
13f2863da7
Explicitly depend on audio.common-V1 am: d25eddfd7d
am: a20627a17e
...
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/2190589
Change-Id: I095e853974ec9e8a55b3ad2c9e8ed9ee4f330446
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-08-22 21:09:25 +00:00
Mikhail Naganov
29326f2ca5
audio HAL: initial VTS tests am: e5d747e908
am: 4c6e690f4f
...
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/2190588
Change-Id: I240c77c3bbdfc8828084bef12a38301f3ed7d4bd
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-08-22 21:09:23 +00:00
Mikhail Naganov
09c9ec4195
audio HAL: Minimal example implementation am: df5adfde15
am: 88a81f47c6
...
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/2190587
Change-Id: Icc0f640c601b84f5d5d393d865e4443a137cf355
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-08-22 21:09:20 +00:00
Mikhail Naganov
e2ec1b9f0d
audio HAL: Initial AIDL interfaces am: bd4013f179
am: cf54f19db5
...
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/2190586
Change-Id: Ia797c226ea5b59222d97fde71ef7fe6a29ae3b9d
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-08-22 21:08:49 +00:00
Jiyong Park
d25eddfd7d
Explicitly depend on audio.common-V1
...
Background:
android.hardware.audio.common was frozen in the upstream tm-dev.
Previously, the interface had only V1 (as the in-development version)
and it was in the VNDK. However, after the freeze, it will have V1 and
V2, and only V1 will remain in the VNDK, because we can't have multiple
versions of the same AIDL interface in VNDK (it's just waste of memory).
android.hardware.audio.core is a new AIDL interface that doesn't exist
in TM. It is also a member of VNDK and imports the audio.common
interface. So far, the import has been done without an explicit version
number (i.e. `imports: ["android.hardware.audio.common"]`). As a result,
V1 was imported before the freeze, and V2 (the latest) will be imported
after the freeze.
Problem:
audio.core depending on audio.common-V2 is NOT allowed since the former
is a member of VNDK, but the latter isn't. VNDK should form a closure.
We are actually hitting this:
```
> error: hardware/interfaces/audio/aidl/Android.bp:71:1: module
"android.hardware.audio.core-V1-ndk" variant
"android_vendor.Tiramisu_arm64_armv8-a_static" (created by module
"android.hardware.audio.core-V1-ndk-generator" (created by module
"android.hardware.audio.core_interface")): (native:vendor:vndk) should
not link to "android.hardware.audio.common-V2-ndk" (native:vendor):
VNDK-core must only depend on VNDK-core or VNDK-SP
```
To fix this, make the dependency to audio.common to be explicit about
the version. This change can't be uploaded to tm-dev as audio.core
doesn't exist there, and must be submitted before the AIDL APIs are
frozen there.
Bug: 225941299
Test: m
Merged-In: Iadc96d558d5c7431b0a2b0cbd28b99319a24ee44
Change-Id: Iadc96d558d5c7431b0a2b0cbd28b99319a24ee44
(cherry picked from commit cc489264af
)
2022-08-20 00:14:53 +00:00
Mikhail Naganov
e5d747e908
audio HAL: initial VTS tests
...
Tests basic functionality for enumerating
capabilities of an audio module, audio patches
creation, and opening of I/O streams.
Bug: 205884982
Test: atest VtsHalAudioCoreTargetTest
Merged-In: I7c7c3c7008f2fc43db1542455c74444a08e55534
Change-Id: I7c7c3c7008f2fc43db1542455c74444a08e55534
(cherry picked from commit 7abc70f908
)
2022-08-20 00:14:53 +00:00
Mikhail Naganov
df5adfde15
audio HAL: Minimal example implementation
...
Implements basic functionality for enumerating
capabilities of an audio module, audio patches
creation, and opening of I/O streams.
Bug: 205884982
Test: atest VtsHalAudioCoreTargetTest
Merged-In: Ie5d67e9192a598260e762ae9368f99592c8ad97e
Change-Id: Ie5d67e9192a598260e762ae9368f99592c8ad97e
(cherry picked from commit ecdc6ca8e8
)
2022-08-20 00:14:53 +00:00
Mikhail Naganov
bd4013f179
audio HAL: Initial AIDL interfaces
...
This adds basic support for enumerating capabilities
of an audio module, creation of patches, and opening of
I/O streams.
Bug: 205884982
Test: atest VtsHalAudioCoreTargetTest
Merged-In: Ib1ef13c95d338b6ef1bde7d87dcd675fc1d35e85
Change-Id: Ib1ef13c95d338b6ef1bde7d87dcd675fc1d35e85
(cherry picked from commit ee27478264
)
2022-08-20 00:14:53 +00:00
Jiyong Park
f4b5e7b993
Explicitly depend on V1 of android.media.audio.common.types
...
... for the same reason as cc489264af
Bug: 225941299
Test: m
Merged-In: I269d61c8c441b3db0832f5450f5e5a84a5989a99
Change-Id: I269d61c8c441b3db0832f5450f5e5a84a5989a99
(cherry picked from commit 446519a370
)
2022-08-20 00:14:53 +00:00
Xin Li
7406132b49
Merge android13-tests-dev
...
Merged-In: Ie372f74f3a52decce592181c7d65624f8ec03ed1
Change-Id: Ia81e24391de0d26737a5d65fbc5c8bb86bf03d5b
2022-08-17 16:37:46 -07:00
Mikhail Naganov
1ac4ee14fa
audio: Restrict the new VTS test for effects to T+ am: 978a0f9ea0
...
Original change: https://googleplex-android-review.googlesource.com/c/platform/hardware/interfaces/+/19531023
Change-Id: I39798c9c133a9cbf8e36d085b40bc2ab9203e29e
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-08-05 20:07:20 +00:00
Mikhail Naganov
978a0f9ea0
audio: Restrict the new VTS test for effects to T+
...
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-05 00:30:59 +00:00
TreeHugger Robot
3e7b3fe78c
Merge changes I26fd4fd2,Iaadf6e9b,I7d42f8a7,I0482376e into stage-aosp-tm-ts-dev am: 744c329227
am: 5c5c78aa51
am: 6188e3b113
am: 808ba0f8a9
...
Original change: https://googleplex-android-review.googlesource.com/c/platform/hardware/interfaces/+/19345935
Change-Id: I09b15647260de9800faa79960de305c30fedbe02
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-08-03 01:08:47 +00:00
Mikhail Naganov
c956ec5df8
audio VTS: CompressedOffloadOutputStream to check the vendor API level am: 3f2e330990
am: b9b5652fcc
am: ebb6782251
am: ab516998f5
...
Original change: https://googleplex-android-review.googlesource.com/c/platform/hardware/interfaces/+/19340462
Change-Id: I21a8f50bc3badb68ce23ef3587c1cfc9cc1aaa31
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-08-03 01:08:45 +00:00
Mikhail Naganov
6730af3154
audio VTS: add CompressedOffloadOutputStream test am: 56f1666feb
am: 96ddc8f20f
am: 9d171af82d
am: e493259938
...
Original change: https://googleplex-android-review.googlesource.com/c/platform/hardware/interfaces/+/19345352
Change-Id: I0f30a0cd3e2a7292cc50199ce9e4990fead4f6c3
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-08-03 01:08:43 +00:00
Mikhail Naganov
4461adf9ef
audio VTS: Refactor test parameter generation for I/O streams am: 1e703f182e
am: a4c937fe91
am: 1d8b62bf92
am: 2d86511613
...
Original change: https://googleplex-android-review.googlesource.com/c/platform/hardware/interfaces/+/19340459
Change-Id: Iaa658e82356acbd72956c1f5c0b00c5a29bde97c
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-08-03 01:08:41 +00:00
TreeHugger Robot
808ba0f8a9
Merge changes I26fd4fd2,Iaadf6e9b,I7d42f8a7,I0482376e into 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-03 00:19:14 +00:00
Mikhail Naganov
ab516998f5
audio VTS: CompressedOffloadOutputStream to check the vendor API level am: 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-03 00:19:13 +00:00
Mikhail Naganov
e493259938
audio VTS: add CompressedOffloadOutputStream test am: 56f1666feb
am: 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-03 00:19:11 +00:00
Mikhail Naganov
2d86511613
audio VTS: Refactor test parameter generation for I/O streams am: 1e703f182e
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-03 00:19:09 +00:00
TreeHugger Robot
b4027e5f42
Merge changes I26fd4fd2,Iaadf6e9b,I7d42f8a7,I0482376e into stage-aosp-tm-ts-dev am: 744c329227
am: 5c5c78aa51
...
Original change: https://googleplex-android-review.googlesource.com/c/platform/hardware/interfaces/+/19345935
Change-Id: I198bf32ab2a4f5879b8a40653354eeea6a9ac84b
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-08-02 23:53:26 +00:00
Mikhail Naganov
56c53559a8
audio VTS: CompressedOffloadOutputStream to check the vendor API level am: 3f2e330990
am: b9b5652fcc
...
Original change: https://googleplex-android-review.googlesource.com/c/platform/hardware/interfaces/+/19340462
Change-Id: Ie67480451fd3216627d17b68cae6e2e6764bc576
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-08-02 23:53:23 +00:00
Mikhail Naganov
1808705ea7
audio VTS: add CompressedOffloadOutputStream test am: 56f1666feb
am: 96ddc8f20f
...
Original change: https://googleplex-android-review.googlesource.com/c/platform/hardware/interfaces/+/19345352
Change-Id: I245c82c92b0f1a0f6275d3b81c3679e77701856b
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-08-02 23:53:19 +00:00
Mikhail Naganov
9b052883b6
audio VTS: Refactor test parameter generation for I/O streams am: 1e703f182e
am: a4c937fe91
...
Original change: https://googleplex-android-review.googlesource.com/c/platform/hardware/interfaces/+/19340459
Change-Id: Ie639a0ad4ea179ecd3ccec2ebe74b071dd61e3f7
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-08-02 23:53:15 +00:00
TreeHugger Robot
5c5c78aa51
Merge changes I26fd4fd2,Iaadf6e9b,I7d42f8a7,I0482376e into 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-02 23:21:35 +00:00
Mikhail Naganov
b9b5652fcc
audio VTS: CompressedOffloadOutputStream to check the vendor API level am: 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-02 23:21:34 +00:00
Mikhail Naganov
96ddc8f20f
audio VTS: add CompressedOffloadOutputStream test am: 56f1666feb
...
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-02 23:21:32 +00:00
Mikhail Naganov
a4c937fe91
audio VTS: Refactor test parameter generation for I/O streams am: 1e703f182e
...
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-08-02 23:21:30 +00:00
Mikhail Naganov
5393ed7c29
audio: add OWNERS for the README.md am: 6a9f697dfe
am: c812fbf2c6
am: 07ec63d323
am: 7117600cb9
...
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/2169871
Change-Id: Ide3a72fbdea6d2021c37f21d747a7a363e9bee0a
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-07-29 23:54:35 +00:00
Mikhail Naganov
07ec63d323
audio: add OWNERS for the README.md am: 6a9f697dfe
am: c812fbf2c6
...
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/2169871
Change-Id: Ief6d413fac4a56e23bf935b762760531f9957ff6
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-07-29 23:15:29 +00:00
Mikhail Naganov
c812fbf2c6
audio: add OWNERS for the README.md am: 6a9f697dfe
...
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/2169871
Change-Id: Ica3988cec6c7540ecc96206972ee192a514ce301
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-07-29 22:56:31 +00:00
Mikhail Naganov
6a9f697dfe
audio: add OWNERS for the README.md
...
Bug: 205884982
Test: N/A
Change-Id: Ia627e3845a078e6a4c545b13a723a6c5a038c53b
Merged-In: Ia627e3845a078e6a4c545b13a723a6c5a038c53b
2022-07-29 19:44:11 +00:00
Mikhail Naganov
3b167a63b2
audio VTS: Update CompressedOffloadOutputStream implementation
...
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 a0a5d4a9f6
)
2022-07-19 19:59:02 +00:00
Mikhail Naganov
3f2e330990
audio VTS: CompressedOffloadOutputStream to check the vendor API level
...
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 1bc0dc4ceb
)
2022-07-19 19:58:06 +00:00
Mikhail Naganov
56f1666feb
audio VTS: add CompressedOffloadOutputStream test
...
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 158a2ddb2f
)
2022-07-19 19:56:59 +00:00
Mikhail Naganov
1e703f182e
audio VTS: Refactor test parameter generation for I/O streams
...
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 713d2c5590
)
2022-07-19 19:55:37 +00:00
jiabin
7e57f12375
[automerge] Fix array out of bound in audioTransportToHal. 2p: f16c6d3a57
2p: 0d43585645
am: 3074154353
am: c9c8e96cfd
am: aaea5644f9
...
Original change: https://googleplex-android-review.googlesource.com/c/platform/hardware/interfaces/+/19214732
Change-Id: I195519667d11fa5393bfdd536fbab693d6778019
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-07-11 23:59:58 +00:00
jiabin
aaea5644f9
[automerge] Fix array out of bound in audioTransportToHal. 2p: f16c6d3a57
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-11 23:44:30 +00:00
jiabin
315925d83b
[automerge] Fix array out of bound in audioTransportToHal. 2p: f16c6d3a57
2p: 0d43585645
am: 3074154353
...
Original change: https://googleplex-android-review.googlesource.com/c/platform/hardware/interfaces/+/19214732
Change-Id: Id833d761f83192c1f6fe912318bde91bb7d42761
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-07-11 23:27:13 +00:00