mirror of
https://github.com/alsa-project/alsa-lib.git
synced 2025-10-29 05:40:25 -04:00
Skip resmgr when EAGAIN or EBUSY
Skip resmgr when EAGAIN or EBUSY.
This commit is contained in:
parent
559deb4d95
commit
add3a4a1e2
1 changed files with 2 additions and 0 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue