[alsa-devel] [PATCH 2/2] ASoC: mediatek: add power-domains for mt2701-afe-pcm.txt

2017-02-15 Thread Garlic Tseng
This add power-domains for mt2701-afe-pcm Signed-off-by: Garlic Tseng <garlic.ts...@mediatek.com> --- Documentation/devicetree/bindings/sound/mt2701-afe-pcm.txt | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Documentation/devicetree/bindings/sound/mt2701-afe-pcm.txt b/Documen

[alsa-devel] [PATCH 0/2] ASoC: mediatek: add power-domain ctrl for 2701

2017-02-15 Thread Garlic Tseng
add power-domain get/put ctrl for 2701 and add relative node description in binding doc. Garlic Tseng (2): ASoC: mediatek: add power-domain get/put ctrl for mt2701 ASoC: mediatek: add power-domains for mt2701-afe-pcm.txt Documentation/devicetree/bindings/sound/mt2701-afe-pcm.txt | 2

[alsa-devel] [PATCH 2/2] ASoC: mediatek: add power-domains for mt2701-afe-pcm.txt

2017-02-15 Thread Garlic Tseng
This add power-domains for mt2701-afe-pcm Signed-off-by: Garlic Tseng --- Documentation/devicetree/bindings/sound/mt2701-afe-pcm.txt | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Documentation/devicetree/bindings/sound/mt2701-afe-pcm.txt b/Documentation/devicetree/bindings/sound/mt2701

[alsa-devel] [PATCH 0/2] ASoC: mediatek: add power-domain ctrl for 2701

2017-02-15 Thread Garlic Tseng
add power-domain get/put ctrl for 2701 and add relative node description in binding doc. Garlic Tseng (2): ASoC: mediatek: add power-domain get/put ctrl for mt2701 ASoC: mediatek: add power-domains for mt2701-afe-pcm.txt Documentation/devicetree/bindings/sound/mt2701-afe-pcm.txt | 2

[alsa-devel] [PATCH 1/2] ASoC: mediatek: add power-domain get/put ctrl for mt2701

2017-02-15 Thread Garlic Tseng
add power-domain ctrl for audio driver Signed-off-by: Garlic Tseng <garlic.ts...@mediatek.com> --- sound/soc/mediatek/mt2701/mt2701-afe-pcm.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/sound/soc/mediatek/mt2701/mt2701-afe-pcm.c b/sound/soc/mediatek/mt2701/mt2701-afe-pcm.c

[alsa-devel] [PATCH 1/2] ASoC: mediatek: add power-domain get/put ctrl for mt2701

2017-02-15 Thread Garlic Tseng
add power-domain ctrl for audio driver Signed-off-by: Garlic Tseng --- sound/soc/mediatek/mt2701/mt2701-afe-pcm.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/sound/soc/mediatek/mt2701/mt2701-afe-pcm.c b/sound/soc/mediatek/mt2701/mt2701-afe-pcm.c index 34a6123..c7fa3e6 100644

Re: [alsa-devel] [PATCH -next v2] ASoC: mediatek: mt2701: fix non static symbol warning

2016-07-10 Thread Garlic Tseng
red. Should it be static? > > Signed-off-by: Wei Yongjun <yongjun_...@trendmicro.com.cn> Acked-by: Garlic Tseng <garlic.ts...@mediatek.com> > --- > sound/soc/mediatek/mt2701/mt2701-afe-pcm.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/sound/soc

Re: [alsa-devel] [PATCH -next v2] ASoC: mediatek: mt2701: fix non static symbol warning

2016-07-10 Thread Garlic Tseng
-by: Wei Yongjun Acked-by: Garlic Tseng > --- > sound/soc/mediatek/mt2701/mt2701-afe-pcm.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/sound/soc/mediatek/mt2701/mt2701-afe-pcm.c > b/sound/soc/mediatek/mt2701/mt2701-afe-pcm.c > index 15522c0..34a

Re: [alsa-devel] [PATCH 3/4] ASoC: mediatek: add BT implementation

2016-07-05 Thread Garlic Tseng
On Tue, 2016-07-05 at 10:12 +0200, Mark Brown wrote: > On Tue, Jul 05, 2016 at 09:52:13AM +0800, Garlic Tseng wrote: > > On Mon, 2016-07-04 at 16:44 +0200, Mark Brown wrote: > > > > We really shouldn't be writing the registers or other internal data of > > >

Re: [alsa-devel] [PATCH 3/4] ASoC: mediatek: add BT implementation

2016-07-05 Thread Garlic Tseng
On Tue, 2016-07-05 at 10:12 +0200, Mark Brown wrote: > On Tue, Jul 05, 2016 at 09:52:13AM +0800, Garlic Tseng wrote: > > On Mon, 2016-07-04 at 16:44 +0200, Mark Brown wrote: > > > > We really shouldn't be writing the registers or other internal data of > > >

Re: [alsa-devel] [PATCH 3/4] ASoC: mediatek: add BT implementation

