PulseAudio Marge Bot pushed to branch master at PulseAudio / pulseaudio
Commits: 4c71f42f by Igor V. Kovalenko at 2021-10-06T19:06:45+03:00 bluetooth: Add missing breaks to profile availability check Part-of: <https://gitlab.freedesktop.org/pulseaudio/pulseaudio/-/merge_requests/643> - - - - - 1 changed file: - src/modules/bluetooth/bluez5-util.c Changes: ===================================== src/modules/bluetooth/bluez5-util.c ===================================== @@ -273,21 +273,25 @@ bool pa_bluetooth_device_supports_profile(const pa_bluetooth_device *device, pa_ case PA_BLUETOOTH_PROFILE_A2DP_SOURCE: r = !!(pa_hashmap_get(device->uuids, PA_BLUETOOTH_UUID_A2DP_SOURCE) && pa_hashmap_get(device->adapter->uuids, PA_BLUETOOTH_UUID_A2DP_SINK)); + break; case PA_BLUETOOTH_PROFILE_HSP_HS: r = show_hsp && ( !!(pa_hashmap_get(device->uuids, PA_BLUETOOTH_UUID_HSP_HS) && pa_hashmap_get(device->adapter->uuids, PA_BLUETOOTH_UUID_HSP_AG)) || !!(pa_hashmap_get(device->uuids, PA_BLUETOOTH_UUID_HSP_HS_ALT) && pa_hashmap_get(device->adapter->uuids, PA_BLUETOOTH_UUID_HSP_AG)) ); + break; case PA_BLUETOOTH_PROFILE_HSP_AG: r = !!(pa_hashmap_get(device->uuids, PA_BLUETOOTH_UUID_HSP_AG) && pa_hashmap_get(device->adapter->uuids, PA_BLUETOOTH_UUID_HSP_HS)) || !!(pa_hashmap_get(device->uuids, PA_BLUETOOTH_UUID_HSP_AG) && pa_hashmap_get(device->adapter->uuids, PA_BLUETOOTH_UUID_HSP_HS_ALT)); + break; case PA_BLUETOOTH_PROFILE_HFP_HF: r = show_hfp && !!(pa_hashmap_get(device->uuids, PA_BLUETOOTH_UUID_HFP_HF) && pa_hashmap_get(device->adapter->uuids, PA_BLUETOOTH_UUID_HFP_AG)); + break; case PA_BLUETOOTH_PROFILE_HFP_AG: r = !!(pa_hashmap_get(device->uuids, PA_BLUETOOTH_UUID_HFP_AG) && pa_hashmap_get(device->adapter->uuids, PA_BLUETOOTH_UUID_HFP_HF)); View it on GitLab: https://gitlab.freedesktop.org/pulseaudio/pulseaudio/-/commit/4c71f42fd585305b47a8f9e8aece02b5257f5df7 -- View it on GitLab: https://gitlab.freedesktop.org/pulseaudio/pulseaudio/-/commit/4c71f42fd585305b47a8f9e8aece02b5257f5df7 You're receiving this email because of your account on gitlab.freedesktop.org.
