Re: [PATCH v2] arm64: dts: mt8173: Add afe device node

2015-07-13 Thread Koro Chen
On Thu, 2015-07-09 at 18:45 +0800, Daniel Kurtz wrote: > On Thu, Jul 9, 2015 at 11:32 AM, Koro Chen wrote: > > This adds afe (audio front end) device node to the MT8173 dtsi file. > > > > Signed-off-by: Koro Chen > > Reviewed-by: Daniel Kurtz > > I believe

[PATCH v2] arm64: dts: mt8173: Add afe device node

2015-07-08 Thread Koro Chen
This adds afe (audio front end) device node to the MT8173 dtsi file. Signed-off-by: Koro Chen --- This patch is based on Matthias's tree: https://github.com/mbgg/linux-mediatek branch: v4.2-next/arm64 Changes since v1: - change node name to afe: audio-controller@1122 --- arch/arm64

[PATCH] ASoC: mediatek: Use platform_of_node for machine drivers

2015-07-08 Thread Koro Chen
This replaces the platform_name in snd_soc_dai_link by device tree node. Signed-off-by: Koro Chen --- .../devicetree/bindings/sound/mt8173-max98090.txt | 2 ++ .../bindings/sound/mt8173-rt5650-rt5676.txt | 2 ++ sound/soc/mediatek/mt8173-max98090.c | 17

Re: [PATCH] arm64: dts: mt8173: Add afe device node

2015-07-07 Thread Koro Chen
On Tue, 2015-07-07 at 09:46 +0200, Matthias Brugger wrote: > On Monday, July 06, 2015 09:02:38 PM Daniel Kurtz wrote: > > On Mon, Jul 6, 2015 at 2:52 PM, Koro Chen wrote: > > > This adds afe (audio front end) device node to the MT8173 dtsi file. > > > > > > Th

[PATCH] arm64: dts: mt8173: Add afe device node

2015-07-06 Thread Koro Chen
This adds afe (audio front end) device node to the MT8173 dtsi file. This patch is based on Matthias's tree: https://github.com/mbgg/linux-mediatek branch: v4.2-next/arm64 Signed-off-by: Koro Chen --- arch/arm64/boot/dts/mediatek/mt8173.dtsi | 32 1

[PATCH v2 0/3] ASoC: Mediatek: Add support for MT8173 SOC

2015-06-15 Thread Koro Chen
This adds basic support for the Mediatek AFE (Audio Front End) unit of MT8173. This patch is based on Linux 4.1-rc1 and Sascha's SCPSYS power patch [1]. The AFE unit comprises several memory interfaces that communicate with CPU, a multi input multi output digital audio interconnect, and several

[PATCH v2 2/3] ASoC: mediatek: Add machine driver for MAX98090 codec

2015-06-15 Thread Koro Chen
This is the DPCM based machine driver with MAX98090 Signed-off-by: Koro Chen --- .../devicetree/bindings/sound/mt8173-max98090.txt | 13 ++ sound/soc/mediatek/Kconfig | 10 + sound/soc/mediatek/Makefile| 2 + sound/soc/mediatek/mt8173

[PATCH v2 3/3] ASoC: mediatek: Add machine driver for rt5650 rt5676 codec

2015-06-15 Thread Koro Chen
This is the DPCM based machine driver with rt5650 and rt5676 Signed-off-by: Nicolas Boichat Signed-off-by: Koro Chen --- .../bindings/sound/mt8173-rt5650-rt5676.txt| 13 + sound/soc/mediatek/Kconfig | 11 + sound/soc/mediatek/Makefile

[PATCH v2 1/3] ASoC: mediatek: Add AFE platform driver

2015-06-15 Thread Koro Chen
This is the DPCM based platform driver of AFE (Audio Front End) unit. Signed-off-by: Sascha Hauer Signed-off-by: Koro Chen --- .../devicetree/bindings/sound/mtk-afe-pcm.txt | 45 + sound/soc/Kconfig |1 + sound/soc/Makefile

Re: [PATCH 2/3] ASoC: mediatek: Add machine driver for MAX98090 codec

2015-06-14 Thread Koro Chen
On Fri, 2015-06-12 at 14:13 +0100, Mark Brown wrote: > On Wed, Jun 10, 2015 at 10:24:35PM +0800, Koro Chen wrote: > > > --- /dev/null > > +++ b/Documentation/devicetree/bindings/sound/mt8173-max98090.txt > > @@ -0,0 +1,17 @@ > > +MT8173 with MAX98090 CODEC

Re: [PATCH 1/3] ASoC: mediatek: Add AFE platform driver

2015-06-14 Thread Koro Chen
On Fri, 2015-06-12 at 14:06 +0100, Mark Brown wrote: > On Wed, Jun 10, 2015 at 10:24:34PM +0800, Koro Chen wrote: > > This is the DPCM based platform driver of AFE (Audio Front End) unit. > > > > Signed-off-by: Koro Chen > > Signed-off-by: Sascha Hauer > > Your

