ASoC: amd: renoir: Add a module parameter to influence pdm_gain
authorMario Limonciello <mario.limonciello@amd.com>
Tue, 31 Jan 2023 18:46:50 +0000 (12:46 -0600)
committerMark Brown <broonie@kernel.org>
Thu, 2 Feb 2023 11:42:24 +0000 (11:42 +0000)
commitb7d8d4ec80ee380a82d6748c1d4e9fd89ce6e595
treeb1ca632ced9de3c52e088d2de45064d6bc38f285
parent47dc601a067d9a79989310c8a1f93ea390ae9ead
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>
sound/soc/amd/renoir/acp3x-pdm-dma.c
sound/soc/amd/renoir/rn_acp3x.h