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)
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

Simple merge
Simple merge