Skip to content

Commit

Permalink
ASoC: qcom: Use snd_pcm_stop_xrun() helper
Browse files Browse the repository at this point in the history
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 <tiwai@suse.de>
Signed-off-by: Mark Brown <broonie@kernel.org>
  • Loading branch information
Takashi Iwai authored and Mark Brown committed Jul 4, 2018
1 parent dae35d1 commit 1a42e7e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sound/soc/qcom/lpass-platform.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down

0 comments on commit 1a42e7e

Please sign in to comment.