diff options
Diffstat (limited to 'sound/soc/soc-core.c')
-rw-r--r-- | sound/soc/soc-core.c | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/sound/soc/soc-core.c b/sound/soc/soc-core.c index a66783e13a9c..be88df5eeaf7 100644 --- a/sound/soc/soc-core.c +++ b/sound/soc/soc-core.c | |||
@@ -4617,10 +4617,14 @@ int snd_soc_of_get_dai_name(struct device_node *of_node, | |||
4617 | 4617 | ||
4618 | if (id < 0 || id >= pos->num_dai) { | 4618 | if (id < 0 || id >= pos->num_dai) { |
4619 | ret = -EINVAL; | 4619 | ret = -EINVAL; |
4620 | } else { | 4620 | break; |
4621 | *dai_name = pos->dai_drv[id].name; | ||
4622 | ret = 0; | ||
4623 | } | 4621 | } |
4622 | |||
4623 | ret = 0; | ||
4624 | |||
4625 | *dai_name = pos->dai_drv[id].name; | ||
4626 | if (!*dai_name) | ||
4627 | *dai_name = pos->name; | ||
4624 | } | 4628 | } |
4625 | 4629 | ||
4626 | break; | 4630 | break; |