summaryrefslogtreecommitdiffstats
path: root/include/sound/soc.h
diff options
context:
space:
mode:
authorXiubo Li2014-02-08 08:59:52 +0100
committerMark Brown2014-02-10 14:29:55 +0100
commit9a6d48605e632e84db2895cf752c65b3c908cd09 (patch)
tree0e9ae55984b97166018998b7dabea59b12e256ae /include/sound/soc.h
parentLinus 3.14-rc1 (diff)
downloadkernel-qcow2-linux-9a6d48605e632e84db2895cf752c65b3c908cd09.tar.gz
kernel-qcow2-linux-9a6d48605e632e84db2895cf752c65b3c908cd09.tar.xz
kernel-qcow2-linux-9a6d48605e632e84db2895cf752c65b3c908cd09.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>
Diffstat (limited to 'include/sound/soc.h')
-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,