ASoC: amd: ps: Adjust the gain for PDM DMIC
authorMario Limonciello <mario.limonciello@amd.com>
Tue, 31 Jan 2023 18:46:51 +0000 (12:46 -0600)
committerMark Brown <broonie@kernel.org>
Thu, 2 Feb 2023 11:42:25 +0000 (11:42 +0000)
No issues have been reported yet for DMIC audio level on ps platforms,
but as problems were found both on YC (Rembrandt) and Renoir based
designs it's very likely they happen on ps too.

Increase the PDM gain to solve this problem.

Signed-off-by: Mario Limonciello <mario.limonciello@amd.com>
Reviewed-by: Jaroslav Kysela <perex@perex.cz>
Link: https://lore.kernel.org/r/20230131184653.10216-6-mario.limonciello@amd.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/amd/ps/acp63.h

index b7535c7d093f5e46693ea12e1baeb556e47956b6..893a0455cf24427c75ba91167e7f74f980e83ae4 100644 (file)
@@ -29,7 +29,7 @@
 #define ACP_ERROR_STAT 29
 #define PDM_DECIMATION_FACTOR  2
 #define ACP_PDM_CLK_FREQ_MASK  7
-#define ACP_WOV_MISC_CTRL_MASK 0x10
+#define ACP_WOV_MISC_CTRL_MASK 0x18
 #define ACP_PDM_ENABLE         1
 #define ACP_PDM_DISABLE                0
 #define ACP_PDM_DMA_EN_STATUS  2