Commit 1a42e7e3 authored by Takashi Iwai's avatar Takashi Iwai Committed by Mark Brown

ASoC: qcom: Use snd_pcm_stop_xrun() helper

The XRUN trigger from the driver should be done via
snd_pcm_stop_xrun().  It fixes the missing stream locking as a gratis,
too.
Signed-off-by: default avatarTakashi Iwai <tiwai@suse.de>
Signed-off-by: default avatarMark Brown <broonie@kernel.org>
parent dae35d1f
...@@ -458,7 +458,7 @@ static irqreturn_t lpass_dma_interrupt_handler( ...@@ -458,7 +458,7 @@ static irqreturn_t lpass_dma_interrupt_handler(
return IRQ_NONE; return IRQ_NONE;
} }
dev_warn(soc_runtime->dev, "xrun warning\n"); dev_warn(soc_runtime->dev, "xrun warning\n");
snd_pcm_stop(substream, SNDRV_PCM_STATE_XRUN); snd_pcm_stop_xrun(substream);
ret = IRQ_HANDLED; ret = IRQ_HANDLED;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment