Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1382415 > unrolled thread

[PATCH] ASoC: core: export snd_soc_get_dai_name

Started byPC Liao <pc.liao@mediatek.com>
First post2016-04-19 13:40 +0200
Last post2016-04-19 18:50 +0200
Articles 2 — 2 participants

Back to article view | Back to linux.kernel


Contents

  [PATCH] ASoC: core: export snd_soc_get_dai_name PC Liao <pc.liao@mediatek.com> - 2016-04-19 13:40 +0200
    Re: [PATCH] ASoC: core: export snd_soc_get_dai_name Mark Brown <broonie@kernel.org> - 2016-04-19 18:50 +0200

#1382415 — [PATCH] ASoC: core: export snd_soc_get_dai_name

FromPC Liao <pc.liao@mediatek.com>
Date2016-04-19 13:40 +0200
Subject[PATCH] ASoC: core: export snd_soc_get_dai_name
Message-ID<rpCaC-6a2-17@gated-at.bofh.it>
From: Jean-Francois Moine <moinejf@free.fr>

snd_soc_get_dai_name() may be used to define a sound card with
a different syntax from the one of the simple-card.

Signed-off-by: Jean-Francois Moine <moinejf@free.fr>
Signed-off-by: PC Liao <pc.liao@mediatek.com>
---
[1] is applied and needs this patch.
Otherwise, [1] will build fail.

[1] https://patchwork.kernel.org/patch/8878491/
("ASoC: mediatek: Add second I2S on mt8173-rt5650 machine driver")
---
 include/sound/soc.h  |    2 ++
 sound/soc/soc-core.c |    5 +++--
 2 files changed, 5 insertions(+), 2 deletions(-)

diff --git a/include/sound/soc.h b/include/sound/soc.h
index 02b4a21..03b2d19 100644
--- a/include/sound/soc.h
+++ b/include/sound/soc.h
@@ -1669,6 +1669,8 @@ unsigned int snd_soc_of_parse_daifmt(struct device_node *np,
 				     const char *prefix,
 				     struct device_node **bitclkmaster,
 				     struct device_node **framemaster);
+int snd_soc_get_dai_name(struct of_phandle_args *args,
+			 const char **dai_name);
 int snd_soc_of_get_dai_name(struct device_node *of_node,
 			    const char **dai_name);
 int snd_soc_of_get_dai_link_codecs(struct device *dev,
diff --git a/sound/soc/soc-core.c b/sound/soc/soc-core.c
index d2e62b15..69cbbb0 100644
--- a/sound/soc/soc-core.c
+++ b/sound/soc/soc-core.c
@@ -3786,8 +3786,8 @@ unsigned int snd_soc_of_parse_daifmt(struct device_node *np,
 }
 EXPORT_SYMBOL_GPL(snd_soc_of_parse_daifmt);
 
-static int snd_soc_get_dai_name(struct of_phandle_args *args,
-				const char **dai_name)
+int snd_soc_get_dai_name(struct of_phandle_args *args,
+			 const char **dai_name)
 {
 	struct snd_soc_component *pos;
 	struct device_node *component_of_node;
@@ -3838,6 +3838,7 @@ static int snd_soc_get_dai_name(struct of_phandle_args *args,
 	mutex_unlock(&client_mutex);
 	return ret;
 }
+EXPORT_SYMBOL_GPL(snd_soc_get_dai_name);
 
 int snd_soc_of_get_dai_name(struct device_node *of_node,
 			    const char **dai_name)
-- 
1.7.9.5

[toc] | [next] | [standalone]


#1382691

FromMark Brown <broonie@kernel.org>
Date2016-04-19 18:50 +0200
Message-ID<rpH0C-1oD-11@gated-at.bofh.it>
In reply to#1382415

[Multipart message — attachments visible in raw view] — view raw

On Tue, Apr 19, 2016 at 07:36:41PM +0800, PC Liao wrote:

> [1] is applied and needs this patch.
> Otherwise, [1] will build fail.

I dropped your patch and replied with a suggestion for respinning it.
When referencing patches please use the title and (if relevant) commit
ID inline, it makes things easier to read.

[toc] | [prev] | [standalone]


Back to top | Article view | linux.kernel


csiph-web