diff options
author | Mario Limonciello <mario.limonciello@amd.com> | 2023-01-31 12:46:50 -0600 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2023-02-02 11:42:24 +0000 |
commit | b7d8d4ec80ee380a82d6748c1d4e9fd89ce6e595 (patch) | |
tree | b1ca632ced9de3c52e088d2de45064d6bc38f285 /sound/soc/amd/renoir/rn_acp3x.h | |
parent | 47dc601a067d9a79989310c8a1f93ea390ae9ead (diff) |
ASoC: amd: renoir: Add a module parameter to influence pdm_gain
In case of regressions for any users that the new pdm_gain value is
too high and for additional debugging, introduce a module parameter
that would let them configure it.
This parameter should be removed in the future:
* If it's determined that the parameter is not needed, just hardcode
the correct value as before
* If users do end up using it to debug and report different values
we should introduce a config knob that can have policy set by ucm.
Signed-off-by: Mario Limonciello <mario.limonciello@amd.com>
Reviewed-by: Jaroslav Kysela <perex@perex.cz>
Link: https://lore.kernel.org/r/20230131184653.10216-5-mario.limonciello@amd.com
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'sound/soc/amd/renoir/rn_acp3x.h')
-rw-r--r-- | sound/soc/amd/renoir/rn_acp3x.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sound/soc/amd/renoir/rn_acp3x.h b/sound/soc/amd/renoir/rn_acp3x.h index c174f84650d2..7d0f4e6a2834 100644 --- a/sound/soc/amd/renoir/rn_acp3x.h +++ b/sound/soc/amd/renoir/rn_acp3x.h @@ -34,7 +34,7 @@ #define ACP_ERROR_STAT 29 #define PDM_DECIMATION_FACTOR 0x2 #define ACP_PDM_CLK_FREQ_MASK 0x07 -#define ACP_WOV_MISC_CTRL_MASK 0x18 +#define ACP_WOV_GAIN_CONTROL GENMASK(4, 3) #define ACP_PDM_ENABLE 0x01 #define ACP_PDM_DISABLE 0x00 #define ACP_PDM_DMA_EN_STATUS 0x02 |