Re: [alsa-devel] [PATCH 1/3] ASoC: mediatek: Add AFE platform driver

2015-06-12 Thread Koro Chen
On Fri, 2015-06-12 at 09:37 +0200, Paul Bolle wrote: > On Fri, 2015-06-12 at 09:55 +0800, Koro Chen wrote: > > On Thu, 2015-06-11 at 09:03 +0200, Paul Bolle wrote: > > > (What does negating a bool twice do?) > > > > > Because bool actually can be unsigne

Re: [alsa-devel] [PATCH 1/3] ASoC: mediatek: Add AFE platform driver

2015-06-11 Thread Koro Chen
On Thu, 2015-06-11 at 09:03 +0200, Paul Bolle wrote: > On Wed, 2015-06-10 at 22:24 +0800, Koro Chen wrote: > > --- /dev/null > > +++ b/sound/soc/mediatek/Kconfig > > > +config SND_SOC_MEDIATEK > > + bool "ASoC support for Mediatek chip" >

[PATCH 0/3] ASoC: Mediatek: Add support for MT8173 SoC

2015-06-10 Thread Koro Chen
This adds basic support for the Mediatek AFE (Audio Front End) unit for MT8173. This patch is based on Linux 4.1-rc1 and Sascha's SCPSYS power patch [1]. The AFE unit comprises several memory interfaces that communicate with CPU, a multi input multi output digital audio interconnect, and several e

[PATCH 2/3] ASoC: mediatek: Add machine driver for MAX98090 codec

2015-06-10 Thread Koro Chen
This is the DPCM based machine driver with MAX98090 Signed-off-by: Koro Chen --- .../devicetree/bindings/sound/mt8173-max98090.txt | 17 ++ sound/soc/mediatek/Kconfig | 11 + sound/soc/mediatek/Makefile| 2 + sound/soc/mediatek/mt8173

[PATCH 3/3] ASoC: mediatek: Add machine driver for rt5650 rt5676 codec

2015-06-10 Thread Koro Chen
This is the DPCM based machine driver with rt5650 and rt5676 Signed-off-by: Koro Chen Signed-off-by: Nicolas Boichat --- .../bindings/sound/mt8173-rt5650-rt5676.txt| 15 ++ sound/soc/mediatek/Kconfig | 12 + sound/soc/mediatek/Makefile

[PATCH 1/3] ASoC: mediatek: Add AFE platform driver

2015-06-10 Thread Koro Chen
This is the DPCM based platform driver of AFE (Audio Front End) unit. Signed-off-by: Koro Chen Signed-off-by: Sascha Hauer --- .../devicetree/bindings/sound/mtk-afe-pcm.txt | 45 + sound/soc/Kconfig |1 + sound/soc/Makefile

Re: [RESEND RFC PATCH 1/3] ASoC: mediatek: Add binding support for AFE driver

2015-04-21 Thread Koro Chen
On Mon, 2015-04-20 at 21:48 +0100, Mark Brown wrote: > On Mon, Apr 20, 2015 at 06:37:47AM +0200, Sascha Hauer wrote: > > On Sat, Apr 18, 2015 at 06:34:07PM +0100, Mark Brown wrote: > > > On Fri, Apr 10, 2015 at 04:14:07PM +0800, Koro Chen wrote: > > > > > +Each e

Re: [RESEND RFC PATCH 1/3] ASoC: mediatek: Add binding support for AFE driver

2015-04-21 Thread Koro Chen
r 10, 2015 at 04:14:07PM +0800, Koro Chen wrote: > > > > > > > +Each external interface (called "IO" in this driver) is presented as > > > > > a > > > > > +DAI to ASoC. An IO must be connected via the interconnect to a memif. > &g

Re: [RESEND RFC PATCH 3/3] ASoC: mediatek: Add AFE platform driver

2015-04-20 Thread Koro Chen
On Mon, 2015-04-20 at 21:55 +0100, Mark Brown wrote: > On Mon, Apr 20, 2015 at 02:22:24PM +0800, Koro Chen wrote: > > On Sat, 2015-04-18 at 18:51 +0100, Mark Brown wrote: > > > On Fri, Apr 10, 2015 at 04:14:09PM +0800, Koro Chen wrote: > > > > Ah, so the SRAM is d

Re: [RESEND RFC PATCH 3/3] ASoC: mediatek: Add AFE platform driver

2015-04-19 Thread Koro Chen
On Sat, 2015-04-18 at 18:51 +0100, Mark Brown wrote: > On Fri, Apr 10, 2015 at 04:14:09PM +0800, Koro Chen wrote: > > > + if (memif->use_sram) { > > + struct snd_dma_buffer *dma_buf = &substream->dma_buffer; > > + int