Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit aa01f1d6 authored by Jakub Tyszkowski's avatar Jakub Tyszkowski
Browse files

LeAudio: Ase configuration data refactor - part 1

This change removes the `ase_cnt` counter in the
SetConfiguration struct and allows for multiple,
and distinct ASE configurations, to match the
requirements for the new AIDL for the multicodec
configuration provider.

Additionally:
 - `SetConfiguration` was renamed to `AseConfiguration` to
   match the AIDL data structures, and to avoid the confusion
   with the `AudioSetConfiguration` struct.
 - `device_cnt` and `topology` fields of the configuration were
   encapsulated inside the optional TopologyInfo struct for separation,
   as they will be absent in configurations from the AIDL config
   provider and only the legacy .json configuration handling
   code should use it (isolating the data for the legacy code path only)
 - adds `packing` parameter to the configurations to match the
   new AIDL requirements
 - other small data types improvements like using BidirectionalPair
   container which improves accessing a single direction configs
   without the need of searching through a flat container of structs
   with a `direction` field.

Bug: 295972694
Test: atest --host bluetooth_le_audio_test bluetooth_le_audio_client_test  bluetooth_test_broadcaster bluetooth_test_broadcaster_state_machine bluetooth_le_audio_codec_manager_test
Flag: EXEMPT; non-flagable refactor, verified with unit tests
Change-Id: I1a2106b5684a6dcaf2900dc0a54ec63652cf9203
parent 49e9a83f
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment