Re: Confusion about whether snd_pcm_poll_descriptors_revents()'s revents field is a single integer or an array

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Mon, 2 Feb 2009, Takashi Iwai wrote:

> ==
> >From fdd79369b24d2e9405d4ec5f1bdfc09dda127ed4 Mon Sep 17 00:00:00 2001
> From: Takashi Iwai <tiwai@xxxxxxx>
> 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 <tiwai@xxxxxxx>

Otherwise acked..

					Jaroslav

-----
Jaroslav Kysela <perex@xxxxxxxx>
Linux Kernel Sound Maintainer
ALSA Project, Red Hat, Inc.

_______________________________________________
Alsa-devel mailing list
Alsa-devel@xxxxxxxxxxxxxxxx
http://mailman.alsa-project.org/mailman/listinfo/alsa-devel

[Index of Archives]     [ALSA User]     [Linux Audio Users]     [Kernel Archive]     [Asterisk PBX]     [Photo Sharing]     [Linux Sound]     [Video 4 Linux]     [Gimp]     [Yosemite News]

  Powered by Linux