[alsa-devel] error in snd_pcm_drain()

Eliot Blennerhassett linux at audioscience.com
Thu Jul 5 09:37:41 CEST 2007


Maybe an error in snd_pcm_drain - not sure what effect it might have...
	
snd_pcm_group_for_each_entry(s, substream) {
		runtime = s->runtime;
...
	}
	up_read(&snd_pcm_link_rwsem);
	snd_pcm_stream_lock_irq(substream);

/* pcm_native.c around line 1491: */
/* error? runtime has been changed by group_for_each 
should use substream->runtime instead?
*/

	/* resume pause */
	if (runtime->status->state == SNDRV_PCM_STATE_PAUSED)
		snd_pcm_pause(substream, 0);


--
Eliot


More information about the Alsa-devel mailing list