[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 --- 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 --- a

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

2016-07-10 Thread Garlic Tseng
Signed-off-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 15

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

[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 --- 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
: 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 --- 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 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 patchse

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 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 --- 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
: 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 --- .../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
ll 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. > > + If

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 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 --- 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 --- 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
: 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-12 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-12 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-12 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-12 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-12 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-12 Thread Garlic Tseng
: 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-12 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-12 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-12 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-12 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 2/9] ASoC: mediatek: implement mediatek common structure

2016-06-07 Thread Garlic Tseng
Hi Mark, thank for comment. On Tue, 2016-06-07 at 16:54 +0100, Mark Brown wrote: > On Fri, Jun 03, 2016 at 12:56:17PM +0800, Garlic Tseng wrote: > > > + /*enable agent*/ > > Lots of comments with missing spaces in them, there's quite a few > examples of that in here

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

2016-06-07 Thread Garlic Tseng
On Tue, 2016-06-07 at 17:15 +0100, Mark Brown wrote: > On Fri, Jun 03, 2016 at 12:56:20PM +0800, Garlic Tseng wrote: > > > +void mt2701_init_clock(struct mtk_base_afe *afe) > > +{ > > + struct mt2701_afe_private *afe_priv = afe->platform_priv; > > + int i

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

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

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

2016-06-02 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 v2 5/9] ASoC: mediatek: add structure define and clock control for 2701

2016-06-02 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 | 357 ++ sound/soc/mediatek/mt2701/mt2701-afe-clock-ctrl.h | 33 ++ sound/soc/mediatek/mt2701/mt2701-afe-common.h | 185

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

2016-06-02 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 v2 0/9] ASoC: Mediatek: Add support for MT2701 SOC

2016-06-02 Thread Garlic Tseng
This patch adds basic support for Mediatek AFE for MT2701 SoC. The patch is based on broonie tree "for-next" branch. 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: Ref

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

2016-06-02 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 v2 6/9] ASoC: mediatek: add mt2701 platform driver implementation.

2016-06-02 Thread Garlic Tseng
: Garlic Tseng --- sound/soc/mediatek/mt2701/mt2701-afe-pcm.c | 1523 1 file changed, 1523 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 v2 1/9] ASoC: mediatek: Refine mt8173 driver and change config option

2016-06-02 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 v2 2/9] ASoC: mediatek: implement mediatek common structure

2016-06-02 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 | 387 + sound/soc/mediatek/common/mtk-afe-fe-dai.h | 47 +++ .../soc

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

2016-06-02 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

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

2016-05-06 Thread Garlic Tseng
On Fri, 2016-05-06 at 13:20 +0100, Mark Brown wrote: > On Thu, May 05, 2016 at 06:39:32PM +0800, Garlic Tseng wrote: > > > As mentioned above, the difference of the ASoCs between the two chips > > are too large that we have a hard time sharing the driver code. > > The

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

2016-05-05 Thread Garlic Tseng
On Thu, 2016-05-05 at 10:32 +0200, Matthias Brugger wrote: > > On 05/05/16 04:45, Garlic Tseng wrote: > > On Wed, 2016-05-04 at 17:43 +0100, Mark Brown wrote: > >> On Fri, Apr 29, 2016 at 09:00:42PM +0800, Garlic Tseng wrote: > >> > >>> .../{mtk-afe-p

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

2016-05-04 Thread Garlic Tseng
On Wed, 2016-05-04 at 17:43 +0100, Mark Brown wrote: > On Fri, Apr 29, 2016 at 09:00:42PM +0800, Garlic Tseng wrote: > > > .../{mtk-afe-pcm.c => mt8173/mt8173-afe-pcm.c} | 488 > > ++--- > > So there's going to be no code sharing at all betwe

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

2016-04-29 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| 2 +- sound/soc/mediatek/mt2701/Makefile | 20 ++ sound/soc/mediatek/mt2701/mt2701-cs42448.c | 412

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

2016-04-29 Thread Garlic Tseng
: Garlic Tseng --- sound/soc/mediatek/mt2701/mt2701-afe-pcm.c | 1689 1 file changed, 1689 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 0/7] ASoC: Mediatek: Add support for MT2701 SOC

2016-04-29 Thread Garlic Tseng
This patch adds basic support for Mediatek AFE for MT2701 SoC. The patch is based on broonie tree "for-next" branch. Change since RFC v2: add BT function refine Kconfig and Makefile add prefix 'mt8173' and 'mt2701' for relative drivers. Garlic Tseng (7): ASoC:

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

2016-04-29 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 2/7] ASoC: mediatek: add documents for mt2701

2016-04-29 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 1/7] ASoC: mediatek: Refine mt8173 driver and change config option

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

[alsa-devel] [PATCH 3/7] ASoC: mediatek: add clock and irq control for 2701 platform driver

2016-04-29 Thread Garlic Tseng
Clock and irq controls for 2701 platform driver. To save irq resource, dynamic-allocated irq mechanism is implemented. Signed-off-by: Garlic Tseng --- sound/soc/mediatek/mt2701/mt2701-afe-clock-ctrl.c | 344 ++ sound/soc/mediatek/mt2701/mt2701-afe-clock-ctrl.h | 33

[alsa-devel] [PATCH 6/7] ASoC: mediatek: add BT implementation

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

Re: [alsa-devel] [RFC PATCH v2 2/5] ASoC: mediatek: add documents for mt2701

