summaryrefslogtreecommitdiffstats
path: root/audio/headset.c
diff options
context:
space:
mode:
authorJohan Hedberg <johan.hedberg@nokia.com>2007-08-28 08:43:31 +0000
committerJohan Hedberg <johan.hedberg@nokia.com>2007-08-28 08:43:31 +0000
commit770f024d7ca279390820569f46061830b3b89330 (patch)
treef2e3e7dc92cb494b9592366b30a819bc57fc259f /audio/headset.c
parentce98ca977ac70c82e721505ca5423471d9a13f60 (diff)
Handle alsa+HSP better on client disconnect
Diffstat (limited to 'audio/headset.c')
-rw-r--r--audio/headset.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/audio/headset.c b/audio/headset.c
index da224b8a..1a4b1171 100644
--- a/audio/headset.c
+++ b/audio/headset.c
@@ -1586,6 +1586,8 @@ gboolean headset_unlock(struct device *dev, void *data)
hs->locked = FALSE;
+ headset_set_state(dev, HEADSET_STATE_DISCONNECTED);
+
return TRUE;
}