OSDN Git Service

ASoC: cros_ec_codec: Reset I2S RX when probing
authorYu-Hsuan Hsu <yuhsuan@chromium.org>
Fri, 15 Jan 2021 07:53:01 +0000 (15:53 +0800)
committerMark Brown <broonie@kernel.org>
Tue, 19 Jan 2021 14:09:23 +0000 (14:09 +0000)
commit7f1f7ae102ea082745e320b3c8c003f43c063edf
treed6253f3d05e8dc689d91dad3e04b7ec163aa27c4
parentf4d3bd8be4f2bc43e4b13490cbc9969d15c2f058
ASoC: cros_ec_codec: Reset I2S RX when probing

It is not guaranteed that I2S RX is disabled when the kernel booting.
For example, if the kernel crashes while it is enabled, it will keep
enabled until the next time EC reboots. Reset I2S RX when probing to
fix this issue.

Signed-off-by: Yu-Hsuan Hsu <yuhsuan@chromium.org>
Reviewed-by: Enric Balletbo i Serra <enric.balletbo@collabora.com>
Link: https://lore.kernel.org/r/20210115075301.47995-2-yuhsuan@chromium.org
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/codecs/cros_ec_codec.c