diff options
author | Joe Marcus Clarke <marcus@FreeBSD.org> | 2008-08-20 16:53:56 -0400 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2008-08-21 04:23:38 +0200 |
commit | d7d6d26e1f858841f333264a07edc512066269af (patch) | |
tree | 85659c6e24d69ad7fcc1ace2ffdfcf5f935f6e11 /src/alsa.c | |
parent | f1ca2213fa649a9e3635ec7638b6c5bced594787 (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.c | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -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)); |