summaryrefslogtreecommitdiff
path: root/src/pcm/pcm_generic.c
diff options
context:
space:
mode:
authorTakashi Iwai <tiwai@suse.de>2005-05-18 10:45:06 +0000
committerTakashi Iwai <tiwai@suse.de>2005-05-18 10:45:06 +0000
commit842b5734245ac0035a955578434d6c3dd29ccfbc (patch)
treea40c9c09632d7d550880972d4bbbea6ae2e69210 /src/pcm/pcm_generic.c
parentcf4f4bc9c49eba76a0b45729cf2b35c63e9c033a (diff)
Add poll_descriptors and poll_descriptors_count callbacks
Added poll_descriptors and poll_descriptors_count callbacks for multiple poll_fd's.
Diffstat (limited to 'src/pcm/pcm_generic.c')
-rw-r--r--src/pcm/pcm_generic.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/pcm/pcm_generic.c b/src/pcm/pcm_generic.c
index 7c26f5b4..ca7da520 100644
--- a/src/pcm/pcm_generic.c
+++ b/src/pcm/pcm_generic.c
@@ -56,6 +56,18 @@ int snd_pcm_generic_async(snd_pcm_t *pcm, int sig, pid_t pid)
return snd_pcm_async(generic->slave, sig, pid);
}
+int snd_pcm_generic_poll_descriptors_count(snd_pcm_t *pcm)
+{
+ snd_pcm_generic_t *generic = pcm->private_data;
+ return snd_pcm_poll_descriptors_count(generic->slave);
+}
+
+int snd_pcm_generic_poll_descriptors(snd_pcm_t *pcm, struct pollfd *pfds, unsigned int space)
+{
+ snd_pcm_generic_t *generic = pcm->private_data;
+ return snd_pcm_poll_descriptors(generic->slave, pfds, space);
+}
+
int snd_pcm_generic_poll_revents(snd_pcm_t *pcm, struct pollfd *pfds, unsigned int nfds, unsigned short *revents)
{
snd_pcm_generic_t *generic = pcm->private_data;