LeAudio: Decouple BAP logic from Audio HAL client type
Currently, instead of comparing audio set configurations directly, we compare the audio HAL client configurations derived from the currently supported remote device configurations. For the audio HAL client it is mandatory to have the certain paramters which are not necessarily mandatory for the hardware offloader case or for the vendor codecs or those received over the config provider AIDL interface. Currently, configurations without these parameters will not be considered valid remote device configurations, even though some of these missing parameters (like bits per sample) are irrelevant to the remote device configuration and are only local audio HAL client specific. This patch uses the remote device configuration data type comparison directly to verify the remote device configurations, and improves naming to functions and variables used by this logic to avoid similar unintended abuse in future. Bug: 308428860 Test: atest 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-flaggable simplifying refactor - confirmed with unit tests Change-Id: I2f9ec46e2b5761ede77774a4eb258606c6c277cf
Loading
Please register or sign in to comment