summaryrefslogtreecommitdiffstats
path: root/audio
diff options
context:
space:
mode:
authorJohan Hedberg <johan.hedberg@nokia.com>2008-10-09 09:14:10 +0200
committerJohan Hedberg <johan.hedberg@nokia.com>2008-10-09 09:14:10 +0200
commita6fab78087f057d977af6cdc6fff9dfd43b67bb2 (patch)
treec2a8212d2a4b39894cbc12370f38cf00ae0b108d /audio
parent69adac833c5633714b84bf840c75aa814193b8a6 (diff)
Fix parameter passing to headset_set_state
Diffstat (limited to 'audio')
-rw-r--r--audio/headset.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/audio/headset.c b/audio/headset.c
index a0b7af54..ca7cc189 100644
--- a/audio/headset.c
+++ b/audio/headset.c
@@ -1903,7 +1903,7 @@ static void path_unregister(void *data)
if (hs->state > HEADSET_STATE_DISCONNECTED) {
debug("Headset unregistered while device was connected!");
- headset_set_state(hs, HEADSET_STATE_DISCONNECTED);
+ headset_set_state(dev, HEADSET_STATE_DISCONNECTED);
}
info("Unregistered interface %s on path %s",