未验证 提交 7b6b0049 编写于 作者: O Olivier Moysan 提交者: Mark Brown

ASoC: stm32: i2s: skip useless write in slave mode

Dummy write in capture master mode is used to gate
bus clocks. This write is useless in slave mode
as the clocks are not managed by slave.
Signed-off-by: NOlivier Moysan <olivier.moysan@st.com>
Signed-off-by: NMark Brown <broonie@kernel.org>
上级 3005decf
......@@ -623,8 +623,8 @@ static int stm32_i2s_trigger(struct snd_pcm_substream *substream, int cmd,
} else {
ier = I2S_IER_OVRIE;
if (i2s->refcount == 1)
/* dummy write to trigger capture */
if (STM32_I2S_IS_MASTER(i2s) && i2s->refcount == 1)
/* dummy write to gate bus clocks */
regmap_write(i2s->regmap,
STM32_I2S_TXDR_REG, 0);
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册