diff options
author | Seppo Ingalsuo <seppo.ingalsuo@linux.intel.com> | 2019-06-12 12:01:47 -0500 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2019-06-13 19:55:44 +0100 |
commit | 7df43911e92aa2137ae77ae60efaa9d6656df3fe (patch) | |
tree | 5d5bd8a1306934528d7d3f43b17658098f5800dd /include/sound/sof | |
parent | 65a18a46b274e64012fcf19d79ac62c8fb2a12e9 (diff) | |
download | linux-7df43911e92aa2137ae77ae60efaa9d6656df3fe.tar.bz2 |
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.
Signed-off-by: Seppo Ingalsuo <seppo.ingalsuo@linux.intel.com>
Signed-off-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'include/sound/sof')
-rw-r--r-- | include/sound/sof/dai-intel.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/include/sound/sof/dai-intel.h b/include/sound/sof/dai-intel.h index 4bd83f7adddf..4bb8ee138ba7 100644 --- a/include/sound/sof/dai-intel.h +++ b/include/sound/sof/dai-intel.h @@ -167,9 +167,10 @@ struct sof_ipc_dai_dmic_params { uint32_t wake_up_time; /**< Time from clock start to data (us) */ uint32_t min_clock_on_time; /**< Min. time that clk is kept on (us) */ + uint32_t unmute_ramp_time; /**< Length of logarithmic gain ramp (ms) */ /* reserved for future use */ - uint32_t reserved[6]; + uint32_t reserved[5]; /**< variable number of pdm controller config */ struct sof_ipc_dai_dmic_pdm_ctrl pdm[0]; |