summaryrefslogtreecommitdiffstats
path: root/audio
diff options
context:
space:
mode:
authorMarcel Holtmann <marcel@holtmann.org>2008-05-15 07:42:17 +0000
committerMarcel Holtmann <marcel@holtmann.org>2008-05-15 07:42:17 +0000
commit165b6e46b5524e2ed623925fa45d80d11032e716 (patch)
tree0b1d84ee9d697c898acfafc44817ce5989b5b67b /audio
parentc478f8907398cf742b00a4e3043f72efbb7d0801 (diff)
Fix return value for snd_pcm_hw_params() calls
Diffstat (limited to 'audio')
-rw-r--r--audio/pcm_bluetooth.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/audio/pcm_bluetooth.c b/audio/pcm_bluetooth.c
index 13550663..0dec0a12 100644
--- a/audio/pcm_bluetooth.c
+++ b/audio/pcm_bluetooth.c
@@ -421,7 +421,11 @@ static int bluetooth_prepare(snd_pcm_ioplug_t *io)
}
/* wake up any client polling at us */
- return write(data->pipefd[1], &c, 1);
+ err = write(data->pipefd[1], &c, 1);
+ if (err < 0)
+ return err;
+
+ return 0;
}
static int bluetooth_hsp_hw_params(snd_pcm_ioplug_t *io,