Skip to content

Commit 67e582c

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 edfa91b commit 67e582c

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
@@ -520,11 +520,11 @@ static int mc_probe(struct platform_device *pdev)
520520
" cfg-amp:%d", amp_num);
521521
if (!card->components)
522522
return -ENOMEM;
523-
if (mach->mach_params.dmic_num) {
523+
if (soc_sdw_quirk & ASOC_SDW_ACP_DMIC) {
524524
card->components = devm_kasprintf(card->dev, GFP_KERNEL,
525525
"%s mic:dmic cfg-mics:%d",
526526
card->components,
527-
mach->mach_params.dmic_num);
527+
1);
528528
if (!card->components)
529529
return -ENOMEM;
530530
}

0 commit comments

Comments
 (0)