alsa-lib: Fix the state in snd_pcm_ioplug_pause()
A message that is not in the archive (sent off-list or not yet received): [email protected]
Quoted 11 lines · Takashi Iwai
changeset: 2423:7388ad3d21ea tag: tip user: tiwai date: Mon Feb 25 15:11:46 2008 +0100 files: src/pcm/pcm_ioplug.cdescription:
Fix the state insnd_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
Aren't some bits missing from this bug report? (s/o->data->state = states[enable]/io->data->state = states[prev])
Quoted 22 lines
diff -r
6d83f965a9d9-r7388ad3d21easrc/pcm/pcm_ioplug.csrc/pcm/pcm_ioplug.c +1
-2@@ -484,7 +484,7 @@ static int snd_pcm_ioplug_pause(snd_pcm_ {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; -------------------------------------------------------------------------This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Alsa-cvslog mailing list [email protected]
https://lists.sourceforge.net/lists/listinfo/alsa-cvslog
At Mon, 25 Feb 2008 16:29:51 +0100,
Quoted 11 lines · Thierry Vignaud
Quoted 8 lines · Takashi Iwai
changeset: 2423:7388ad3d21ea tag: tip user: tiwai date: Mon Feb 25 15:11:46 2008 +0100 files: src/pcm/pcm_ioplug.cdescription:
Fix the state insnd_pcm_ioplug_pause()
Quoted 6 lines
Quoted 3 lines
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=3796Aren't some bits missing from this bug report? (s/o->data->state = states[enable]/io->data->state = states[prev])
No, the current code is correct.
Takashi