mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-11-03 09:01:50 -05:00
bluetooth: recognize another HSP HS UUID
There are actually two HSP HS UUIDs. My theory is that the second one was added, because someone was not happy with the old UUID being used for identifying two different things (the HSP profile as a whole, and the HS role within the HSP profile). Some headsets only use the new UUID, and those headsets won't work if we don't recognize the new UUID. BugLink: https://bugs.freedesktop.org/show_bug.cgi?id=93898
This commit is contained in:
parent
15386a710c
commit
9c7a9be7cd
4 changed files with 14 additions and 2 deletions
|
|
@ -1960,7 +1960,7 @@ static int uuid_to_profile(const char *uuid, pa_bluetooth_profile_t *_r) {
|
|||
*_r = PA_BLUETOOTH_PROFILE_A2DP_SINK;
|
||||
else if (pa_streq(uuid, PA_BLUETOOTH_UUID_A2DP_SOURCE))
|
||||
*_r = PA_BLUETOOTH_PROFILE_A2DP_SOURCE;
|
||||
else if (pa_streq(uuid, PA_BLUETOOTH_UUID_HSP_HS) || pa_streq(uuid, PA_BLUETOOTH_UUID_HFP_HF))
|
||||
else if (pa_bluetooth_uuid_is_hsp_hs(uuid) || pa_streq(uuid, PA_BLUETOOTH_UUID_HFP_HF))
|
||||
*_r = PA_BLUETOOTH_PROFILE_HEADSET_HEAD_UNIT;
|
||||
else if (pa_streq(uuid, PA_BLUETOOTH_UUID_HSP_AG) || pa_streq(uuid, PA_BLUETOOTH_UUID_HFP_AG))
|
||||
*_r = PA_BLUETOOTH_PROFILE_HEADSET_AUDIO_GATEWAY;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue