mirror of
https://github.com/torvalds/linux.git
synced 2026-05-30 10:04:04 +02:00
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.
This commit is contained in:
commit
a8006eb599
|
|
@ -535,11 +535,11 @@ static int mc_probe(struct platform_device *pdev)
|
|||
" cfg-amp:%d", amp_num);
|
||||
if (!card->components)
|
||||
return -ENOMEM;
|
||||
if (mach->mach_params.dmic_num) {
|
||||
if (soc_sdw_quirk & ASOC_SDW_ACP_DMIC) {
|
||||
card->components = devm_kasprintf(card->dev, GFP_KERNEL,
|
||||
"%s mic:dmic cfg-mics:%d",
|
||||
"%s mic:acp-dmic cfg-mics:%d",
|
||||
card->components,
|
||||
mach->mach_params.dmic_num);
|
||||
1);
|
||||
if (!card->components)
|
||||
return -ENOMEM;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user