summaryrefslogtreecommitdiff
path: root/src/hwdep
diff options
context:
space:
mode:
authorJaroslav Kysela <perex@perex.cz>2002-11-30 09:47:20 +0000
committerJaroslav Kysela <perex@perex.cz>2002-11-30 09:47:20 +0000
commit098932ce57a9536e313acbfab877f86b668a9bc6 (patch)
tree25e56414e96aa4192f88fd8cc86e4754e77fb2bc /src/hwdep
parentd0526d603c5a3c3db57683f3e2cdd8a6d13c29a9 (diff)
downloadalsa-lib-098932ce57a9536e313acbfab877f86b668a9bc6.tar.gz
Added POLLNVAL to poll->events
Diffstat (limited to 'src/hwdep')
-rw-r--r--src/hwdep/hwdep.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/hwdep/hwdep.c b/src/hwdep/hwdep.c
index 994e74b7..c8285926 100644
--- a/src/hwdep/hwdep.c
+++ b/src/hwdep/hwdep.c
@@ -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;