mirror of
https://git.kernel.org/pub/scm/bluetooth/bluez.git
synced 2024-11-25 05:04:18 +08:00
android/handsfree: Fix SCO disconnection while dialing
If we decide to hang up while dialing or alerting, SCO needs to be closed. Fixes: TC_AG_TCA_BV_04_C
This commit is contained in:
parent
ca4364f488
commit
3eb3d396a7
@ -2403,6 +2403,10 @@ static void phone_state_idle(struct hf_device *dev, int num_active,
|
||||
num_held ? (num_active ? 1 : 2) : 0);
|
||||
|
||||
update_indicator(dev, IND_CALLSETUP, 0);
|
||||
|
||||
/* disconnect SCO if we hang up while dialing or alerting */
|
||||
if (num_active == 0 && num_held == 0)
|
||||
disconnect_sco(dev);
|
||||
break;
|
||||
case HAL_HANDSFREE_CALL_STATE_IDLE:
|
||||
if (dev->call_hanging_up) {
|
||||
|
Loading…
Reference in New Issue
Block a user