summaryrefslogtreecommitdiffstats
path: root/src/alsa.c
diff options
context:
space:
mode:
authorJoe Marcus Clarke <marcus@FreeBSD.org>2008-08-20 16:53:56 -0400
committerLennart Poettering <lennart@poettering.net>2008-08-21 04:23:38 +0200
commitd7d6d26e1f858841f333264a07edc512066269af (patch)
tree85659c6e24d69ad7fcc1ace2ffdfcf5f935f6e11 /src/alsa.c
parentf1ca2213fa649a9e3635ec7638b6c5bced594787 (diff)
OSS driver take 3
This adds the necessary error checking, and fixes the s/alsa/oss/ problem in configure.ac. Signed-off-by: Lennart Poettering <lennart@poettering.net>
Diffstat (limited to 'src/alsa.c')
-rw-r--r--src/alsa.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/alsa.c b/src/alsa.c
index 21da013..eff1598 100644
--- a/src/alsa.c
+++ b/src/alsa.c
@@ -199,6 +199,10 @@ static int translate_error(int error) {
return CA_ERROR_OOM;
case -EBUSY:
return CA_ERROR_NOTAVAILABLE;
+ case -EINVAL:
+ return CA_ERROR_INVALID;
+ case -ENOSYS:
+ return CA_ERROR_NOTSUPPORTED;
default:
if (ca_debug())
fprintf(stderr, "Got unhandled error from ALSA: %s\n", snd_strerror(error));