summaryrefslogtreecommitdiffstats
path: root/audio/headset.c
diff options
context:
space:
mode:
Diffstat (limited to 'audio/headset.c')
-rw-r--r--audio/headset.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/audio/headset.c b/audio/headset.c
index b90c1a9c..a7adffd9 100644
--- a/audio/headset.c
+++ b/audio/headset.c
@@ -542,7 +542,7 @@ static int sco_connect(struct audio_device *dev, headset_stream_cb_t cb,
err = bt_sco_connect(&dev->src, &dev->dst, sco_connect_cb, dev);
if (err < 0) {
error("connect: %s (%d)", strerror(-err), -err);
- return -err;
+ return err;
}
headset_set_state(dev, HEADSET_STATE_PLAY_IN_PROGRESS);