mirror of
https://github.com/alsa-project/alsa-lib.git
synced 2025-11-04 13:30:08 -05:00
Added POLLNVAL to poll->events
This commit is contained in:
parent
d0526d603c
commit
098932ce57
7 changed files with 12 additions and 12 deletions
|
|
@ -265,13 +265,13 @@ int snd_hwdep_poll_descriptors(snd_hwdep_t *hwdep, struct pollfd *pfds, unsigned
|
|||
pfds->fd = hwdep->poll_fd;
|
||||
switch (hwdep->mode & O_ACCMODE) {
|
||||
case O_WRONLY:
|
||||
pfds->events = POLLOUT|POLLERR;
|
||||
pfds->events = POLLOUT|POLLERR|POLLNVAL;
|
||||
break;
|
||||
case O_RDONLY:
|
||||
pfds->events = POLLIN|POLLERR;
|
||||
pfds->events = POLLIN|POLLERR|POLLNVAL;
|
||||
break;
|
||||
case O_RDWR:
|
||||
pfds->events = POLLOUT|POLLIN|POLLERR;
|
||||
pfds->events = POLLOUT|POLLIN|POLLERR|POLLNVAL;
|
||||
break;
|
||||
default:
|
||||
return -EIO;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue