Commit:     1a7fa543cb5d8185d293a03842b33136d8dcc04c
Parent:     940d244851f8a204b5aedae678d9ab96c20b2fec
Author:     Takashi Iwai <[EMAIL PROTECTED]>
AuthorDate: Fri Jul 6 12:27:25 2007 +0200
Committer:  Jaroslav Kysela <[EMAIL PROTECTED]>
CommitDate: Fri Jul 20 11:11:46 2007 +0200

    [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 <[EMAIL PROTECTED]>
    Signed-off-by: Jaroslav Kysela <[EMAIL PROTECTED]>
 sound/core/pcm_native.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/sound/core/pcm_native.c b/sound/core/pcm_native.c
index a96733a..59b29cd 100644
--- a/sound/core/pcm_native.c
+++ b/sound/core/pcm_native.c
@@ -1487,7 +1487,7 @@ static int snd_pcm_drain(struct snd_pcm_substream 
        /* resume pause */
-       if (runtime->status->state == SNDRV_PCM_STATE_PAUSED)
+       if (substream->runtime->status->state == SNDRV_PCM_STATE_PAUSED)
                snd_pcm_pause(substream, 0);
        /* pre-start/stop - all running streams are changed to DRAINING state */
To unsubscribe from this list: send the line "unsubscribe git-commits-head" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at

Reply via email to