]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitc0d29c844744abb9e76ddb204a68ea7ea454a3f7
treed6253f3d05e8dc689d91dad3e04b7ec163aa27c4
parent9b9966c7bc51994ff6941556ebf5659b43465205
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