]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
ASoC: amd: acp: update dmic_num logic for acp pdm dmic
authorVijendar Mukunda <Vijendar.Mukunda@amd.com>
Mon, 30 Mar 2026 07:20:27 +0000 (12:50 +0530)
committerMark Brown <broonie@kernel.org>
Mon, 30 Mar 2026 19:13:59 +0000 (20:13 +0100)
commit5902e1f3c501375797dcd7ca21b58e2c9abbe317
tree5f8f6ccc6e3b7412d886837ecaa8f97159521f01
parent7aaa8047eafd0bd628065b15757d9b48c5f9c07d
ASoC: amd: acp: update dmic_num logic for acp pdm dmic

Currently there is no mechanism to read dmic_num in mach_params
structure. In this scenario mach_params->dmic_num check always
returns 0 which fails to add component string for dmic.
Update the condition check with acp pdm dmic quirk check and
pass the dmic_num as 1.

Fixes: 2981d9b0789c ("ASoC: amd: acp: add soundwire machine driver for legacy stack")
Signed-off-by: Vijendar Mukunda <Vijendar.Mukunda@amd.com>
Link: https://patch.msgid.link/20260330072431.3512358-2-Vijendar.Mukunda@amd.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/amd/acp/acp-sdw-legacy-mach.c