History

ASoC: SOF: Add DMIC token for unmute gain ramp time

The settling time of DMIC DC level is both platform and used microphone model specific. The unmute gain ramp is used to conceal most of the large DC level seen in beginning of capture. This patch adds into the DMIC DAI IPC struct a new field called unmute_ramp_time and a new token SOF_TKN_INTEL_DMIC_UNMUTE_RAMP_TIME. The value is the ramp length in milliseconds (ms). The ABI minor version is incremented for this backwards compatible change.

Seppo Ingalsuo committed 7 years ago

Commit 7df43911 parent 65a18a44 files · +8 −2Browse files

Showing the changes to include/uapi/sound/sof (2 of 4 files). Show all

Unified · Split

2 files
  1. include/uapi/sound/sof/abi.h +1 −1
  2. include/uapi/sound/sof/tokens.h +1 −0
include/uapi/sound/sof/abi.h+1−1
@@ -26,7 +26,7 @@ · 25 unmodified lines
2626
2727 /* SOF ABI version major, minor and patch numbers */
2828 #define SOF_ABI_MAJOR 3
29−#define SOF_ABI_MINOR 7
29+#define SOF_ABI_MINOR 8
3030 #define SOF_ABI_PATCH 0
3131
3232 /* SOF ABI version number. Format within 32bit word is MMmmmppp */
include/uapi/sound/sof/tokens.h+1−0
@@ -85,6 +85,7 @@ · 84 unmodified lines
8585 #define SOF_TKN_INTEL_DMIC_NUM_PDM_ACTIVE 605
8686 #define SOF_TKN_INTEL_DMIC_SAMPLE_RATE 608
8787 #define SOF_TKN_INTEL_DMIC_FIFO_WORD_LENGTH 609
88+#define SOF_TKN_INTEL_DMIC_UNMUTE_RAMP_TIME_MS 610
8889
8990 /* DMIC PDM */
9091 #define SOF_TKN_INTEL_DMIC_PDM_CTRL_ID 700