mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2026-03-09 05:34:03 -04:00
spa: bluez: device: Add SPA_PROP_params to disable dummy call state
The current implementation only send the +CIEV:<call>,<active> event if there's an active modem in ModemManager. This may lead to headset disconnection as in (1) if the profile is by another application than telephony one, e.g. a conference application/website. This commit improves dummy call status update by adding a new "bluez5.disable-dummy-call" props param in bluez5 device, allowing external application like WirePlumber to set it dynamically. (1) https://gitlab.freedesktop.org/pipewire/pipewire/-/issues/1744 Fixes: https://gitlab.freedesktop.org/pipewire/pipewire/-/merge_requests/2606
This commit is contained in:
parent
7aa8d8d628
commit
25a6fdcdb1
3 changed files with 79 additions and 8 deletions
|
|
@ -2763,7 +2763,7 @@ static int sco_acquire_cb(void *data, bool optional)
|
|||
goto fail;
|
||||
|
||||
#ifdef HAVE_BLUEZ_5_BACKEND_HFP_NATIVE
|
||||
if (!mm_is_available(backend->modemmanager))
|
||||
if (!td->rfcomm->device->disable_dummy_call)
|
||||
rfcomm_hfp_ag_set_cind(td->rfcomm, true);
|
||||
#endif
|
||||
|
||||
|
|
@ -2818,7 +2818,7 @@ static int sco_release_cb(void *data)
|
|||
spa_bt_transport_set_state(t, SPA_BT_TRANSPORT_STATE_IDLE);
|
||||
|
||||
#ifdef HAVE_BLUEZ_5_BACKEND_HFP_NATIVE
|
||||
if (!mm_is_available(backend->modemmanager))
|
||||
if (!td->rfcomm->device->disable_dummy_call)
|
||||
rfcomm_hfp_ag_set_cind(td->rfcomm, false);
|
||||
#endif
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue