OSDN Git Service

Skip resmgr when EAGAIN or EBUSY
authorTakashi Iwai <tiwai@suse.de>
Fri, 13 Jan 2006 15:09:40 +0000 (15:09 +0000)
committerTakashi Iwai <tiwai@suse.de>
Fri, 13 Jan 2006 15:09:40 +0000 (15:09 +0000)
Skip resmgr when EAGAIN or EBUSY.

include/local.h

index cf7dd10..bf53d51 100644 (file)
@@ -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