2016-04-20 Thread Garlic Tseng
On Wed, 2016-04-20 at 12:36 +0200, Matthias Brugger wrote: > > On 14/04/16 14:14, Garlic Tseng wrote: > [...] > > > diff --git a/Documentation/devicetree/bindings/sound/mtk2701-afe-pcm.txt > > b/Documentation/devicetree/bindings/sound/mtk2701-afe-pcm.txt > > new

Re: [alsa-devel] [RFC PATCH v2 1/5] ASoC: Mediatek: Refine mt8173 driver

2016-04-14 Thread Garlic Tseng
On Thu, 2016-04-14 at 20:44 +0800, Yingjoe Chen wrote: > On Thu, 2016-04-14 at 20:14 +0800, Garlic Tseng wrote: > > Move mt8173 driver to another folder. > > > > The software control sequence of mt2701 is very different from that of > > mt8173, > > so this p

Re: [alsa-devel] [RFC PATCH v2 5/5] ASoC: mediatek: Add mt2701-cs42448 driver and config option.

2016-04-14 Thread YiMing (Garlic) Tseng
On Thu, 2016-04-14 at 20:39 +0800, Yingjoe Chen wrote: > On Thu, 2016-04-14 at 20:14 +0800, Garlic Tseng wrote: > > Add machine driver and config option for MT2701. > > > > Signed-off-by: Garlic Tseng > > --- > > sound/soc/mediatek/Kconfig

[alsa-devel] [RFC PATCH v2 0/5] ASoC: Mediatek: Add support for MT2701 SOC

2016-04-14 Thread Garlic Tseng
y comments will be greatly appreciated. Garlic Tseng (5): ASoC: mediatek: Refine mt8173 driver ASoC: mediatek: add documents for mt2701 ASoC: mediatek: add clock and irq control for 2701 platform driver ASoC: mediatek: add mt2701 platform driver implementation. ASoC: mediatek: Add mt27

[alsa-devel] [RFC PATCH v2 1/5] ASoC: Mediatek: Refine mt8173 driver

2016-04-14 Thread Garlic Tseng
Move mt8173 driver to another folder. The software control sequence of mt2701 is very different from that of mt8173, so this patch moves mt8173 code to another folder. Signed-off-by: Garlic Tseng --- sound/soc/mediatek/Makefile| 12 +--- sound/soc/mediatek

[alsa-devel] [RFC PATCH v2 3/5] ASoC: mediatek: add clock and irq control for 2701 platform driver

2016-04-14 Thread Garlic Tseng
Clock and irq controls for 2701 platform driver. There are some BLOCK_COMMENT_STYLE errors from checkpatch and they will be fixed after BT functions finished. Signed-off-by: Garlic Tseng --- sound/soc/mediatek/mt2701/mtk2701-afe-clock-ctrl.c | 259 + sound/soc/mediatek

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

2016-04-14 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| 3 + sound/soc/mediatek/mt2701/Makefile | 20 ++ sound/soc/mediatek/mt2701/mt2701-cs42448.c | 376

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

2016-04-14 Thread Garlic Tseng
Add mt2701 platform driver. There are some BLOCK_COMMENT_STYLE errors from checkpatch and they will be fixed after BT functions finished. Signed-off-by: Garlic Tseng --- sound/soc/mediatek/mt2701/mtk2701-afe-pcm.c | 1752 +++ 1 file changed, 1752 insertions(+) create

[alsa-devel] [RFC PATCH v2 2/5] ASoC: mediatek: add documents for mt2701

2016-04-14 Thread Garlic Tseng
Add documents for mt2701-cs42448 machine driver and mt2701 platform driver. Signed-off-by: Garlic Tseng --- .../devicetree/bindings/sound/mt2701-cs42448.txt | 39 ++ .../devicetree/bindings/sound/mtk2701-afe-pcm.txt | 150 + 2 files changed, 189 insertions(+) create

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

2016-04-14 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| 3 + sound/soc/mediatek/mt2701/Makefile | 20 ++ sound/soc/mediatek/mt2701/mt2701-cs42448.c | 376

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

2016-04-14 Thread Garlic Tseng
This patch adds basic support for Mediatek AFE for MT2701 SoC. The patch is based on broonie tree "for-next" branch. The interface to connect with BT chip is not finish yet, but as an upstream rookie I really need some comments. Any comments will be greatly appreciated. Garlic Tseng (

[alsa-devel] [RFC PATCH 2/4] ASoC: mediatek: add documents for mt2701

2016-04-14 Thread Garlic Tseng
Add documents for mt2701-cs42448 machine driver and mt2701 platform driver. Signed-off-by: Garlic Tseng --- .../devicetree/bindings/sound/mt2701-cs42448.txt | 39 ++ .../devicetree/bindings/sound/mtk2701-afe-pcm.txt | 150 + 2 files changed, 189 insertions(+) create

[alsa-devel] [RFC PATCH 1/4] ASoC: mediatek: Refine mt8173 driver

2016-04-14 Thread Garlic Tseng
Move mt8173 driver to another folder. The software control sequence of mt2701 are very different from that of mt8173, so this patch move mt8173 code to another folder Signed-off-by: Garlic Tseng --- sound/soc/mediatek/Makefile | 12 +- sound/soc/mediatek/mt8173-max98090.c

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

2016-04-14 Thread Garlic Tseng
Add mt2701 platform driver. There are some BLOCK_COMMENT_STYLE error from checkpatch and they will be fixed after BT functions finished. Signed-off-by: Garlic Tseng --- sound/soc/mediatek/mt2701/mtk2701-afe-clock-ctrl.c | 259 +++ sound/soc/mediatek/mt2701/mtk2701-afe-clock-ctrl.h | 28