diff options
author | Takashi Iwai <tiwai@suse.de> | 2018-07-04 16:01:44 +0200 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2018-07-04 15:41:34 +0100 |
commit | 1a42e7e3aff1aa4789378020318dff7432317d25 (patch) | |
tree | d3f8c79ea63e75c46c6d62f2c0139bba38a0c964 /sound/soc | |
parent | dae35d1f4f7dab9ccef20037df91c43e680bad0f (diff) | |
download | linux-1a42e7e3aff1aa4789378020318dff7432317d25.tar.bz2 |
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')
-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; } |