summaryrefslogtreecommitdiffstats
path: root/sound/soc/generic
diff options
context:
space:
mode:
authorKuninori Morimoto <kuninori.morimoto.gx@renesas.com>2023-06-20 02:14:11 +0000
committerMark Brown <broonie@kernel.org>2023-06-20 12:49:22 +0100
commit3c8b5861850c734add65233e538d4a8c2dff95d9 (patch)
treeab496b20d9d01d89cf7530b69bd27148f459c1ac /sound/soc/generic
parent05722a0ce6fbd1c603ec0f0ecb5ed839dd561ac7 (diff)
downloadlinux-stable-3c8b5861850c734add65233e538d4a8c2dff95d9.tar.gz
linux-stable-3c8b5861850c734add65233e538d4a8c2dff95d9.tar.bz2
linux-stable-3c8b5861850c734add65233e538d4a8c2dff95d9.zip
ASoC: soc-core.c: add index on snd_soc_of_get_dai_name()
Current snd_soc_of_get_dai_name() doesn't accept index for #sound-dai-cells. It is not useful for user. This patch adds it. Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com> Link: https://lore.kernel.org/r/87pm5qdgng.wl-kuninori.morimoto.gx@renesas.com Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'sound/soc/generic')
-rw-r--r--sound/soc/generic/simple-card.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sound/soc/generic/simple-card.c b/sound/soc/generic/simple-card.c
index 5a5e4ecd0f61..5b59198a0384 100644
--- a/sound/soc/generic/simple-card.c
+++ b/sound/soc/generic/simple-card.c
@@ -89,7 +89,7 @@ static int asoc_simple_parse_dai(struct device_node *node,
* 2) user need to rebind Sound Card everytime
* if he unbinded CPU or Codec.
*/
- ret = snd_soc_of_get_dai_name(node, &dlc->dai_name);
+ ret = snd_soc_of_get_dai_name(node, &dlc->dai_name, 0);
if (ret < 0)
return ret;