summaryrefslogtreecommitdiff
path: root/include/local.h
diff options
context:
space:
mode:
authorTakashi Iwai <tiwai@suse.de>2006-01-13 15:09:40 +0000
committerTakashi Iwai <tiwai@suse.de>2006-01-13 15:09:40 +0000
commitadd3a4a1e20f840215afa3c699890cc6bc054c30 (patch)
tree1909d45e81b477505d6d317fe54f5ab878d68186 /include/local.h
parent559deb4d95256ab2f53a043bdaf93d611ae0af00 (diff)
downloadalsa-lib-add3a4a1e20f840215afa3c699890cc6bc054c30.tar.gz
Skip resmgr when EAGAIN or EBUSY
Skip resmgr when EAGAIN or EBUSY.
Diffstat (limited to 'include/local.h')
-rw-r--r--include/local.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/local.h b/include/local.h
index cf7dd10e..bf53d512 100644
--- a/include/local.h
+++ b/include/local.h
@@ -236,6 +236,8 @@ static inline int snd_open_device(const char *filename, int fmode)
int fd = open(filename, fmode);
if (fd >= 0)
return fd;
+ if (errno == EAGAIN || errno == EBUSY)
+ return fd;
return rsm_open_device(filename, fmode);
}
#else