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
26 26
27/* SOF ABI version major, minor and patch numbers */27/* SOF ABI version major, minor and patch numbers */
28#define SOF_ABI_MAJOR 328#define SOF_ABI_MAJOR 3
29#define SOF_ABI_MINOR 729#define SOF_ABI_MINOR 8
30#define SOF_ABI_PATCH 030#define SOF_ABI_PATCH 0
31 31
32/* SOF ABI version number. Format within 32bit word is MMmmmppp */32/* 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
85#define SOF_TKN_INTEL_DMIC_NUM_PDM_ACTIVE 60585#define SOF_TKN_INTEL_DMIC_NUM_PDM_ACTIVE 605
86#define SOF_TKN_INTEL_DMIC_SAMPLE_RATE 60886#define SOF_TKN_INTEL_DMIC_SAMPLE_RATE 608
87#define SOF_TKN_INTEL_DMIC_FIFO_WORD_LENGTH 60987#define SOF_TKN_INTEL_DMIC_FIFO_WORD_LENGTH 609
88#define SOF_TKN_INTEL_DMIC_UNMUTE_RAMP_TIME_MS 610
88 89
89/* DMIC PDM */90/* DMIC PDM */
90#define SOF_TKN_INTEL_DMIC_PDM_CTRL_ID 70091#define SOF_TKN_INTEL_DMIC_PDM_CTRL_ID 700