]> git.baikalelectronics.ru Git - kernel.git/commit
[ALSA] Fix substream to check in PCM drain
authorTakashi Iwai <tiwai@suse.de>
Fri, 6 Jul 2007 10:27:25 +0000 (12:27 +0200)
committerJaroslav Kysela <perex@suse.cz>
Fri, 20 Jul 2007 09:11:46 +0000 (11:11 +0200)
commit8e1c2176ee64fa447aad02bbba5cc6c67f21ddf0
treed81e9852e5fc50dd9d14c28de767f7629138f3a8
parent68380c5f56dfdd7ee5a589b9e179b1c13d502f4d
[ALSA] Fix substream to check in PCM drain

The check of a substream in snd_pcm_drain() might not be always correct
since runtime can point a different substream (although the PCM state
of each linked substream should be same, in theory).
This patch fixes it.

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