From: Takashi Iwai Subject: Re: Confusion about whether snd_pcm_poll_descriptors_revents()'s revents field is a single integer or an array Date: Mon, 02 Feb 2009 16:10:43 +0100 Message-ID: References: <20090202025021.GA20642@tango.0pointer.de> 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 mx1.suse.de (mx1.suse.de [195.135.220.2]) by alsa0.perex.cz (Postfix) with ESMTP id 6111524359 for ; Mon, 2 Feb 2009 16:10:43 +0100 (CET) In-Reply-To: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: alsa-devel-bounces@alsa-project.org Errors-To: alsa-devel-bounces@alsa-project.org To: Jaroslav Kysela Cc: ALSA Development Mailing List , Lennart Poettering List-Id: alsa-devel@alsa-project.org At Mon, 2 Feb 2009 16:04:10 +0100 (CET), Jaroslav Kysela wrote: > > On Mon, 2 Feb 2009, Takashi Iwai wrote: > > > == > > >From fdd79369b24d2e9405d4ec5f1bdfc09dda127ed4 Mon Sep 17 00:00:00 2001 > > From: Takashi Iwai > > Date: Mon, 2 Feb 2009 15:43:48 +0100 > > Subject: [PATCH] Fix handling of revents in snd_pcm_poll_descriptors_revents() > > > > The revents parameter is ambiguously defined whether it's a pointer > > to a single event or an arary. While the recent pcm_hw.c assumes it > > being a single event, the old multi plugin supposed it as an array. > > Similarly snd_pcm_wait_nocheck() checks the revents as an arary. > > Please, remove notice about the multi plugin. It is not true. > > > This patch defines the behavior of revents more strictly. It's a > > pointer of a single event. > > > > > > Fixed snd_pcm_wait_nocheck() to follow that. > > > > Signed-off-by: Takashi Iwai > > Otherwise acked.. OK, done. Takashi