diff options
author | olivier moysan <olivier.moysan@st.com> | 2017-06-16 14:15:32 +0200 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2017-06-16 18:58:57 +0100 |
commit | 4fa17938ea400b6478b24565483f2ac54122316f (patch) | |
tree | dc7a9f045781b4b8bbe1a2184ebe331c34aa4537 /sound/soc | |
parent | 607c61d40b9c29ab0902541d0d372b18793d6831 (diff) | |
download | linux-4fa17938ea400b6478b24565483f2ac54122316f.tar.gz linux-4fa17938ea400b6478b24565483f2ac54122316f.tar.bz2 linux-4fa17938ea400b6478b24565483f2ac54122316f.zip |
ASoC: stm32: sai: change stop sequence
Disable SAI before stopping DMA data transfers.
Signed-off-by: olivier moysan <olivier.moysan@st.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'sound/soc')
-rw-r--r-- | sound/soc/stm/stm32_sai_sub.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/sound/soc/stm/stm32_sai_sub.c b/sound/soc/stm/stm32_sai_sub.c index 24b8874cfe5f..97b69a3ab46e 100644 --- a/sound/soc/stm/stm32_sai_sub.c +++ b/sound/soc/stm/stm32_sai_sub.c @@ -629,12 +629,12 @@ static int stm32_sai_trigger(struct snd_pcm_substream *substream, int cmd, dev_dbg(cpu_dai->dev, "Disable DMA and SAI\n"); regmap_update_bits(sai->regmap, STM_SAI_CR1_REGX, - SAI_XCR1_DMAEN, - (unsigned int)~SAI_XCR1_DMAEN); + SAI_XCR1_SAIEN, + (unsigned int)~SAI_XCR1_SAIEN); ret = regmap_update_bits(sai->regmap, STM_SAI_CR1_REGX, - SAI_XCR1_SAIEN, - (unsigned int)~SAI_XCR1_SAIEN); + SAI_XCR1_DMAEN, + (unsigned int)~SAI_XCR1_DMAEN); if (ret < 0) dev_err(cpu_dai->dev, "Failed to update CR1 register\n"); break; |