2016-07-04 Thread Garlic Tseng
On Mon, 2016-07-04 at 16:44 +0200, Mark Brown wrote: > On Mon, Jul 04, 2016 at 06:56:27PM +0800, Garlic Tseng wrote: > > > +static int mt2701_btmrg_startup(struct snd_pcm_substream *substream, > > + struct snd_soc_dai *dai) > > +{ > > + s

Re: [alsa-devel] [PATCH 3/4] ASoC: mediatek: add BT implementation

2016-07-04 Thread Garlic Tseng
On Mon, 2016-07-04 at 16:44 +0200, Mark Brown wrote: > On Mon, Jul 04, 2016 at 06:56:27PM +0800, Garlic Tseng wrote: > > > +static int mt2701_btmrg_startup(struct snd_pcm_substream *substream, > > + struct snd_soc_dai *dai) > > +{ > > + s

[alsa-devel] [PATCH 3/4] ASoC: mediatek: add BT implementation

2016-07-04 Thread Garlic Tseng
Add BT implementation for mt2701 platform driver. Signed-off-by: Garlic Tseng <garlic.ts...@mediatek.com> --- sound/soc/mediatek/mt2701/mt2701-afe-pcm.c | 139 + 1 file changed, 139 insertions(+) diff --git a/sound/soc/mediatek/mt2701/mt2701-afe-pcm.c b/sou

[alsa-devel] [PATCH 2/4] ASoC: bt-sco: extend rate and add a general compatible string

2016-07-04 Thread Garlic Tseng
Add supports for 16k (wideband BT) and add a general compatible string "linux,bt-sco" Signed-off-by: Garlic Tseng <garlic.ts...@mediatek.com> --- Documentation/devicetree/bindings/sound/bt-sco.txt | 2 +- sound/soc/codecs/bt-sco.c | 52 +++

[alsa-devel] [PATCH 3/4] ASoC: mediatek: add BT implementation

2016-07-04 Thread Garlic Tseng
Add BT implementation for mt2701 platform driver. Signed-off-by: Garlic Tseng --- sound/soc/mediatek/mt2701/mt2701-afe-pcm.c | 139 + 1 file changed, 139 insertions(+) diff --git a/sound/soc/mediatek/mt2701/mt2701-afe-pcm.c b/sound/soc/mediatek/mt2701/mt2701-afe

[alsa-devel] [PATCH 2/4] ASoC: bt-sco: extend rate and add a general compatible string

2016-07-04 Thread Garlic Tseng
Add supports for 16k (wideband BT) and add a general compatible string "linux,bt-sco" Signed-off-by: Garlic Tseng --- Documentation/devicetree/bindings/sound/bt-sco.txt | 2 +- sound/soc/codecs/bt-sco.c | 52 +++--- 2 files changed, 37 inserti

[alsa-devel] [PATCH 4/4] ASoC: mediatek: Add mt2701-cs42448 driver and config option.

2016-07-04 Thread Garlic Tseng
Add machine driver and config option for MT2701. Signed-off-by: Garlic Tseng <garlic.ts...@mediatek.com> --- sound/soc/mediatek/Kconfig | 21 ++ sound/soc/mediatek/Makefile| 1 + sound/soc/mediatek/mt2701/Makefile | 19 ++ sound/soc/mediatek/

[alsa-devel] [PATCH 4/4] ASoC: mediatek: Add mt2701-cs42448 driver and config option.

2016-07-04 Thread Garlic Tseng
Add machine driver and config option for MT2701. Signed-off-by: Garlic Tseng --- sound/soc/mediatek/Kconfig | 21 ++ sound/soc/mediatek/Makefile| 1 + sound/soc/mediatek/mt2701/Makefile | 19 ++ sound/soc/mediatek/mt2701/mt2701-cs42448.c | 412

[alsa-devel] [PATCH 0/4] ASoC: Mediatek: add MT2701 platform and machine driver

2016-07-04 Thread Garlic Tseng
nnecessary set_clkdiv and set_fmt ops in mt2701 platform driver * add another snd_soc_dai_driver for bt-sco codec to support 8k and 16k Garlic Tseng (4): ASoC: mediatek: add mt2701 platform driver implementation. ASoC: bt-sco: extend rate and add a general compatible string ASoC: mediat

[alsa-devel] [PATCH 1/4] ASoC: mediatek: add mt2701 platform driver implementation.

2016-07-04 Thread Garlic Tseng
-by: Garlic Tseng <garlic.ts...@mediatek.com> --- sound/soc/mediatek/mt2701/mt2701-afe-common.h |9 - sound/soc/mediatek/mt2701/mt2701-afe-pcm.c| 1515 + 2 files changed, 1515 insertions(+), 9 deletions(-) create mode 100644 sound/soc/mediatek/mt2701/mt2701-afe-pcm.c

[alsa-devel] [PATCH 0/4] ASoC: Mediatek: add MT2701 platform and machine driver

2016-07-04 Thread Garlic Tseng
nnecessary set_clkdiv and set_fmt ops in mt2701 platform driver * add another snd_soc_dai_driver for bt-sco codec to support 8k and 16k Garlic Tseng (4): ASoC: mediatek: add mt2701 platform driver implementation. ASoC: bt-sco: extend rate and add a general compatible string ASoC: mediat

[alsa-devel] [PATCH 1/4] ASoC: mediatek: add mt2701 platform driver implementation.

2016-07-04 Thread Garlic Tseng
-by: Garlic Tseng --- sound/soc/mediatek/mt2701/mt2701-afe-common.h |9 - sound/soc/mediatek/mt2701/mt2701-afe-pcm.c| 1515 + 2 files changed, 1515 insertions(+), 9 deletions(-) create mode 100644 sound/soc/mediatek/mt2701/mt2701-afe-pcm.c diff --git a/sound/soc/mediatek

[alsa-devel] [PATCH] ASoC: bt-sco: add config prompt

2016-07-04 Thread Garlic Tseng
Add config prompt for bt-sco codec driver Signed-off-by: Garlic Tseng <garlic.ts...@mediatek.com> --- sound/soc/codecs/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sound/soc/codecs/Kconfig b/sound/soc/codecs/Kconfig index f2f8603..1cd6ab3 100644 --- a/sou

[alsa-devel] [PATCH] ASoC: bt-sco: add config prompt

2016-07-04 Thread Garlic Tseng
Add config prompt for bt-sco codec driver Signed-off-by: Garlic Tseng --- sound/soc/codecs/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sound/soc/codecs/Kconfig b/sound/soc/codecs/Kconfig index f2f8603..1cd6ab3 100644 --- a/sound/soc/codecs/Kconfig +++ b/sound/soc

Re: [alsa-devel] [PATCH v5 6/9] ASoC: mediatek: add mt2701 platform driver implementation.

2016-07-03 Thread Garlic Tseng
On Thu, 2016-06-30 at 21:39 +0800, Garlic Tseng wrote: > On Wed, 2016-06-29 at 20:13 +0100, Mark Brown wrote: > > On Fri, Jun 17, 2016 at 03:43:57PM +0800, Garlic Tseng wrote: > > > > > +static int mt2701_afe_i2s_set_clkdiv(struct snd_

Re: [alsa-devel] [PATCH v5 6/9] ASoC: mediatek: add mt2701 platform driver implementation.

2016-07-03 Thread Garlic Tseng
On Thu, 2016-06-30 at 21:39 +0800, Garlic Tseng wrote: > On Wed, 2016-06-29 at 20:13 +0100, Mark Brown wrote: > > On Fri, Jun 17, 2016 at 03:43:57PM +0800, Garlic Tseng wrote: > > > > > +static int mt2701_afe_i2s_set_clkdiv(struct snd_

Re: [alsa-devel] [PATCH v5 7/9] ASoC: bt-sco: extend rate and add a general compatible string

2016-07-03 Thread Garlic Tseng
On Sat, 2016-07-02 at 17:05 +0800, Chen-Yu Tsai wrote: Hi, > Could we also make this driver directly configurable from Kconfig, > and not just selected by platforms (currently Samsung) or by building > all coddecs? > > Thanks > ChenYu I'll add configure prompt for SND_SOC_BT_SCO in next

Re: [alsa-devel] [PATCH v5 7/9] ASoC: bt-sco: extend rate and add a general compatible string

2016-07-03 Thread Garlic Tseng
On Sat, 2016-07-02 at 17:05 +0800, Chen-Yu Tsai wrote: Hi, > Could we also make this driver directly configurable from Kconfig, > and not just selected by platforms (currently Samsung) or by building > all coddecs? > > Thanks > ChenYu I'll add configure prompt for SND_SOC_BT_SCO in next

Re: [alsa-devel] [PATCH v5 7/9] ASoC: bt-sco: extend rate and add a general compatible string

2016-06-30 Thread Garlic Tseng
On Thu, 2016-06-30 at 20:55 +0800, Garlic Tseng wrote: > On Wed, 2016-06-29 at 20:15 +0100, Mark Brown wrote: > > On Fri, Jun 17, 2016 at 03:43:58PM +0800, Garlic Tseng wrote: > > > Add supports for 16k (wideband BT) and add a general compatible > > > string "linux,

Re: [alsa-devel] [PATCH v5 7/9] ASoC: bt-sco: extend rate and add a general compatible string

2016-06-30 Thread Garlic Tseng
On Thu, 2016-06-30 at 20:55 +0800, Garlic Tseng wrote: > On Wed, 2016-06-29 at 20:15 +0100, Mark Brown wrote: > > On Fri, Jun 17, 2016 at 03:43:58PM +0800, Garlic Tseng wrote: > > > Add supports for 16k (wideband BT) and add a general compatible > > > string "linux,

Re: [alsa-devel] [PATCH v5 6/9] ASoC: mediatek: add mt2701 platform driver implementation.

2016-06-30 Thread Garlic Tseng
On Wed, 2016-06-29 at 20:13 +0100, Mark Brown wrote: > On Fri, Jun 17, 2016 at 03:43:57PM +0800, Garlic Tseng wrote: > > > +static int mt2701_afe_i2s_set_clkdiv(struct snd_soc_dai *dai, int div_id, > > +int div) > > +{ > >

Re: [alsa-devel] [PATCH v5 6/9] ASoC: mediatek: add mt2701 platform driver implementation.

2016-06-30 Thread Garlic Tseng
On Wed, 2016-06-29 at 20:13 +0100, Mark Brown wrote: > On Fri, Jun 17, 2016 at 03:43:57PM +0800, Garlic Tseng wrote: > > > +static int mt2701_afe_i2s_set_clkdiv(struct snd_soc_dai *dai, int div_id, > > +int div) > > +{ > >

Re: [alsa-devel] [PATCH v5 7/9] ASoC: bt-sco: extend rate and add a general compatible string

2016-06-30 Thread Garlic Tseng
On Wed, 2016-06-29 at 20:15 +0100, Mark Brown wrote: > On Fri, Jun 17, 2016 at 03:43:58PM +0800, Garlic Tseng wrote: > > Add supports for 16k (wideband BT) and add a general compatible > > string "linux,bt-sco" > > This will claim that we support 16k on existing s

Re: [alsa-devel] [PATCH v5 7/9] ASoC: bt-sco: extend rate and add a general compatible string

2016-06-30 Thread Garlic Tseng
On Wed, 2016-06-29 at 20:15 +0100, Mark Brown wrote: > On Fri, Jun 17, 2016 at 03:43:58PM +0800, Garlic Tseng wrote: > > Add supports for 16k (wideband BT) and add a general compatible > > string "linux,bt-sco" > > This will claim that we support 16k on existing s

[alsa-devel] [PATCH v5 3/9] ASoC: mediatek: let mt8173 use mediatek common structure

2016-06-17 Thread Garlic Tseng
Modify mt8173 driver implementation to use common structure. Signed-off-by: Garlic Tseng <garlic.ts...@mediatek.com> --- sound/soc/mediatek/Kconfig| 4 + sound/soc/mediatek/Makefile | 2 +- sound/soc/mediatek/common/Makefile| 16 + sou

[alsa-devel] [PATCH v5 2/9] ASoC: mediatek: implement mediatek common structure

2016-06-17 Thread Garlic Tseng
implement mediatek basic structure, include common private data, afe fe dai operator and afe platform driver. Signed-off-by: Garlic Tseng <garlic.ts...@mediatek.com> --- sound/soc/mediatek/common/mtk-afe-fe-dai.c | 379 + sound/soc/mediatek/common/mtk-afe-fe

[alsa-devel] [PATCH v5 3/9] ASoC: mediatek: let mt8173 use mediatek common structure

2016-06-17 Thread Garlic Tseng
Modify mt8173 driver implementation to use common structure. Signed-off-by: Garlic Tseng --- sound/soc/mediatek/Kconfig| 4 + sound/soc/mediatek/Makefile | 2 +- sound/soc/mediatek/common/Makefile| 16 + sound/soc/mediatek/mt8173/mt8173-afe

[alsa-devel] [PATCH v5 2/9] ASoC: mediatek: implement mediatek common structure

2016-06-17 Thread Garlic Tseng
implement mediatek basic structure, include common private data, afe fe dai operator and afe platform driver. Signed-off-by: Garlic Tseng --- sound/soc/mediatek/common/mtk-afe-fe-dai.c | 379 + sound/soc/mediatek/common/mtk-afe-fe-dai.h | 45 +++ .../soc

[alsa-devel] [PATCH v5 6/9] ASoC: mediatek: add mt2701 platform driver implementation.

2016-06-17 Thread Garlic Tseng
-by: Garlic Tseng <garlic.ts...@mediatek.com> --- sound/soc/mediatek/mt2701/mt2701-afe-pcm.c | 1559 1 file changed, 1559 insertions(+) create mode 100644 sound/soc/mediatek/mt2701/mt2701-afe-pcm.c diff --git a/sound/soc/mediatek/mt2701/mt2701-afe-pcm.c b/sound/soc/me

[alsa-devel] [PATCH v5 7/9] ASoC: bt-sco: extend rate and add a general compatible string

2016-06-17 Thread Garlic Tseng
Add supports for 16k (wideband BT) and add a general compatible string "linux,bt-sco" Signed-off-by: Garlic Tseng <garlic.ts...@mediatek.com> --- Documentation/devicetree/bindings/sound/bt-sco.txt | 2 +- sound/soc/codecs/bt-sco.c | 5 +++-- 2 files chang

[alsa-devel] [PATCH v5 9/9] ASoC: mediatek: Add mt2701-cs42448 driver and config option.

2016-06-17 Thread Garlic Tseng
Add machine driver and config option for MT2701. Signed-off-by: Garlic Tseng <garlic.ts...@mediatek.com> --- sound/soc/mediatek/Kconfig | 21 ++ sound/soc/mediatek/Makefile| 1 + sound/soc/mediatek/mt2701/Makefile | 19 ++ sound/soc/mediatek/

[alsa-devel] [PATCH v5 6/9] ASoC: mediatek: add mt2701 platform driver implementation.

2016-06-17 Thread Garlic Tseng
-by: Garlic Tseng --- sound/soc/mediatek/mt2701/mt2701-afe-pcm.c | 1559 1 file changed, 1559 insertions(+) create mode 100644 sound/soc/mediatek/mt2701/mt2701-afe-pcm.c diff --git a/sound/soc/mediatek/mt2701/mt2701-afe-pcm.c b/sound/soc/mediatek/mt2701/mt2701-afe-pcm.c new

[alsa-devel] [PATCH v5 7/9] ASoC: bt-sco: extend rate and add a general compatible string

2016-06-17 Thread Garlic Tseng
Add supports for 16k (wideband BT) and add a general compatible string "linux,bt-sco" Signed-off-by: Garlic Tseng --- Documentation/devicetree/bindings/sound/bt-sco.txt | 2 +- sound/soc/codecs/bt-sco.c | 5 +++-- 2 files changed, 4 insertions(+), 3 deletion

[alsa-devel] [PATCH v5 9/9] ASoC: mediatek: Add mt2701-cs42448 driver and config option.

2016-06-17 Thread Garlic Tseng
Add machine driver and config option for MT2701. Signed-off-by: Garlic Tseng --- sound/soc/mediatek/Kconfig | 21 ++ sound/soc/mediatek/Makefile| 1 + sound/soc/mediatek/mt2701/Makefile | 19 ++ sound/soc/mediatek/mt2701/mt2701-cs42448.c | 422

[alsa-devel] [PATCH v5 4/9] ASoC: mediatek: add documents for mt2701

2016-06-17 Thread Garlic Tseng
add mt2701-afe-pcm.txt and mt2701-cs42448.txt for mt2701 Signed-off-by: Garlic Tseng <garlic.ts...@mediatek.com> --- .../devicetree/bindings/sound/mt2701-afe-pcm.txt | 150 + .../devicetree/bindings/sound/mt2701-cs42448.txt | 43 ++ 2 files changed, 193 inse

[alsa-devel] [PATCH v5 5/9] ASoC: mediatek: add structure define and clock control for 2701

2016-06-17 Thread Garlic Tseng
add structure define and clock control function for 2701. Signed-off-by: Garlic Tseng <garlic.ts...@mediatek.com> --- sound/soc/mediatek/mt2701/mt2701-afe-clock-ctrl.c | 464 ++ sound/soc/mediatek/mt2701/mt2701-afe-clock-ctrl.h | 38 ++ sound/soc/mediatek/mt2701/mt27

[alsa-devel] [PATCH v5 4/9] ASoC: mediatek: add documents for mt2701

2016-06-17 Thread Garlic Tseng
add mt2701-afe-pcm.txt and mt2701-cs42448.txt for mt2701 Signed-off-by: Garlic Tseng --- .../devicetree/bindings/sound/mt2701-afe-pcm.txt | 150 + .../devicetree/bindings/sound/mt2701-cs42448.txt | 43 ++ 2 files changed, 193 insertions(+) create mode 100644

[alsa-devel] [PATCH v5 5/9] ASoC: mediatek: add structure define and clock control for 2701

2016-06-17 Thread Garlic Tseng
add structure define and clock control function for 2701. Signed-off-by: Garlic Tseng --- sound/soc/mediatek/mt2701/mt2701-afe-clock-ctrl.c | 464 ++ sound/soc/mediatek/mt2701/mt2701-afe-clock-ctrl.h | 38 ++ sound/soc/mediatek/mt2701/mt2701-afe-common.h | 181

[alsa-devel] [PATCH v5 0/9] ASoC: Mediatek: Add support for MT2701 SOC

2016-06-17 Thread Garlic Tseng
will fail if clock initial error * fix dapm on/off switch control naming Change since v1: implement common private structure, fe dai and platform driver. let mt8173 and mt2701 use the common structure. Garlic Tseng (9): ASoC: mediatek: Refine mt8173 driver and change config option ASoC: mediatek:

[alsa-devel] [PATCH v5 8/9] ASoC: mediatek: add BT implementation

2016-06-17 Thread Garlic Tseng
Add BT implementation for mt2701 platform driver. Signed-off-by: Garlic Tseng <garlic.ts...@mediatek.com> --- sound/soc/mediatek/mt2701/mt2701-afe-pcm.c | 139 + 1 file changed, 139 insertions(+) diff --git a/sound/soc/mediatek/mt2701/mt2701-afe-pcm.c b/sou

[alsa-devel] [PATCH v5 1/9] ASoC: mediatek: Refine mt8173 driver and change config option

2016-06-17 Thread Garlic Tseng
move mt8173 driver to another folder and add prefix. add config option SND_SOC_MT8173 Signed-off-by: Garlic Tseng <garlic.ts...@mediatek.com> --- sound/soc/mediatek/Kconfig | 14 +- sound/soc/mediatek/Makefile| 9 +- sound/soc/mediatek/

[alsa-devel] [PATCH v5 0/9] ASoC: Mediatek: Add support for MT2701 SOC

2016-06-17 Thread Garlic Tseng
will fail if clock initial error * fix dapm on/off switch control naming Change since v1: implement common private structure, fe dai and platform driver. let mt8173 and mt2701 use the common structure. Garlic Tseng (9): ASoC: mediatek: Refine mt8173 driver and change config option ASoC: mediatek:

[alsa-devel] [PATCH v5 8/9] ASoC: mediatek: add BT implementation

2016-06-17 Thread Garlic Tseng
Add BT implementation for mt2701 platform driver. Signed-off-by: Garlic Tseng --- sound/soc/mediatek/mt2701/mt2701-afe-pcm.c | 139 + 1 file changed, 139 insertions(+) diff --git a/sound/soc/mediatek/mt2701/mt2701-afe-pcm.c b/sound/soc/mediatek/mt2701/mt2701-afe

[alsa-devel] [PATCH v5 1/9] ASoC: mediatek: Refine mt8173 driver and change config option

2016-06-17 Thread Garlic Tseng
move mt8173 driver to another folder and add prefix. add config option SND_SOC_MT8173 Signed-off-by: Garlic Tseng --- sound/soc/mediatek/Kconfig | 14 +- sound/soc/mediatek/Makefile| 9 +- sound/soc/mediatek/mt8173/Makefile

Re: [alsa-devel] [PATCH v4 3/9] ASoC: mediatek: let mt8173 use mediatek common structure

2016-06-15 Thread Garlic Tseng
Hi Yingjoe, thanks for comments. > > +config SND_SOC_MEDIATEK > > + tristate "SND_SOC_MEDIATEK" > > + depends on ARCH_MEDIATEK > > + help > > + This adds ASoC driver for Mediatek boards > > + that can be used with other codecs. > > + Select Y if you have such device. > > +

Re: [alsa-devel] [PATCH v4 9/9] ASoC: mediatek: Add mt2701-cs42448 driver and config option.

2016-06-15 Thread Garlic Tseng
On Wed, 2016-06-15 at 18:58 +0800, Yingjoe Chen wrote: > On Mon, 2016-06-13 at 15:26 +0800, Garlic Tseng wrote: > > +config SND_SOC_MT2701_CS42448 > > + tristate "SND_SOC_MT2701_CS42448" > > Please provide proper config prompt here. OK I'll fix it. Thanks. > Joe.C > >

Re: [alsa-devel] [PATCH v4 3/9] ASoC: mediatek: let mt8173 use mediatek common structure

2016-06-15 Thread Garlic Tseng
Hi Yingjoe, thanks for comments. > > +config SND_SOC_MEDIATEK > > + tristate "SND_SOC_MEDIATEK" > > + depends on ARCH_MEDIATEK > > + help > > + This adds ASoC driver for Mediatek boards > > + that can be used with other codecs. > > + Select Y if you have such device. > > +

Re: [alsa-devel] [PATCH v4 9/9] ASoC: mediatek: Add mt2701-cs42448 driver and config option.

2016-06-15 Thread Garlic Tseng
On Wed, 2016-06-15 at 18:58 +0800, Yingjoe Chen wrote: > On Mon, 2016-06-13 at 15:26 +0800, Garlic Tseng wrote: > > +config SND_SOC_MT2701_CS42448 > > + tristate "SND_SOC_MT2701_CS42448" > > Please provide proper config prompt here. OK I'll fix it. Thanks. > Joe.C > >

[alsa-devel] [PATCH v4 0/9] ASoC: Mediatek: Add support for MT2701 SOC

2016-06-13 Thread Garlic Tseng
apm on/off switch control naming Change since v1: implement common private structure, fe dai and platform driver. let mt8173 and mt2701 use the common structure. Garlic Tseng (9): ASoC: mediatek: Refine mt8173 driver and change config option ASoC: mediatek: implement mediatek common struct

[alsa-devel] [PATCH v4 0/9] ASoC: Mediatek: Add support for MT2701 SOC

2016-06-13 Thread Garlic Tseng
apm on/off switch control naming Change since v1: implement common private structure, fe dai and platform driver. let mt8173 and mt2701 use the common structure. Garlic Tseng (9): ASoC: mediatek: Refine mt8173 driver and change config option ASoC: mediatek: implement mediatek common struct

[alsa-devel] [PATCH v4 9/9] ASoC: mediatek: Add mt2701-cs42448 driver and config option.

2016-06-13 Thread Garlic Tseng
Add machine driver and config option for MT2701. Signed-off-by: Garlic Tseng <garlic.ts...@mediatek.com> --- sound/soc/mediatek/Kconfig | 21 ++ sound/soc/mediatek/Makefile| 1 + sound/soc/mediatek/mt2701/Makefile | 19 ++ sound/soc/mediatek/

[alsa-devel] [PATCH v4 9/9] ASoC: mediatek: Add mt2701-cs42448 driver and config option.

2016-06-13 Thread Garlic Tseng
Add machine driver and config option for MT2701. Signed-off-by: Garlic Tseng --- sound/soc/mediatek/Kconfig | 21 ++ sound/soc/mediatek/Makefile| 1 + sound/soc/mediatek/mt2701/Makefile | 19 ++ sound/soc/mediatek/mt2701/mt2701-cs42448.c | 422

[alsa-devel] [PATCH v4 5/9] ASoC: mediatek: add structure define and clock control for 2701

2016-06-13 Thread Garlic Tseng
add structure define and clock control function for 2701. Signed-off-by: Garlic Tseng <garlic.ts...@mediatek.com> --- sound/soc/mediatek/mt2701/mt2701-afe-clock-ctrl.c | 464 ++ sound/soc/mediatek/mt2701/mt2701-afe-clock-ctrl.h | 38 ++ sound/soc/mediatek/mt2701/mt27

[alsa-devel] [PATCH v4 3/9] ASoC: mediatek: let mt8173 use mediatek common structure

2016-06-13 Thread Garlic Tseng
Modify mt8173 driver implementation to use common structure. Signed-off-by: Garlic Tseng <garlic.ts...@mediatek.com> --- sound/soc/mediatek/Kconfig| 11 + sound/soc/mediatek/Makefile | 3 +- sound/soc/mediatek/common/Makefile| 17 + sou

[alsa-devel] [PATCH v4 2/9] ASoC: mediatek: implement mediatek common structure

2016-06-13 Thread Garlic Tseng
implement mediatek basic structure, include common private data, afe fe dai operator and afe platform driver. Signed-off-by: Garlic Tseng <garlic.ts...@mediatek.com> --- sound/soc/mediatek/common/mtk-afe-fe-dai.c | 379 + sound/soc/mediatek/common/mtk-afe-fe

[alsa-devel] [PATCH v4 5/9] ASoC: mediatek: add structure define and clock control for 2701

2016-06-13 Thread Garlic Tseng
add structure define and clock control function for 2701. Signed-off-by: Garlic Tseng --- sound/soc/mediatek/mt2701/mt2701-afe-clock-ctrl.c | 464 ++ sound/soc/mediatek/mt2701/mt2701-afe-clock-ctrl.h | 38 ++ sound/soc/mediatek/mt2701/mt2701-afe-common.h | 181

[alsa-devel] [PATCH v4 3/9] ASoC: mediatek: let mt8173 use mediatek common structure

2016-06-13 Thread Garlic Tseng
Modify mt8173 driver implementation to use common structure. Signed-off-by: Garlic Tseng --- sound/soc/mediatek/Kconfig| 11 + sound/soc/mediatek/Makefile | 3 +- sound/soc/mediatek/common/Makefile| 17 + sound/soc/mediatek/mt8173/mt8173-afe

[alsa-devel] [PATCH v4 2/9] ASoC: mediatek: implement mediatek common structure

2016-06-13 Thread Garlic Tseng
implement mediatek basic structure, include common private data, afe fe dai operator and afe platform driver. Signed-off-by: Garlic Tseng --- sound/soc/mediatek/common/mtk-afe-fe-dai.c | 379 + sound/soc/mediatek/common/mtk-afe-fe-dai.h | 45 +++ .../soc

[alsa-devel] [PATCH v4 7/9] ASoC: bt-sco: extend rate and add a general compatible string

2016-06-13 Thread Garlic Tseng
Add supports for 16k (wideband BT) and add a general compatible string "linux,bt-sco" Signed-off-by: Garlic Tseng <garlic.ts...@mediatek.com> --- Documentation/devicetree/bindings/sound/bt-sco.txt | 2 +- sound/soc/codecs/bt-sco.c | 5 +++-- 2 files chang

[alsa-devel] [PATCH v4 8/9] ASoC: mediatek: add BT implementation

2016-06-13 Thread Garlic Tseng
Add BT implementation for mt2701 platform driver. Signed-off-by: Garlic Tseng <garlic.ts...@mediatek.com> --- sound/soc/mediatek/mt2701/mt2701-afe-pcm.c | 139 + 1 file changed, 139 insertions(+) diff --git a/sound/soc/mediatek/mt2701/mt2701-afe-pcm.c b/sou

[alsa-devel] [PATCH v4 1/9] ASoC: mediatek: Refine mt8173 driver and change config option

2016-06-13 Thread Garlic Tseng
move mt8173 driver to another folder and add prefix. add config option SND_SOC_MT8173 Signed-off-by: Garlic Tseng <garlic.ts...@mediatek.com> --- sound/soc/mediatek/Kconfig | 14 +- sound/soc/mediatek/Makefile| 9 +- sound/soc/mediatek/

[alsa-devel] [PATCH v4 7/9] ASoC: bt-sco: extend rate and add a general compatible string

2016-06-13 Thread Garlic Tseng
Add supports for 16k (wideband BT) and add a general compatible string "linux,bt-sco" Signed-off-by: Garlic Tseng --- Documentation/devicetree/bindings/sound/bt-sco.txt | 2 +- sound/soc/codecs/bt-sco.c | 5 +++-- 2 files changed, 4 insertions(+), 3 deletion

[alsa-devel] [PATCH v4 8/9] ASoC: mediatek: add BT implementation

2016-06-13 Thread Garlic Tseng
Add BT implementation for mt2701 platform driver. Signed-off-by: Garlic Tseng --- sound/soc/mediatek/mt2701/mt2701-afe-pcm.c | 139 + 1 file changed, 139 insertions(+) diff --git a/sound/soc/mediatek/mt2701/mt2701-afe-pcm.c b/sound/soc/mediatek/mt2701/mt2701-afe

[alsa-devel] [PATCH v4 1/9] ASoC: mediatek: Refine mt8173 driver and change config option

2016-06-13 Thread Garlic Tseng
move mt8173 driver to another folder and add prefix. add config option SND_SOC_MT8173 Signed-off-by: Garlic Tseng --- sound/soc/mediatek/Kconfig | 14 +- sound/soc/mediatek/Makefile| 9 +- sound/soc/mediatek/mt8173/Makefile

[alsa-devel] [PATCH v4 6/9] ASoC: mediatek: add mt2701 platform driver implementation.

2016-06-13 Thread Garlic Tseng
-by: Garlic Tseng <garlic.ts...@mediatek.com> --- sound/soc/mediatek/mt2701/mt2701-afe-pcm.c | 1559 1 file changed, 1559 insertions(+) create mode 100644 sound/soc/mediatek/mt2701/mt2701-afe-pcm.c diff --git a/sound/soc/mediatek/mt2701/mt2701-afe-pcm.c b/sound/soc/me

[alsa-devel] [PATCH v4 4/9] ASoC: mediatek: add documents for mt2701

2016-06-13 Thread Garlic Tseng
add mt2701-afe-pcm.txt and mt2701-cs42448.txt for mt2701 Signed-off-by: Garlic Tseng <garlic.ts...@mediatek.com> --- .../devicetree/bindings/sound/mt2701-afe-pcm.txt | 150 + .../devicetree/bindings/sound/mt2701-cs42448.txt | 43 ++ 2 files changed, 193 inse

[alsa-devel] [PATCH v4 6/9] ASoC: mediatek: add mt2701 platform driver implementation.

2016-06-13 Thread Garlic Tseng
-by: Garlic Tseng --- sound/soc/mediatek/mt2701/mt2701-afe-pcm.c | 1559 1 file changed, 1559 insertions(+) create mode 100644 sound/soc/mediatek/mt2701/mt2701-afe-pcm.c diff --git a/sound/soc/mediatek/mt2701/mt2701-afe-pcm.c b/sound/soc/mediatek/mt2701/mt2701-afe-pcm.c new

[alsa-devel] [PATCH v4 4/9] ASoC: mediatek: add documents for mt2701

2016-06-13 Thread Garlic Tseng
add mt2701-afe-pcm.txt and mt2701-cs42448.txt for mt2701 Signed-off-by: Garlic Tseng --- .../devicetree/bindings/sound/mt2701-afe-pcm.txt | 150 + .../devicetree/bindings/sound/mt2701-cs42448.txt | 43 ++ 2 files changed, 193 insertions(+) create mode 100644

[alsa-devel] [PATCH v3 7/9] ASoC: bt-sco: extend rate and add a general compatible string

2016-06-13 Thread Garlic Tseng
Add supports for 16k (wideband BT) and add a general compatible string "linux,bt-sco" Signed-off-by: Garlic Tseng <garlic.ts...@mediatek.com> --- Documentation/devicetree/bindings/sound/bt-sco.txt | 2 +- sound/soc/codecs/bt-sco.c | 5 +++-- 2 files chang

[alsa-devel] [PATCH v3 7/9] ASoC: bt-sco: extend rate and add a general compatible string

2016-06-13 Thread Garlic Tseng
Add supports for 16k (wideband BT) and add a general compatible string "linux,bt-sco" Signed-off-by: Garlic Tseng --- Documentation/devicetree/bindings/sound/bt-sco.txt | 2 +- sound/soc/codecs/bt-sco.c | 5 +++-- 2 files changed, 4 insertions(+), 3 deletion

[alsa-devel] [PATCH v3 0/9] ASoC: Mediatek: Add support for MT2701 SOC

2016-06-13 Thread Garlic Tseng
emove func mtk_simple_isr and call snd_pcm_period_elapsed directly * mt2701 driver probe will fail if clock initial error * fix dapm on/off switch control naming Change since v1: implement common private structure, fe dai and platform driver. let mt8173 and mt2701 use the common structure. Garli

[alsa-devel] [PATCH v3 0/9] ASoC: Mediatek: Add support for MT2701 SOC

2016-06-13 Thread Garlic Tseng
emove func mtk_simple_isr and call snd_pcm_period_elapsed directly * mt2701 driver probe will fail if clock initial error * fix dapm on/off switch control naming Change since v1: implement common private structure, fe dai and platform driver. let mt8173 and mt2701 use the common structure. Garli

[alsa-devel] [PATCH v3 2/9] ASoC: mediatek: implement mediatek common structure

2016-06-13 Thread Garlic Tseng
implement mediatek basic structure, include common private data, afe fe dai operator and afe platform driver. Signed-off-by: Garlic Tseng <garlic.ts...@mediatek.com> --- sound/soc/mediatek/common/mtk-afe-fe-dai.c | 379 + sound/soc/mediatek/common/mtk-afe-fe

[alsa-devel] [PATCH v3 2/9] ASoC: mediatek: implement mediatek common structure

2016-06-13 Thread Garlic Tseng
implement mediatek basic structure, include common private data, afe fe dai operator and afe platform driver. Signed-off-by: Garlic Tseng --- sound/soc/mediatek/common/mtk-afe-fe-dai.c | 379 + sound/soc/mediatek/common/mtk-afe-fe-dai.h | 45 +++ .../soc

[alsa-devel] [PATCH v3 9/9] ASoC: mediatek: Add mt2701-cs42448 driver and config option.

2016-06-13 Thread Garlic Tseng
Add machine driver and config option for MT2701. Signed-off-by: Garlic Tseng <garlic.ts...@mediatek.com> --- sound/soc/mediatek/Kconfig | 21 ++ sound/soc/mediatek/Makefile| 1 + sound/soc/mediatek/mt2701/Makefile | 19 ++ sound/soc/mediatek/

[alsa-devel] [PATCH v3 8/9] ASoC: mediatek: add BT implementation

2016-06-13 Thread Garlic Tseng
Add BT implementation for mt2701 platform driver. Signed-off-by: Garlic Tseng <garlic.ts...@mediatek.com> --- sound/soc/mediatek/mt2701/mt2701-afe-pcm.c | 139 + 1 file changed, 139 insertions(+) diff --git a/sound/soc/mediatek/mt2701/mt2701-afe-pcm.c b/sou

[alsa-devel] [PATCH v3 9/9] ASoC: mediatek: Add mt2701-cs42448 driver and config option.

2016-06-13 Thread Garlic Tseng
Add machine driver and config option for MT2701. Signed-off-by: Garlic Tseng --- sound/soc/mediatek/Kconfig | 21 ++ sound/soc/mediatek/Makefile| 1 + sound/soc/mediatek/mt2701/Makefile | 19 ++ sound/soc/mediatek/mt2701/mt2701-cs42448.c | 422

[alsa-devel] [PATCH v3 8/9] ASoC: mediatek: add BT implementation

2016-06-13 Thread Garlic Tseng
Add BT implementation for mt2701 platform driver. Signed-off-by: Garlic Tseng --- sound/soc/mediatek/mt2701/mt2701-afe-pcm.c | 139 + 1 file changed, 139 insertions(+) diff --git a/sound/soc/mediatek/mt2701/mt2701-afe-pcm.c b/sound/soc/mediatek/mt2701/mt2701-afe

[alsa-devel] [PATCH v3 6/9] ASoC: mediatek: add mt2701 platform driver implementation.

2016-06-13 Thread Garlic Tseng
-by: Garlic Tseng <garlic.ts...@mediatek.com> --- sound/soc/mediatek/mt2701/mt2701-afe-pcm.c | 1559 1 file changed, 1559 insertions(+) create mode 100644 sound/soc/mediatek/mt2701/mt2701-afe-pcm.c diff --git a/sound/soc/mediatek/mt2701/mt2701-afe-pcm.c b/sound/soc/me

[alsa-devel] [PATCH v3 6/9] ASoC: mediatek: add mt2701 platform driver implementation.

2016-06-13 Thread Garlic Tseng
-by: Garlic Tseng --- sound/soc/mediatek/mt2701/mt2701-afe-pcm.c | 1559 1 file changed, 1559 insertions(+) create mode 100644 sound/soc/mediatek/mt2701/mt2701-afe-pcm.c diff --git a/sound/soc/mediatek/mt2701/mt2701-afe-pcm.c b/sound/soc/mediatek/mt2701/mt2701-afe-pcm.c new

[alsa-devel] [PATCH v3 3/9] ASoC: mediatek: let mt8173 use mediatek common structure

2016-06-13 Thread Garlic Tseng
Modify mt8173 driver implementation to use common structure. Signed-off-by: Garlic Tseng <garlic.ts...@mediatek.com> --- sound/soc/mediatek/Kconfig| 11 + sound/soc/mediatek/Makefile | 3 +- sound/soc/mediatek/common/Makefile| 17 + sou

[alsa-devel] [PATCH v3 3/9] ASoC: mediatek: let mt8173 use mediatek common structure

2016-06-13 Thread Garlic Tseng
Modify mt8173 driver implementation to use common structure. Signed-off-by: Garlic Tseng --- sound/soc/mediatek/Kconfig| 11 + sound/soc/mediatek/Makefile | 3 +- sound/soc/mediatek/common/Makefile| 17 + sound/soc/mediatek/mt8173/mt8173-afe

[alsa-devel] [PATCH v3 5/9] ASoC: mediatek: add structure define and clock control for 2701

2016-06-13 Thread Garlic Tseng
add structure define and clock control function for 2701. Signed-off-by: Garlic Tseng <garlic.ts...@mediatek.com> --- sound/soc/mediatek/mt2701/mt2701-afe-clock-ctrl.c | 464 ++ sound/soc/mediatek/mt2701/mt2701-afe-clock-ctrl.h | 38 ++ sound/soc/mediatek/mt2701/mt27

[alsa-devel] [PATCH v3 1/9] ASoC: mediatek: Refine mt8173 driver and change config option

2016-06-13 Thread Garlic Tseng
move mt8173 driver to another folder and add prefix. add config option SND_SOC_MT8173 Signed-off-by: Garlic Tseng <garlic.ts...@mediatek.com> --- sound/soc/mediatek/Kconfig | 14 +- sound/soc/mediatek/Makefile| 9 +- sound/soc/mediatek/

[alsa-devel] [PATCH v3 4/9] ASoC: mediatek: add documents for mt2701

2016-06-13 Thread Garlic Tseng
add mt2701-afe-pcm.txt and mt2701-cs42448.txt for mt2701 Signed-off-by: Garlic Tseng <garlic.ts...@mediatek.com> --- .../devicetree/bindings/sound/mt2701-afe-pcm.txt | 150 + .../devicetree/bindings/sound/mt2701-cs42448.txt | 43 ++ 2 files changed, 193 inse

[alsa-devel] [PATCH v3 5/9] ASoC: mediatek: add structure define and clock control for 2701

2016-06-13 Thread Garlic Tseng
add structure define and clock control function for 2701. Signed-off-by: Garlic Tseng --- sound/soc/mediatek/mt2701/mt2701-afe-clock-ctrl.c | 464 ++ sound/soc/mediatek/mt2701/mt2701-afe-clock-ctrl.h | 38 ++ sound/soc/mediatek/mt2701/mt2701-afe-common.h | 181

[alsa-devel] [PATCH v3 1/9] ASoC: mediatek: Refine mt8173 driver and change config option

2016-06-13 Thread Garlic Tseng
move mt8173 driver to another folder and add prefix. add config option SND_SOC_MT8173 Signed-off-by: Garlic Tseng --- sound/soc/mediatek/Kconfig | 14 +- sound/soc/mediatek/Makefile| 9 +- sound/soc/mediatek/mt8173/Makefile

[alsa-devel] [PATCH v3 4/9] ASoC: mediatek: add documents for mt2701

2016-06-13 Thread Garlic Tseng
add mt2701-afe-pcm.txt and mt2701-cs42448.txt for mt2701 Signed-off-by: Garlic Tseng --- .../devicetree/bindings/sound/mt2701-afe-pcm.txt | 150 + .../devicetree/bindings/sound/mt2701-cs42448.txt | 43 ++ 2 files changed, 193 insertions(+) create mode 100644

Re: [alsa-devel] [PATCH v2 6/9] ASoC: mediatek: add mt2701 platform driver implementation.

2016-06-07 Thread Garlic Tseng
On Tue, 2016-06-07 at 17:31 +0100, Mark Brown wrote: > On Fri, Jun 03, 2016 at 12:56:21PM +0800, Garlic Tseng wrote: > > > + if (val < 0 || val > MT2701_I2S_NUM) { > > + dev_err(afe->dev, "%s, num not available, num %d, val %d\n", >

Re: [alsa-devel] [PATCH v2 6/9] ASoC: mediatek: add mt2701 platform driver implementation.

2016-06-07 Thread Garlic Tseng
On Tue, 2016-06-07 at 17:31 +0100, Mark Brown wrote: > On Fri, Jun 03, 2016 at 12:56:21PM +0800, Garlic Tseng wrote: > > > + if (val < 0 || val > MT2701_I2S_NUM) { > > + dev_err(afe->dev, "%s, num not available, num %d, val %d\n", >

  1   2   >