7 Apr
2016
7 Apr
'16
2:40 a.m.
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