From 6e0b0e7c6ad1cf47fbf2915b7aa7429a125a1eb5 Mon Sep 17 00:00:00 2001 From: Takashi Iwai Date: Mon, 25 Feb 2008 15:11:46 +0100 Subject: [PATCH] Fix the state in snd_pcm_ioplug_pause() The states[] in snd_pcm_ioplug_pause() has wrong values. They should be swapped. ALSA bug#3796: https://bugtrack.alsa-project.org/alsa-bug/view.php?id=3796 --- src/pcm/pcm_ioplug.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pcm/pcm_ioplug.c b/src/pcm/pcm_ioplug.c index 2a8ce543..642a9051 100644 --- a/src/pcm/pcm_ioplug.c +++ b/src/pcm/pcm_ioplug.c @@ -484,7 +484,7 @@ static int snd_pcm_ioplug_pause(snd_pcm_t *pcm, int enable) { ioplug_priv_t *io = pcm->private_data; static snd_pcm_state_t states[2] = { - SND_PCM_STATE_PAUSED, SND_PCM_STATE_RUNNING + SND_PCM_STATE_RUNNING, SND_PCM_STATE_PAUSED }; int prev, err; -- 2.47.1