summaryrefslogtreecommitdiff
path: root/common/ec_features.c
diff options
context:
space:
mode:
authorCheng-Yi Chiang <cychiang@chromium.org>2018-08-13 17:01:31 +0800
committerchrome-bot <chrome-bot@chromium.org>2018-12-20 18:06:17 -0800
commit01b326eb4c4c7863ebecd8fe42102d784374f7e7 (patch)
treeb4b3875fecacc40d741cf3566fcb2a6b487530c3 /common/ec_features.c
parent76bdf421c5ee0b5db14380dcd3fd5efee6fc1457 (diff)
downloadchrome-ec-01b326eb4c4c7863ebecd8fe42102d784374f7e7.tar.gz
audio_codec: add audio codec feature
This CL adds support for the audio codec feature required to support dmic and I2S operation. BRANCH=none BUG=b:116766596 TEST=On cheza verifed recording works using the following kernel commands and the loading the audio file into audacity. amixer -c 0 cset iface=MIXER,name='MultiMedia1 Mixer SEC_MI2S_TX' on amixer -c0 cset numid=27 30,30 arecord -D hw:0,0 -f dat /tmp/rec.wav -d 5 Change-Id: I2b3ba097aaf6a7854551db2033914d00ac3ec275 Signed-off-by: Cheng-Yi Chiang <cychiang@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/1192702 Tested-by: Scott Collyer <scollyer@chromium.org> Reviewed-by: Wai-Hong Tam <waihong@google.com>
Diffstat (limited to 'common/ec_features.c')
-rw-r--r--common/ec_features.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/common/ec_features.c b/common/ec_features.c
index b0f5876e92..4bf9f14c2a 100644
--- a/common/ec_features.c
+++ b/common/ec_features.c
@@ -131,6 +131,9 @@ uint32_t get_feature_flags1(void)
#if defined(CONFIG_LID_ANGLE) && defined(CONFIG_TABLET_MODE)
| EC_FEATURE_MASK_1(EC_FEATURE_REFINED_TABLET_MODE_HYSTERESIS)
#endif
+#ifdef CONFIG_AUDIO_CODEC
+ | EC_FEATURE_MASK_1(EC_FEATURE_AUDIO_CODEC)
+#endif
;
#ifdef CONFIG_EC_FEATURE_BOARD_OVERRIDE
result = board_override_feature_flags1(result);