Re: [PATCH Resend 7/8] ASoC: add snd_soc_of_parse_audio_simple_widgets for DeviceTree

2014-01-24 Thread Mark Brown
On Fri, Jan 24, 2014 at 02:46:33AM +, li.xi...@freescale.com wrote: > > > +static struct snd_soc_dapm_widget simple_widgets[] = { > > > + SND_SOC_DAPM_MIC("Mic", NULL), > > > + SND_SOC_DAPM_LINE("Line", NULL), > > > + SND_SOC_DAPM_HP("Hp", NULL), > > > + SND_SOC_DAPM_SPK("Spk", NULL), > > > +}

RE: [PATCH Resend 7/8] ASoC: add snd_soc_of_parse_audio_simple_widgets for DeviceTree

2014-01-23 Thread li.xi...@freescale.com
> > +static struct snd_soc_dapm_widget simple_widgets[] = { > > + SND_SOC_DAPM_MIC("Mic", NULL), > > + SND_SOC_DAPM_LINE("Line", NULL), > > + SND_SOC_DAPM_HP("Hp", NULL), > > + SND_SOC_DAPM_SPK("Spk", NULL), > > +}; > This is the templates for "Microphone XXX", "Line XXX", "Headphone XXX

Re: [PATCH Resend 7/8] ASoC: add snd_soc_of_parse_audio_simple_widgets for DeviceTree

2014-01-23 Thread Mark Brown
On Thu, Jan 23, 2014 at 01:02:49PM +0800, Xiubo Li wrote: > +static struct snd_soc_dapm_widget simple_widgets[] = { > + SND_SOC_DAPM_MIC("Mic", NULL), > + SND_SOC_DAPM_LINE("Line", NULL), > + SND_SOC_DAPM_HP("Hp", NULL), > + SND_SOC_DAPM_SPK("Spk", NULL), > +}; Does this mean we'r

[PATCH Resend 7/8] ASoC: add snd_soc_of_parse_audio_simple_widgets for DeviceTree

2014-01-22 Thread Xiubo Li
This patch adds snd_soc_of_parse_audio_simple_widgets() and supports below style of widgets name on DT. "wname-prefix[ individual name]" "wname-prefix" includes: "Mic", "Line", "Hp", "Spk"... For instance: simple-audio-widgets = "Mic Jack", "Line In Jack",