summaryrefslogtreecommitdiff
path: root/include/ec_commands.h
diff options
context:
space:
mode:
authorYu-Hsuan Hsu <yuhsuan@google.com>2020-07-07 13:16:45 +0800
committerCommit Bot <commit-bot@chromium.org>2020-07-08 01:22:46 +0000
commitbf700a37fa98fd6ed690ca75a3361313e07320ec (patch)
tree3d16cdd02f7c5561a1ae5c15eef8812fa5c2f846 /include/ec_commands.h
parent6a1717f93421baa603179fba5037055699c4fbb0 (diff)
downloadchrome-ec-bf700a37fa98fd6ed690ca75a3361313e07320ec.tar.gz
audio_codec: add the command to reset I2S RX
Adds EC_CODEC_I2S_RX_RESET to reset I2S RX because it is not sure that the I2S RX is always disabled when the kernel booting. For example, it will keep enabled if the kernel crashes while cros_ec_codec is used. BRANCH=none BUG=b:158316196 TEST=Able to reset I2S RX from the kernel. Change-Id: I461e5a3c73a4066a9ceb097fc5320aef98d81db4 Signed-off-by: Yu-Hsuan Hsu <yuhsuan@google.com> Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2284503 Reviewed-by: Edward Hill <ecgh@chromium.org> Reviewed-by: Tzung-Bi Shih <tzungbi@chromium.org> Tested-by: Yu-Hsuan Hsu <yuhsuan@chromium.org> Commit-Queue: Edward Hill <ecgh@chromium.org>
Diffstat (limited to 'include/ec_commands.h')
-rw-r--r--include/ec_commands.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/ec_commands.h b/include/ec_commands.h
index 877ce10018..d141996c41 100644
--- a/include/ec_commands.h
+++ b/include/ec_commands.h
@@ -5001,6 +5001,7 @@ enum ec_codec_i2s_rx_subcmd {
EC_CODEC_I2S_RX_SET_SAMPLE_DEPTH = 0x2,
EC_CODEC_I2S_RX_SET_DAIFMT = 0x3,
EC_CODEC_I2S_RX_SET_BCLK = 0x4,
+ EC_CODEC_I2S_RX_RESET = 0x5,
EC_CODEC_I2S_RX_SUBCMD_COUNT,
};