From: phucduc.bui@gmail.com
To: Mark Brown <broonie@kernel.org>,
Vijendar Mukunda <Vijendar.Mukunda@amd.com>,
Venkata Prasad Potturu <venkataprasad.potturu@amd.com>,
Syed Saba Kareem <syed.sabakareem@amd.com>
Cc: Liam Girdwood <lgirdwood@gmail.com>,
Jaroslav Kysela <perex@perex.cz>, Takashi Iwai <tiwai@suse.com>,
Kees Cook <kees+treewide@kernel.org>,
Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>,
wangdicheng <wangdicheng@kylinos.cn>,
Chris Bainbridge <chris.bainbridge@gmail.com>,
linux-sound@vger.kernel.org, linux-kernel@vger.kernel.org,
bui duc phuc <phucduc.bui@gmail.com>
Subject: [PATCH v2 2/9] ASoC: amd: ps: Simplify component registration
Date: Fri, 4 Dec 2026 18:16:37 +0700 [thread overview]
Message-ID: <20261204111644.63432-3-phucduc.bui@gmail.com> (raw)
In-Reply-To: <20261204111644.63432-1-phucduc.bui@gmail.com>
From: bui duc phuc <phucduc.bui@gmail.com>
Return the result of devm_snd_soc_register_component() directly
in both PDM and SoundWire DMA probe functions.
This also preserves the original error code in the PDM driver
instead of converting it to -ENODEV.
Signed-off-by: bui duc phuc <phucduc.bui@gmail.com>
---
sound/soc/amd/ps/ps-pdm-dma.c | 13 +++----------
sound/soc/amd/ps/ps-sdw-dma.c | 12 +++---------
2 files changed, 6 insertions(+), 19 deletions(-)
diff --git a/sound/soc/amd/ps/ps-pdm-dma.c b/sound/soc/amd/ps/ps-pdm-dma.c
index 6e2e08c097a0..bb5e79c6f519 100644
--- a/sound/soc/amd/ps/ps-pdm-dma.c
+++ b/sound/soc/amd/ps/ps-pdm-dma.c
@@ -397,16 +397,9 @@ static int acp63_pdm_audio_probe(struct platform_device *pdev)
if (status)
return status;
- status = devm_snd_soc_register_component(&pdev->dev,
- &acp63_pdm_component,
- &acp63_pdm_dai_driver, 1);
- if (status) {
- dev_err(&pdev->dev, "Fail to register acp pdm dai\n");
-
- return -ENODEV;
- }
-
- return 0;
+ return devm_snd_soc_register_component(&pdev->dev,
+ &acp63_pdm_component,
+ &acp63_pdm_dai_driver, 1);
}
static int acp63_pdm_resume(struct device *dev)
diff --git a/sound/soc/amd/ps/ps-sdw-dma.c b/sound/soc/amd/ps/ps-sdw-dma.c
index 6b78b2d49b12..94f5264d5c89 100644
--- a/sound/soc/amd/ps/ps-sdw-dma.c
+++ b/sound/soc/amd/ps/ps-sdw-dma.c
@@ -681,15 +681,9 @@ static int acp63_sdw_platform_probe(struct platform_device *pdev)
if (status)
return status;
- status = devm_snd_soc_register_component(&pdev->dev,
- &acp63_sdw_component,
- NULL, 0);
- if (status) {
- dev_err(&pdev->dev, "Fail to register sdw dma component\n");
- return status;
- }
-
- return 0;
+ return devm_snd_soc_register_component(&pdev->dev,
+ &acp63_sdw_component,
+ NULL, 0);
}
static int acp63_restore_sdw_dma_config(struct sdw_dma_dev_data *sdw_data)
--
2.43.0
next prev parent reply other threads:[~2026-12-04 11:17 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-12-04 11:16 [PATCH v2 0/9] ASoC: amd: Use devm_pm_runtime_enable() phucduc.bui
2026-12-04 11:16 ` [PATCH v2 1/9] ASoC: amd: ps: " phucduc.bui
2026-12-04 11:16 ` phucduc.bui [this message]
2026-12-04 11:16 ` [PATCH v2 3/9] ASoC: amd: raven: " phucduc.bui
2026-12-04 11:38 ` sashiko-bot
2026-12-04 11:52 ` Mukunda,Vijendar
2026-12-04 11:16 ` [PATCH v2 4/9] ASoC: amd: raven: Preserve probe error codes phucduc.bui
2026-12-04 11:16 ` [PATCH v2 5/9] ASoC: amd: renoir: Use devm_pm_runtime_enable() phucduc.bui
2026-12-04 11:45 ` sashiko-bot
2026-12-04 11:16 ` [PATCH v2 6/9] ASoC: amd: renoir: Preserve probe error codes phucduc.bui
2026-12-04 11:16 ` [PATCH v2 7/9] ASoC: amd: vangogh: Use devm_pm_runtime_enable() phucduc.bui
2026-12-04 11:52 ` sashiko-bot
2026-12-04 11:16 ` [PATCH v2 8/9] ASoC: amd: yc: " phucduc.bui
2026-12-04 11:16 ` [PATCH v2 9/9] ASoC: amd: yc: Simplify component registration phucduc.bui
2026-12-04 12:46 ` [PATCH v2 0/9] ASoC: amd: Use devm_pm_runtime_enable() Syed Saba Kareem
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20261204111644.63432-3-phucduc.bui@gmail.com \
--to=phucduc.bui@gmail.com \
--cc=Vijendar.Mukunda@amd.com \
--cc=broonie@kernel.org \
--cc=chris.bainbridge@gmail.com \
--cc=kees+treewide@kernel.org \
--cc=kuninori.morimoto.gx@renesas.com \
--cc=lgirdwood@gmail.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-sound@vger.kernel.org \
--cc=perex@perex.cz \
--cc=syed.sabakareem@amd.com \
--cc=tiwai@suse.com \
--cc=venkataprasad.potturu@amd.com \
--cc=wangdicheng@kylinos.cn \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox