mirror of
https://github.com/Evolution-X/hardware_interfaces
synced 2026-02-01 11:36:00 +00:00
This will allow vendors to create instances of this library with other names. A different name is required if a vendor wants to provide a custom version (e.g. in HIDL) of android.hardware.audio@6.0-impl and still be able to use the library itself (e.g. to load audio.r_submix.default) - android.hardware.audio.service does not load both libraries and prefers the default one. Bug: 161485545 Test: boot emulator, check if audio works Signed-off-by: Roman Kiryanov <rkir@google.com> Change-Id: I55c4f9b1386be3464ad0f5f2568423843e7eae88
Directory structure of the audio HIDL related code.
audio
|-- 2.0 <== core 2.0 HIDL API. .hal can not be moved into the core directory
| because that would change its namespace and include path
|-- 4.0 <== Version 4.0 of the core API
|
|-- ...
|
|-- common <== code common to audio core and effect API
| |-- 2.0 <== HIDL API of V2
| |-- 4.0
| |-- ...
| `-- all_versions <== code common to all version of both core and effect API
| |-- default <== implementation shared code between core and effect impl
| |-- test <== utilities used by tests
| `-- util <== utilities used by both implementation and tests
|
|-- core <== VTS and default implementation of the core API (not HIDL, see /audio/2.0))
| `-- all_versions <== Code is version independent through #if and separate files
| |-- default <== code that wraps the legacy API
| `-- vts <== vts of core API
| |-- 2.0 <== 2.0 specific tests and helpers
| |-- 4.0
| |-- ...
|
`-- effect <== idem for the effect API
|-- 2.0
|-- 4.0
|-- ...
`-- all_versions
|-- default
`-- vts