snd_mixer_poll_descriptors_revents should loop over pollfd
PATCH 1/1 snd_mixer_poll_descriptors_revents should loop over pollfd
From: Sander Jansen <[email protected]>
Signed-off-by Sander Jansen <[email protected]>
src/mixer/mixer.c +1 -1
@@ -743,7 +743,7 @@ int snd_mixer_poll_descriptors_revents(snd_mixer_t *mixer, struct pollfd *pfds,if (nfds ==0 )return -EINVAL ; res =0 ; -for (idx =0 ; idx < nfds; idx++) +for (idx =0 ; idx < nfds; idx++, pfds++) res |= pfds->revents & (POLLIN |POLLERR |POLLNVAL ); *revents = res;return 0 ;
Signature · 1 line
1.8.1.3
Takashi Iwai
AppliedAt Mon, 25 Feb 2013 10:41:40 -0600,
Quoted 5 lines · [email protected] wrote:
From: Sander Jansen <[email protected]>
Signed-off-by Sander Jansen <[email protected]>
Thanks, applied now.
Takashi
Quoted 22 lines
src/mixer/mixer.c +1
-1@@ -743,7 +743,7 @@ int snd_mixer_poll_descriptors_revents(snd_mixer_t *mixer, struct pollfd *pfds,if (nfds ==0 )return -EINVAL ; res =0 ; -for (idx =0 ; idx < nfds; idx++) +for (idx =0 ; idx < nfds; idx++, pfds++) res |= pfds->revents & (POLLIN |POLLERR |POLLNVAL ); *revents = res;return 0 ;Signature · 6 lines
1.8.1.3 _______________________________________________ Alsa-devel mailing list [email protected] http://mailman.alsa-project.org/mailman/listinfo/alsa-devel