summaryrefslogtreecommitdiff
path: root/sound/soc/soc-core.c
diff options
context:
space:
mode:
Diffstat (limited to 'sound/soc/soc-core.c')
-rw-r--r--sound/soc/soc-core.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sound/soc/soc-core.c b/sound/soc/soc-core.c
index 8dba5bb26ffe..7b13b1b232ef 100644
--- a/sound/soc/soc-core.c
+++ b/sound/soc/soc-core.c
@@ -3355,10 +3355,10 @@ int snd_soc_get_dai_name(const struct of_phandle_args *args,
EXPORT_SYMBOL_GPL(snd_soc_get_dai_name);
int snd_soc_of_get_dai_name(struct device_node *of_node,
- const char **dai_name)
+ const char **dai_name, int index)
{
struct snd_soc_dai_link_component dlc;
- int ret = snd_soc_of_get_dlc(of_node, NULL, &dlc, 0);
+ int ret = snd_soc_of_get_dlc(of_node, NULL, &dlc, index);
if (ret == 0)
*dai_name = dlc.dai_name;