Loading system/btif/include/core_callbacks.h +3 −0 Original line number Diff line number Diff line Loading @@ -121,6 +121,9 @@ struct HACK_ProfileInterface { // ASHA hacks int (*GetHearingAidDeviceCount)(); // LE Audio hacks bool (*IsLeAudioClientRunning)(); HACK_ProfileInterface(const HACK_ProfileInterface&) = delete; HACK_ProfileInterface& operator=(const HACK_ProfileInterface&) = delete; }; Loading system/btif/src/bluetooth.cc +5 −1 Original line number Diff line number Diff line Loading @@ -338,7 +338,11 @@ static bluetooth::core::CoreInterface* CreateInterfaceToProfiles() { btif_av_set_dynamic_audio_buffer_size, // ASHA .GetHearingAidDeviceCount = HearingAid::GetDeviceCount}; .GetHearingAidDeviceCount = HearingAid::GetDeviceCount, // LE Audio .IsLeAudioClientRunning = LeAudioClient::IsLeAudioClientRunning}; static auto interfaceForCore = CoreInterfaceImpl(&eventCallbacks, &configInterface, &msbcCodecInterface, &profileInterface); Loading system/btif/src/btif_dm.cc +2 −1 Original line number Diff line number Diff line Loading @@ -639,7 +639,8 @@ static void btif_update_remote_properties(const RawAddress& bdaddr, * up LE profile connection, and limits all possible service discovery * ordering issues (first Classic, GATT over SDP, etc) */ static bool is_device_le_audio_capable(const RawAddress bd_addr) { if (!LeAudioClient::IsLeAudioClientRunning() || if (!GetInterfaceToProfiles() ->profileSpecific_HACK->IsLeAudioClientRunning() || !check_cod_le_audio(bd_addr)) { return false; } Loading Loading
system/btif/include/core_callbacks.h +3 −0 Original line number Diff line number Diff line Loading @@ -121,6 +121,9 @@ struct HACK_ProfileInterface { // ASHA hacks int (*GetHearingAidDeviceCount)(); // LE Audio hacks bool (*IsLeAudioClientRunning)(); HACK_ProfileInterface(const HACK_ProfileInterface&) = delete; HACK_ProfileInterface& operator=(const HACK_ProfileInterface&) = delete; }; Loading
system/btif/src/bluetooth.cc +5 −1 Original line number Diff line number Diff line Loading @@ -338,7 +338,11 @@ static bluetooth::core::CoreInterface* CreateInterfaceToProfiles() { btif_av_set_dynamic_audio_buffer_size, // ASHA .GetHearingAidDeviceCount = HearingAid::GetDeviceCount}; .GetHearingAidDeviceCount = HearingAid::GetDeviceCount, // LE Audio .IsLeAudioClientRunning = LeAudioClient::IsLeAudioClientRunning}; static auto interfaceForCore = CoreInterfaceImpl(&eventCallbacks, &configInterface, &msbcCodecInterface, &profileInterface); Loading
system/btif/src/btif_dm.cc +2 −1 Original line number Diff line number Diff line Loading @@ -639,7 +639,8 @@ static void btif_update_remote_properties(const RawAddress& bdaddr, * up LE profile connection, and limits all possible service discovery * ordering issues (first Classic, GATT over SDP, etc) */ static bool is_device_le_audio_capable(const RawAddress bd_addr) { if (!LeAudioClient::IsLeAudioClientRunning() || if (!GetInterfaceToProfiles() ->profileSpecific_HACK->IsLeAudioClientRunning() || !check_cod_le_audio(bd_addr)) { return false; } Loading