ASoC: stm32: i2s: change trigger traces
Update traces to log capture/playback stream start/stop. Signed-off-by: Olivier Moysan <olivier.moysan@st.com> Signed-off-by: Mark Brown <broonie@kernel.org>
This commit is contained in:
Родитель
686174a098
Коммит
52e7306ca2
|
@ -593,7 +593,8 @@ static int stm32_i2s_trigger(struct snd_pcm_substream *substream, int cmd,
|
|||
case SNDRV_PCM_TRIGGER_RESUME:
|
||||
case SNDRV_PCM_TRIGGER_PAUSE_RELEASE:
|
||||
/* Enable i2s */
|
||||
dev_dbg(cpu_dai->dev, "start I2S\n");
|
||||
dev_dbg(cpu_dai->dev, "start I2S %s\n",
|
||||
playback_flg ? "playback" : "capture");
|
||||
|
||||
cfg1_mask = I2S_CFG1_RXDMAEN | I2S_CFG1_TXDMAEN;
|
||||
regmap_update_bits(i2s->regmap, STM32_I2S_CFG1_REG,
|
||||
|
@ -638,6 +639,9 @@ static int stm32_i2s_trigger(struct snd_pcm_substream *substream, int cmd,
|
|||
case SNDRV_PCM_TRIGGER_STOP:
|
||||
case SNDRV_PCM_TRIGGER_SUSPEND:
|
||||
case SNDRV_PCM_TRIGGER_PAUSE_PUSH:
|
||||
dev_dbg(cpu_dai->dev, "stop I2S %s\n",
|
||||
playback_flg ? "playback" : "capture");
|
||||
|
||||
if (playback_flg)
|
||||
regmap_update_bits(i2s->regmap, STM32_I2S_IER_REG,
|
||||
I2S_IER_UDRIE,
|
||||
|
@ -654,8 +658,6 @@ static int stm32_i2s_trigger(struct snd_pcm_substream *substream, int cmd,
|
|||
break;
|
||||
}
|
||||
|
||||
dev_dbg(cpu_dai->dev, "stop I2S\n");
|
||||
|
||||
ret = regmap_update_bits(i2s->regmap, STM32_I2S_CR1_REG,
|
||||
I2S_CR1_SPE, 0);
|
||||
if (ret < 0) {
|
||||
|
|
Загрузка…
Ссылка в новой задаче