diff options
author | Takashi Iwai <tiwai@suse.de> | 2018-07-04 17:01:44 +0300 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2018-07-04 17:41:34 +0300 |
commit | 1a42e7e3aff1aa4789378020318dff7432317d25 (patch) | |
tree | d3f8c79ea63e75c46c6d62f2c0139bba38a0c964 /sound/soc/qcom/lpass-platform.c | |
parent | dae35d1f4f7dab9ccef20037df91c43e680bad0f (diff) | |
download | linux-1a42e7e3aff1aa4789378020318dff7432317d25.tar.xz |
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 <tiwai@suse.de>
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'sound/soc/qcom/lpass-platform.c')
-rw-r--r-- | sound/soc/qcom/lpass-platform.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sound/soc/qcom/lpass-platform.c b/sound/soc/qcom/lpass-platform.c index 31fe78aa207f..d07271ea4c45 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; } |