Skip to content

Commit a8006eb

Browse files
committed
ASoC: amd: acp: update dmic_num logic for acp pdm dmic
Vijendar Mukunda <Vijendar.Mukunda@amd.com> says: This patch series updates the dmic_num logic for acp pdm dmic and renames the dmic component name in acp soundwire legacy machine driver.
2 parents d3d75c7 + 371f6a1 commit a8006eb

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -535,11 +535,11 @@ static int mc_probe(struct platform_device *pdev)
535535
" cfg-amp:%d", amp_num);
536536
if (!card->components)
537537
return -ENOMEM;
538-
if (mach->mach_params.dmic_num) {
538+
if (soc_sdw_quirk & ASOC_SDW_ACP_DMIC) {
539539
card->components = devm_kasprintf(card->dev, GFP_KERNEL,
540-
"%s mic:dmic cfg-mics:%d",
540+
"%s mic:acp-dmic cfg-mics:%d",
541541
card->components,
542-
mach->mach_params.dmic_num);
542+
1);
543543
if (!card->components)
544544
return -ENOMEM;
545545
}

0 commit comments

Comments
 (0)