ALSA: pcm - Simplify snd_pcm_drain() implementation
authorTakashi Iwai <tiwai@suse.de>
Thu, 17 Sep 2009 16:46:26 +0000 (18:46 +0200)
committerTakashi Iwai <tiwai@suse.de>
Mon, 21 Sep 2009 13:13:09 +0000 (15:13 +0200)
commitd3a7dcfeeb6856215412065bd0f774de83f43414
treea36a83bd636afda8ac5048717461fc302459abad
parent87bfa1dbfb22aab2bb6c1085c1fe7d56cdd2f044
ALSA: pcm - Simplify snd_pcm_drain() implementation

Simplify snd_pcm_drain() implementation and avoid unneeded array-
allocation for waitqueues.  Instead, one waitqueue is used for the
first draining stream, and wait until all streams finished.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/core/pcm_native.c