Re: [alsa-devel] [PATCH v3] ASoC: Add support for NAU8825 codec to ASoC

2015-07-27 Thread Anatol Pomozov
Hi On Sun, Jul 26, 2015 at 11:25 PM, Chih-Chiang Chang wrote: > Hi Anatol, > > Thanks for your suggestion. We are working on different architectures to > support NAU8825 ALSA driver, and I also think it is better we can have a > cooperation for driver development and upstream. We have checked you

Re: [alsa-devel] [PATCH v3] ASoC: Add support for NAU8825 codec to ASoC

2015-07-26 Thread Chih-Chiang Chang
Hi Anatol, Thanks for your suggestion. We are working on different architectures to support NAU8825 ALSA driver, and I also think it is better we can have a cooperation for driver development and upstream. We have checked your code, and we think your implement version should more follow the ALSA u

Re: [alsa-devel] [PATCH v3] ASoC: Add support for NAU8825 codec to ASoC

2015-07-22 Thread Anatol Pomozov
Hi Chih-Chiang On Mon, Jul 13, 2015 at 12:33 AM, Chih-Chiang Chang wrote: > The NAU88L25 is an ultra-low power high performance audio codec designed > for smartphone, tablet PC, and other portable devices by Nuvoton, now > add linux driver support for it. At ChromeOS we work with Nuvoton hw engi

Re: [PATCH v3] ASoC: Add support for NAU8825 codec to ASoC

2015-07-13 Thread Mark Brown
On Mon, Jul 13, 2015 at 03:33:06PM +0800, Chih-Chiang Chang wrote: > +static const struct snd_kcontrol_new nau8825_snd_controls[] = { > +SOC_SINGLE_TLV("MIC Volume", NAU8825_ADC_DGAIN_CTRL, > +NAU8825_ADC_DGAIN_SFT, > +NAU8825_ADC_VOL_RSCL_RANGE, 0, adc_vol_tlv), > +

Re: [alsa-devel] [PATCH v3] ASoC: Add support for NAU8825 codec to ASoC

2015-07-13 Thread Liam Girdwood
On Mon, 2015-07-13 at 15:33 +0800, Chih-Chiang Chang wrote: > +static void set_sys_clk(struct snd_soc_codec *codec, int sys_clk) > +{ > +struct nau8825_priv *nau8825 = snd_soc_codec_get_drvdata(codec); > + > +pr_debug("%s :: sys_clk=%x\n", __func__, sys_clk); > +switch (sys_clk) { > +

[PATCH v3] ASoC: Add support for NAU8825 codec to ASoC

2015-07-13 Thread Chih-Chiang Chang
The NAU88L25 is an ultra-low power high performance audio codec designed for smartphone, tablet PC, and other portable devices by Nuvoton, now add linux driver support for it. Signed-off-by: Chih-Chiang Chang --- v3->v2: - fix the wrong definition of reg_default - fix the flow of set_sys_c