From: Takashi Iwai Date: Wed, 4 Jul 2018 14:01:44 +0000 (+0200) Subject: ASoC: qcom: Use snd_pcm_stop_xrun() helper X-Git-Tag: v4.19~92^2~2^2~194 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=1a42e7e3aff1aa4789378020318dff7432317d25;p=platform%2Fkernel%2Flinux-rpi3.git 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: Takashi Iwai Signed-off-by: Mark Brown --- diff --git a/sound/soc/qcom/lpass-platform.c b/sound/soc/qcom/lpass-platform.c index 31fe78a..d07271e 100644 --- a/sound/soc/qcom/lpass-platform.c +++ b/sound/soc/qcom/lpass-platform.c @@ -458,7 +458,7 @@ static irqreturn_t lpass_dma_interrupt_handler( return IRQ_NONE; } dev_warn(soc_runtime->dev, "xrun warning\n"); - snd_pcm_stop(substream, SNDRV_PCM_STATE_XRUN); + snd_pcm_stop_xrun(substream); ret = IRQ_HANDLED; }