On Wed, 2016-04-06 at 11:21 +0100, Charles Keepax wrote: > +int snd_compr_stop_xrun(struct snd_compr_stream *stream) > +{ > + if (stream->runtime->state == SNDRV_PCM_STATE_XRUN) > + return 0; > + > + stream->runtime->state = SNDRV_PCM_STATE_XRUN; > + > + queue_delayed_work(system_power_efficient_wq, &stream > ->xrun_work, 0); why do we want to do this in workqueue and not stop the compress stream immediately. Also if we do this, then why should pointer return error? -- ~Vinod _______________________________________________ Alsa-devel mailing list Alsa-devel@xxxxxxxxxxxxxxxx http://mailman.alsa-project.org/mailman/listinfo/alsa-devel