From cc37c8fb52ac969b94c3d2cd36895b8cdb2b8646 Mon Sep 17 00:00:00 2001 From: Hin-Tak Leung Date: Wed, 4 Oct 2023 23:18:04 +0100 Subject: [PATCH] v6.5: ASoC: soc-core.c: add index on snd_soc_of_get_dai_name() commit 3c8b5861850c734add65233e538d4a8c2dff95d9 Author: Kuninori Morimoto Date: Tue Jun 20 02:14:11 2023 +0000 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 Link: https://lore.kernel.org/r/87pm5qdgng.wl-kuninori.morimoto.gx@renesas.com Signed-off-by: Mark Brown --- seeed-voicecard.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/seeed-voicecard.c b/seeed-voicecard.c index ebd793a..8ddf691 100644 --- a/seeed-voicecard.c +++ b/seeed-voicecard.c @@ -311,7 +311,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;