platform_hardware_interfaces/audio/aidl/default
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
..
include/core-impl audio HAL: Support for external device connections 2022-08-23 22:40:20 +00:00
Android.bp audio HAL: Support for external device connections 2022-08-23 22:40:20 +00:00
android.hardware.audio.service-aidl.example.rc audio HAL: Minimal example implementation 2022-08-20 00:14:53 +00:00
android.hardware.audio.service-aidl.xml audio HAL: Minimal example implementation 2022-08-20 00:14:53 +00:00
Config.cpp audio HAL: Minimal example implementation 2022-08-20 00:14:53 +00:00
Configuration.cpp audio HAL: Support for external device connections 2022-08-23 22:40:20 +00:00
main.cpp audio HAL: Minimal example implementation 2022-08-20 00:14:53 +00:00
Module.cpp audio HAL: Support for external device connections 2022-08-23 22:40:20 +00:00
Stream.cpp audio HAL: Minimal example implementation 2022-08-20 00:14:53 +00:00