summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorXiubo Li <Li.Xiubo@freescale.com>2014-02-08 15:59:52 +0800
committerStephane Desneux <stephane.desneux@open.eurogiciel.org>2015-02-04 11:13:26 +0100
commit1fdaeac286c3de6960c6603da04bfe06abbe1ddf (patch)
tree518860c73f2869ad4d847930233282b6b52d47cd /include
parentfc723d7f71c24450c3304484676d0684abe4f0cd (diff)
downloadkernel-common-1fdaeac286c3de6960c6603da04bfe06abbe1ddf.tar.gz
kernel-common-1fdaeac286c3de6960c6603da04bfe06abbe1ddf.tar.bz2
kernel-common-1fdaeac286c3de6960c6603da04bfe06abbe1ddf.zip
ASoC: add snd_soc_of_parse_audio_simple_widgets for DT
This patch adds snd_soc_of_parse_audio_simple_widgets() and supports below style of widgets name on DT: "template-wname", "user supplied wname" For instance: simple-audio-widgets = "Microphone", "Microphone Jack", "Line", "Line In Jack", "Line", "Line Out Jack", "Headphone", "Headphone Jack", "Speaker", "Speaker External"; The "template-wname" currently includes: "Microphone", "Line", "Headphone" and "Speaker". Signed-off-by: Xiubo Li <Li.Xiubo@freescale.com> Signed-off-by: Mark Brown <broonie@linaro.org> (cherry picked from commit 9a6d48605e632e84db2895cf752c65b3c908cd09) Signed-off-by: Simon Horman <horms+renesas@verge.net.au>
Diffstat (limited to 'include')
-rw-r--r--include/sound/soc.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/sound/soc.h b/include/sound/soc.h
index 9a001472b96a..465dc6e0674d 100644
--- a/include/sound/soc.h
+++ b/include/sound/soc.h
@@ -1173,6 +1173,8 @@ void snd_soc_util_exit(void);
int snd_soc_of_parse_card_name(struct snd_soc_card *card,
const char *propname);
+int snd_soc_of_parse_audio_simple_widgets(struct snd_soc_card *card,
+ const char *propname);
int snd_soc_of_parse_audio_routing(struct snd_soc_card *card,
const char *propname);
unsigned int snd_soc_of_parse_daifmt(struct device_node *np,