Skip to content

Commit 772a309

Browse files
vijendarmukundagregkh
authored andcommitted
ASoC: amd: acp: update dmic_num logic for acp pdm dmic
[ Upstream commit 5902e1f ] 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: 2981d9b ("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> Signed-off-by: Sasha Levin <sashal@kernel.org>
1 parent b37a978 commit 772a309

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

sound/soc/amd/acp/acp-sdw-legacy-mach.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -551,11 +551,11 @@ static int mc_probe(struct platform_device *pdev)
551551
" cfg-amp:%d", amp_num);
552552
if (!card->components)
553553
return -ENOMEM;
554-
if (mach->mach_params.dmic_num) {
554+
if (soc_sdw_quirk & ASOC_SDW_ACP_DMIC) {
555555
card->components = devm_kasprintf(card->dev, GFP_KERNEL,
556556
"%s mic:dmic cfg-mics:%d",
557557
card->components,
558-
mach->mach_params.dmic_num);
558+
1);
559559
if (!card->components)
560560
return -ENOMEM;
561561
}

0 commit comments

Comments
 (0)