[alsa-devel] [PATCH v2 2/6] ALSA: compress: Add function to indicate the stream has gone bad
Koul, Vinod
vinod.koul at intel.com
Thu Apr 7 02:40:03 CEST 2016
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
More information about the Alsa-devel
mailing list