OSDN Git Service

ASoC: amd: yc: Add a module parameter to influence pdm_gain
authorMario Limonciello <mario.limonciello@amd.com>
Tue, 31 Jan 2023 18:46:48 +0000 (12:46 -0600)
committerMark Brown <broonie@kernel.org>
Thu, 2 Feb 2023 11:42:22 +0000 (11:42 +0000)
commit02ea45d10fab99040c87d0267656930accb91e3c
treeb6bfa181b0e3262eb911922aa67ed436f8adc2e5
parent6d6f62c868a8ad9c451c22f9f20f08a6149f8487
ASoC: amd: yc: 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-3-mario.limonciello@amd.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/amd/yc/acp6x-pdm-dma.c
sound/soc/amd/yc/acp6x.h