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)
committerStephane Desneux <stephane.desneux@open.eurogiciel.org>
Wed, 4 Feb 2015 10:13:26 +0000 (11:13 +0100)
commit1fdaeac286c3de6960c6603da04bfe06abbe1ddf
tree518860c73f2869ad4d847930233282b6b52d47cd
parentfc723d7f71c24450c3304484676d0684abe4f0cd
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>
include/sound/soc.h
sound/soc/soc-core.c