summaryrefslogtreecommitdiffstats
path: root/audio/pcm_bluetooth.c
diff options
context:
space:
mode:
authorLuiz Augusto von Dentz <luiz.dentz@openbossa.org>2007-08-24 13:00:09 +0000
committerLuiz Augusto von Dentz <luiz.dentz@openbossa.org>2007-08-24 13:00:09 +0000
commit44f2f4bacfcb1d7fe694c767446c1c8686e6ccf2 (patch)
tree20a82ecb40e82b08e56dc9dcddf11e5ce8e85a09 /audio/pcm_bluetooth.c
parentf4211a3cd3442d54fa7877a6c421bee034d46e8e (diff)
Fix return value when receiving an error.
Diffstat (limited to 'audio/pcm_bluetooth.c')
-rw-r--r--audio/pcm_bluetooth.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/audio/pcm_bluetooth.c b/audio/pcm_bluetooth.c
index 0ff1999c..8fb560a4 100644
--- a/audio/pcm_bluetooth.c
+++ b/audio/pcm_bluetooth.c
@@ -981,7 +981,7 @@ static int bluetooth_cfg(struct bluetooth_data *data, snd_config_t *conf)
if (pkt->error != PKT_ERROR_NONE) {
SNDERR("Error %d while configuring device", pkt->error);
- return pkt->error;
+ return -pkt->error;
}
if (cfg->codec != CFG_CODEC_SBC)