Follow the locking model used within soc-pcm.c

Signed-off-by: Pierre-Louis Bossart <pierre-louis.boss...@linux.intel.com>
---
 sound/soc/fsl/fsl_asrc_dma.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/sound/soc/fsl/fsl_asrc_dma.c b/sound/soc/fsl/fsl_asrc_dma.c
index cd9b36ec0ecb..b67097503836 100644
--- a/sound/soc/fsl/fsl_asrc_dma.c
+++ b/sound/soc/fsl/fsl_asrc_dma.c
@@ -151,6 +151,7 @@ static int fsl_asrc_dma_hw_params(struct snd_soc_component 
*component,
        int ret, width;
 
        /* Fetch the Back-End dma_data from DPCM */
+       snd_soc_dpcm_fe_lock_irq(rtd, stream);
        for_each_dpcm_be(rtd, stream, dpcm) {
                struct snd_soc_pcm_runtime *be = dpcm->be;
                struct snd_pcm_substream *substream_be;
@@ -164,6 +165,7 @@ static int fsl_asrc_dma_hw_params(struct snd_soc_component 
*component,
                dev_be = dai->dev;
                break;
        }
+       snd_soc_dpcm_fe_unlock_irq(rtd, stream);
 
        if (!dma_params_be) {
                dev_err(dev, "failed to get the substream of Back-End\n");
-- 
2.25.1

Reply via email to