mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-11-04 13:29:59 -05:00
bluetooth: Fix Media Endpoint for HandsfreeGateway
This patch will add the necessary quirks so that pulseaudio can register an endpoint on the /MediaEndpoint/HFPHS path. This endpoint is to be used for HFP Handsfree profile.
This commit is contained in:
parent
041f255c9d
commit
3f6aa03912
3 changed files with 12 additions and 6 deletions
|
|
@ -2545,7 +2545,7 @@ static int card_set_profile(pa_card *c, pa_card_profile *new_profile) {
|
|||
pa_log_warn("A2DP is not connected, refused to switch profile");
|
||||
return -PA_ERR_IO;
|
||||
}
|
||||
else if (device->hfgw_state <= PA_BT_AUDIO_STATE_CONNECTED && *d == PROFILE_HFGW) {
|
||||
else if (device->hfgw_state < PA_BT_AUDIO_STATE_CONNECTED && *d == PROFILE_HFGW) {
|
||||
pa_log_warn("HandsfreeGateway is not connected, refused to switch profile");
|
||||
return -PA_ERR_IO;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue