[<prev] [next>] [day] [month] [year] [list]
Message-ID: <20241210121106.497223-1-etoyz688@gmail.com>
Date: Tue, 10 Dec 2024 20:11:02 +0800
From: Yang Zhao <etoyz688@...il.com>
To:
Cc: Yang Zhao <etoyz688@...il.com>,
Liam Girdwood <lgirdwood@...il.com>,
Mark Brown <broonie@...nel.org>,
Jaroslav Kysela <perex@...ex.cz>,
Takashi Iwai <tiwai@...e.com>,
Mario Limonciello <mario.limonciello@....com>,
Jiawei Wang <me@...ng.link>,
"end.to.start" <end.to.start@...l.ru>,
Venkata Prasad Potturu <venkataprasad.potturu@....com>,
linux-sound@...r.kernel.org,
linux-kernel@...r.kernel.org
Subject: [PATCH] ASoC: amd: yc: Fix bug where quirks code was skipped due to early return.
Replaced the early return with DMI quirks code.
This ensures that DMI quirks are executed.
Fixes: 4095cf872084 ("ASoC: amd: yc: Fix for enabling DMIC on acp6x via _DSD entry")
Signed-off-by: Yang Zhao <etoyz688@...il.com>
---
sound/soc/amd/yc/acp6x-mach.c | 19 +++++++++----------
1 file changed, 9 insertions(+), 10 deletions(-)
diff --git a/sound/soc/amd/yc/acp6x-mach.c b/sound/soc/amd/yc/acp6x-mach.c
index e38c5885dadf..9dfbcd00b897 100644
--- a/sound/soc/amd/yc/acp6x-mach.c
+++ b/sound/soc/amd/yc/acp6x-mach.c
@@ -23,7 +23,7 @@ SND_SOC_DAILINK_DEF(acp6x_pdm,
SND_SOC_DAILINK_DEF(dmic_codec,
DAILINK_COMP_ARRAY(COMP_CODEC("dmic-codec.0",
- "dmic-hifi")));
+ "dmic-hifi")));
SND_SOC_DAILINK_DEF(pdm_platform,
DAILINK_COMP_ARRAY(COMP_PLATFORM("acp_yc_pdm_dma.0")));
@@ -583,13 +583,12 @@ static int acp6x_probe(struct platform_device *pdev)
if (is_dmic_enable && wov_en)
platform_set_drvdata(pdev, &acp6x_card);
- else
- return 0;
-
- /* check for any DMI overrides */
- dmi_id = dmi_first_match(yc_acp_quirk_table);
- if (dmi_id)
- platform_set_drvdata(pdev, dmi_id->driver_data);
+ else {
+ /* check for any DMI overrides */
+ dmi_id = dmi_first_match(yc_acp_quirk_table);
+ if (dmi_id)
+ platform_set_drvdata(pdev, dmi_id->driver_data);
+ }
card = platform_get_drvdata(pdev);
if (!card)
@@ -601,8 +600,8 @@ static int acp6x_probe(struct platform_device *pdev)
ret = devm_snd_soc_register_card(&pdev->dev, card);
if (ret) {
return dev_err_probe(&pdev->dev, ret,
- "snd_soc_register_card(%s) failed\n",
- card->name);
+ "snd_soc_register_card(%s) failed\n",
+ card->name);
}
return 0;
}
--
2.47.1
Powered by blists - more mailing lists