]> git.alsa-project.org Git - alsa-lib.git/commit
pcm: clarify documentation of poll descriptor usage
authorZeno Endemann <zeno.endemann@mailbox.org>
Fri, 24 Nov 2023 13:33:47 +0000 (14:33 +0100)
committerJaroslav Kysela <perex@perex.cz>
Mon, 11 Dec 2023 08:18:59 +0000 (09:18 +0100)
commitcd04da2bcfe147b08b8db2930b2294aead0a8968
tree9a7bc88f24686b969959a08f64676b2bd1eb8189
parent454638ef30b06a28ed6e42d5d4608498a8874ac1
pcm: clarify documentation of poll descriptor usage

This is based on my understanding of the intended behavior, the
test/pcm.c example code, as well as the github pull request
discussion (#370).

There needs to be more clarifiaction regarding the exact semantics
of the value of the revents output parameter of
snd_pcm_poll_descriptors_revents, since there are events that do
not necessarily correspond to POLLIN or POLLOUT (such as period
events), but I believe this is a lot less obvious and needs
confirmation first.

Closes: https://github.com/alsa-project/alsa-lib/pull/370
Signed-off-by: Zeno Endemann <zeno.endemann@mailbox.org>
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
src/pcm/pcm.c