mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-11-11 04:18:39 +08:00
ASoC: stm: use snd_pcm_direction_name()
We already have snd_pcm_direction_name(). Let's use it. Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com> Link: https://patch.msgid.link/87o76fk51p.wl-kuninori.morimoto.gx@renesas.com Signed-off-by: Mark Brown <broonie@kernel.org>
This commit is contained in:
parent
d5742b5d4d
commit
7dfdcde201
@ -823,7 +823,7 @@ static int stm32_i2s_trigger(struct snd_pcm_substream *substream, int cmd,
|
||||
case SNDRV_PCM_TRIGGER_PAUSE_RELEASE:
|
||||
/* Enable i2s */
|
||||
dev_dbg(cpu_dai->dev, "start I2S %s\n",
|
||||
playback_flg ? "playback" : "capture");
|
||||
snd_pcm_direction_name(substream->stream));
|
||||
|
||||
cfg1_mask = I2S_CFG1_RXDMAEN | I2S_CFG1_TXDMAEN;
|
||||
regmap_update_bits(i2s->regmap, STM32_I2S_CFG1_REG,
|
||||
@ -869,7 +869,7 @@ static int stm32_i2s_trigger(struct snd_pcm_substream *substream, int cmd,
|
||||
case SNDRV_PCM_TRIGGER_SUSPEND:
|
||||
case SNDRV_PCM_TRIGGER_PAUSE_PUSH:
|
||||
dev_dbg(cpu_dai->dev, "stop I2S %s\n",
|
||||
playback_flg ? "playback" : "capture");
|
||||
snd_pcm_direction_name(substream->stream));
|
||||
|
||||
if (playback_flg)
|
||||
regmap_update_bits(i2s->regmap, STM32_I2S_IER_REG,
|
||||
|
Loading…
Reference in New Issue
Block a user