Skip to content

Commit 138e6da

Browse files
Venkata-Prasad-Potturubroonie
authored andcommitted
ASoC: amd: acp: Fix devm_snd_soc_register_card(acp-pdm-mach) failure
Add condition check to fix devm_snd_soc_register_card(acp-pdm-mach) deferred probe failure, when pdm DSD entry is not available. [15.910456] acp_mach acp-pdm-mach: devm_snd_soc_register_card(acp-pdm-mach) failed: -517 [15.910536] platform acp-pdm-mach: deferred probe pending: (reason unknown) Fixes: 6e60db7 ("ASoC: amd: acp: Refactor acp machine select") Signed-off-by: Venkata Prasad Potturu <venkataprasad.potturu@amd.com> Link: https://patch.msgid.link/20250425060144.1773265-3-venkataprasad.potturu@amd.com Signed-off-by: Mark Brown <broonie@kernel.org>
1 parent 6d9b641 commit 138e6da

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sound/soc/amd/acp/acp-legacy-common.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -450,7 +450,7 @@ int acp_machine_select(struct acp_chip_info *chip)
450450
struct snd_soc_acpi_mach *mach;
451451
int size, platform;
452452

453-
if (chip->flag == FLAG_AMD_LEGACY_ONLY_DMIC) {
453+
if (chip->flag == FLAG_AMD_LEGACY_ONLY_DMIC && chip->is_pdm_dev) {
454454
platform = chip->acp_rev;
455455
chip->mach_dev = platform_device_register_data(chip->dev, "acp-pdm-mach",
456456
PLATFORM_DEVID_NONE, &platform,

0 commit comments

Comments
 (0)