* [PATCH v2 1/2] ASoC: core: Do not error if a DAI link component is not found
2023-08-24 21:12 [PATCH v2 0/2] A couple of ASoC core fixes Cristian Ciocaltea
@ 2023-08-24 21:12 ` Cristian Ciocaltea
2023-08-24 21:12 ` [PATCH v2 2/2] ASoC: core: Rename component_not_find label Cristian Ciocaltea
2023-08-24 22:15 ` [PATCH v2 0/2] A couple of ASoC core fixes Mark Brown
2 siblings, 0 replies; 4+ messages in thread
From: Cristian Ciocaltea @ 2023-08-24 21:12 UTC (permalink / raw)
To: Liam Girdwood, Mark Brown, Jaroslav Kysela, Takashi Iwai,
Kuninori Morimoto
Cc: alsa-devel, linux-kernel, kernel
A recent cleanup of soc_dai_link_sanity_check() is responsible for
generating lots of confusing errors before returning -EPROBE_DEFER:
acp5x_mach acp5x_mach.0: ASoC: Component acp5x_i2s_dma.0 not found for link acp5x-8821-play
[...]
acp5x_mach acp5x_mach.0: ASoC: Component spi-VLV1776:00 not found for link acp5x-CS35L41-Stereo
[...]
acp5x_mach acp5x_mach.0: ASoC: Component spi-VLV1776:01 not found for link acp5x-CS35L41-Stereo
Switch back to the initial behaviour of logging those messages on
KERN_DEBUG level instead of KERN_ERR.
Fixes: 0e66a2c69409 ("ASoC: soc-core.c: cleanup soc_dai_link_sanity_check()")
Signed-off-by: Cristian Ciocaltea <cristian.ciocaltea@collabora.com>
---
sound/soc/soc-core.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/sound/soc/soc-core.c b/sound/soc/soc-core.c
index a5b96c17633a..75a9641349ee 100644
--- a/sound/soc/soc-core.c
+++ b/sound/soc/soc-core.c
@@ -1003,7 +1003,7 @@ static int soc_dai_link_sanity_check(struct snd_soc_card *card,
return -EINVAL;
component_not_find:
- dev_err(card->dev, "ASoC: Component %s not found for link %s\n", dlc->name, link->name);
+ dev_dbg(card->dev, "ASoC: Component %s not found for link %s\n", dlc->name, link->name);
return -EPROBE_DEFER;
dai_empty:
--
2.41.0
^ permalink raw reply [flat|nested] 4+ messages in thread* [PATCH v2 2/2] ASoC: core: Rename component_not_find label
2023-08-24 21:12 [PATCH v2 0/2] A couple of ASoC core fixes Cristian Ciocaltea
2023-08-24 21:12 ` [PATCH v2 1/2] ASoC: core: Do not error if a DAI link component is not found Cristian Ciocaltea
@ 2023-08-24 21:12 ` Cristian Ciocaltea
2023-08-24 22:15 ` [PATCH v2 0/2] A couple of ASoC core fixes Mark Brown
2 siblings, 0 replies; 4+ messages in thread
From: Cristian Ciocaltea @ 2023-08-24 21:12 UTC (permalink / raw)
To: Liam Girdwood, Mark Brown, Jaroslav Kysela, Takashi Iwai,
Kuninori Morimoto
Cc: alsa-devel, linux-kernel, kernel
Use the correct form of the verb in 'component_not_find' label, from
soc_dai_link_sanity_check() function.
Signed-off-by: Cristian Ciocaltea <cristian.ciocaltea@collabora.com>
---
sound/soc/soc-core.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/sound/soc/soc-core.c b/sound/soc/soc-core.c
index 75a9641349ee..cc442c52cdea 100644
--- a/sound/soc/soc-core.c
+++ b/sound/soc/soc-core.c
@@ -942,7 +942,7 @@ static int soc_dai_link_sanity_check(struct snd_soc_card *card,
* component list.
*/
if (!soc_find_component(dlc))
- goto component_not_find;
+ goto component_not_found;
}
/* Platform check */
@@ -963,7 +963,7 @@ static int soc_dai_link_sanity_check(struct snd_soc_card *card,
* component list.
*/
if (!soc_find_component(dlc))
- goto component_not_find;
+ goto component_not_found;
}
/* CPU check */
@@ -988,7 +988,7 @@ static int soc_dai_link_sanity_check(struct snd_soc_card *card,
* Defer card registration if Component is not added
*/
if (!soc_find_component(dlc))
- goto component_not_find;
+ goto component_not_found;
}
}
@@ -1002,7 +1002,7 @@ static int soc_dai_link_sanity_check(struct snd_soc_card *card,
dev_err(card->dev, "ASoC: Neither Component name/of_node are set for %s\n", link->name);
return -EINVAL;
-component_not_find:
+component_not_found:
dev_dbg(card->dev, "ASoC: Component %s not found for link %s\n", dlc->name, link->name);
return -EPROBE_DEFER;
--
2.41.0
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH v2 0/2] A couple of ASoC core fixes
2023-08-24 21:12 [PATCH v2 0/2] A couple of ASoC core fixes Cristian Ciocaltea
2023-08-24 21:12 ` [PATCH v2 1/2] ASoC: core: Do not error if a DAI link component is not found Cristian Ciocaltea
2023-08-24 21:12 ` [PATCH v2 2/2] ASoC: core: Rename component_not_find label Cristian Ciocaltea
@ 2023-08-24 22:15 ` Mark Brown
2 siblings, 0 replies; 4+ messages in thread
From: Mark Brown @ 2023-08-24 22:15 UTC (permalink / raw)
To: Cristian Ciocaltea
Cc: Liam Girdwood, Jaroslav Kysela, Takashi Iwai, Kuninori Morimoto,
alsa-devel, linux-kernel, kernel
[-- Attachment #1: Type: text/plain, Size: 222 bytes --]
On Fri, Aug 25, 2023 at 12:12:39AM +0300, Cristian Ciocaltea wrote:
> This is just a split version of the initial patch [1], as requested by Mark.
Thanks but I already queued v1 for CI, all being well that'll go through.
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 488 bytes --]
^ permalink raw reply [flat|nested] 4+ messages in thread