mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-11-05 13:29:57 -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
|
|
@ -77,7 +77,7 @@ static pa_hook_result_t load_module_for_device(pa_bluetooth_discovery *y, const
|
|||
if (!d->dead && d->device_connected > 0 &&
|
||||
(d->audio_state >= PA_BT_AUDIO_STATE_CONNECTED ||
|
||||
d->audio_source_state >= PA_BT_AUDIO_STATE_CONNECTED ||
|
||||
d->hfgw_state > PA_BT_AUDIO_STATE_CONNECTED)) {
|
||||
d->hfgw_state >= PA_BT_AUDIO_STATE_CONNECTED)) {
|
||||
|
||||
if (!mi) {
|
||||
pa_module *m = NULL;
|
||||
|
|
@ -110,7 +110,7 @@ static pa_hook_result_t load_module_for_device(pa_bluetooth_discovery *y, const
|
|||
if (d->audio_source_state >= PA_BT_AUDIO_STATE_CONNECTED)
|
||||
args = pa_sprintf_malloc("%s profile=\"a2dp_source\" auto_connect=no", args);
|
||||
|
||||
if (d->hfgw_state > PA_BT_AUDIO_STATE_CONNECTED)
|
||||
if (d->hfgw_state >= PA_BT_AUDIO_STATE_CONNECTED)
|
||||
args = pa_sprintf_malloc("%s profile=\"hfgw\"", args);
|
||||
|
||||
pa_log_debug("Loading module-bluetooth-device %s", args);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue