OSDN Git Service

ASoC: add snd_soc_of_parse_audio_simple_widgets for DT
authorXiubo Li <Li.Xiubo@freescale.com>
Sat, 8 Feb 2014 07:59:52 +0000 (15:59 +0800)
committerMark Brown <broonie@linaro.org>
Mon, 10 Feb 2014 13:29:55 +0000 (13:29 +0000)
commit9a6d48605e632e84db2895cf752c65b3c908cd09
tree0e9ae55984b97166018998b7dabea59b12e256ae
parent38dbfb59d1175ef458d006556061adeaa8751b72
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>
include/sound/soc.h
sound/soc/soc-core.c