ASoC: amd: ps: Add a module parameter to influence pdm_gain
authorMario Limonciello <mario.limonciello@amd.com>
Tue, 31 Jan 2023 18:46:52 +0000 (12:46 -0600)
committerMark Brown <broonie@kernel.org>
Thu, 2 Feb 2023 11:42:26 +0000 (11:42 +0000)
commit5579a966229c3365d0e2c91e9a96fc40e293dffa
tree1ef4daf9d7158fa19502d38261413515318dea15
parent99ecc7889bee68fdf377f328c21ad0f953f8b05e
ASoC: amd: ps: 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-7-mario.limonciello@amd.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/amd/ps/acp63.h
sound/soc/amd/ps/ps-pdm-dma.c