summaryrefslogtreecommitdiff
path: root/builtin
diff options
context:
space:
mode:
authorTzung-Bi Shih <tzungbi@chromium.org>2019-06-29 07:25:46 +0800
committerCommit Bot <commit-bot@chromium.org>2019-09-19 07:59:11 +0000
commit8fe3e6a850f06b499cc60834a925736ce95171d9 (patch)
treefdecb38045e7e18336e678d2614f7b649bcda733 /builtin
parente0d9bb6fdef6fe87dac52ea7f26281f8d3239a7a (diff)
downloadchrome-ec-8fe3e6a850f06b499cc60834a925736ce95171d9.tar.gz
chip/mt_scp: support software gain
Multiply the audio data by a gain value. Note that it get muted when gain is 0. BRANCH=none BUG=b:122027734, b:123268236 TEST=1. define CONFIG_AUDIO_CODEC in board.h 2. define CONFIG_AUDIO_CODEC_DMIC in board.h 3. define CONFIG_AUDIO_CODEC_DMIC_SOFTWARE_GAIN in board.h 4. define CONFIG_AUDIO_CODEC_DMIC_MAX_SOFTWARE_GAIN in board.h 5. define CONFIG_AUDIO_CODEC_WOV in board.h 6. make BOARD=kukui_scp -j Change-Id: I8c308ffb6d7c8f5bd378524bdffc980d7b9948fa Signed-off-by: Tzung-Bi Shih <tzungbi@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/1683028 Reviewed-by: Nicolas Boichat <drinkcat@chromium.org>
Diffstat (limited to 'builtin')
-rw-r--r--builtin/stdint.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/builtin/stdint.h b/builtin/stdint.h
index ada936c2d3..dedc9de475 100644
--- a/builtin/stdint.h
+++ b/builtin/stdint.h
@@ -57,6 +57,9 @@ typedef int64_t int_fast64_t;
#ifndef INT16_MAX
#define INT16_MAX (32767U)
#endif
+#ifndef INT16_MIN
+#define INT16_MIN (-32768)
+#endif
#ifndef UINT32_MAX
#define UINT32_MAX (4294967295U)