summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--audio/unix.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/audio/unix.c b/audio/unix.c
index 472347b1..294155ad 100644
--- a/audio/unix.c
+++ b/audio/unix.c
@@ -317,7 +317,7 @@ static void headset_resume_complete(struct audio_device *dev, void *user_data)
client->data_fd = headset_get_sco_fd(dev);
if (client->data_fd < 0) {
error("Unable to get a SCO fd");
- headset_unlock(client->dev, hs->lock);
+ headset_unlock(dev, hs->lock);
goto failed;
}