mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-11-30 15:53:22 -05:00
ASoC: soc-core: skip zero num_dai component in searching dai name
[ Upstream commit f7d344a2bd5ec81fbd1ce76928fd059e57ec9bea ] In the case like dmaengine which's not a dai but as a component, the num_dai is zero, dmaengine component has the same component_of_node as cpu dai, when cpu dai component is not ready, but dmaengine component is ready, try to get cpu dai name, the snd_soc_get_dai_name() return -EINVAL, not -EPROBE_DEFER, that cause below error: asoc-simple-card <card name>: parse error -22 asoc-simple-card: probe of <card name> failed with error -22 The sound card failed to probe. So this patch fixes the issue above by skipping the zero num_dai component in searching dai name. Signed-off-by: Shengjiu Wang <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Mark Brown <[email protected]> Signed-off-by: Sasha Levin <[email protected]>
This commit is contained in:
parent
7d0afbc41b
commit
b239e9d52d
1 changed files with 1 additions and 1 deletions
|
|
@ -3362,7 +3362,7 @@ int snd_soc_get_dai_name(struct of_phandle_args *args,
|
|||
for_each_component(pos) {
|
||||
component_of_node = soc_component_to_node(pos);
|
||||
|
||||
if (component_of_node != args->np)
|
||||
if (component_of_node != args->np || !pos->num_dai)
|
||||
continue;
|
||||
|
||||
ret = snd_soc_component_of_xlate_dai_name(pos, args, dai_name);
|
||||
|
|
|
|||
Loading…
Reference in a new issue