From: Takashi Iwai Subject: Re: [PATCH - alsa-lib/mixer 1/1] snd_mixer_poll_descriptors_revents should loop over pollfd Date: Tue, 26 Feb 2013 10:08:36 +0100 Message-ID: References: <512b944d.1317b60a.47ee.ffffe8ac@mx.google.com> Mime-Version: 1.0 (generated by SEMI 1.14.6 - "Maruoka") Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from mx2.suse.de (cantor2.suse.de [195.135.220.15]) by alsa0.perex.cz (Postfix) with ESMTP id 8329526501D for ; Tue, 26 Feb 2013 10:08:38 +0100 (CET) In-Reply-To: <512b944d.1317b60a.47ee.ffffe8ac@mx.google.com> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: alsa-devel-bounces@alsa-project.org Sender: alsa-devel-bounces@alsa-project.org To: s.jansen@gmail.com Cc: alsa-devel@alsa-project.org List-Id: alsa-devel@alsa-project.org At Mon, 25 Feb 2013 10:41:40 -0600, s.jansen@gmail.com wrote: > > From: Sander Jansen > > > Signed-off-by: Sander Jansen Thanks, applied now. Takashi > > diff --git a/src/mixer/mixer.c b/src/mixer/mixer.c > index 85d843f..8deceac 100644 > --- a/src/mixer/mixer.c > +++ b/src/mixer/mixer.c > @@ -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; > -- > 1.8.1.3 > > _______________________________________________ > Alsa-devel mailing list > Alsa-devel@alsa-project.org > http://mailman.alsa-project.org/mailman/listinfo/alsa-devel >