Skip to contentSkip to conversation

mmp audio support

PATCH Applied Zhangfei Gao 6 participants 19 messages Jun 11, 2012 – Jun 21, 2012

Subsystems (4)
lore
Share & tools
lore
#0 lore raw

v2 cover mmp audio support

v1->v2:
modify accroingly with suggestion from Vinod and Mark remove deprecated chan->private and dma.h remove prep_slave_sg
remove module_init and move operation to probe misc change

v0->v1:
dmaengine -> soc-dmaengine.
update according to Mark's suggestion

These patches provide mmp audio support under alsa via dmaengine Support platfrom pxa688 and pxa910
mmp_tdma.c and mmp-pcm.c is shared for pxa688 and pxa910 pxa688 (mmp2) use mmp2-sspa.c
pxa910 directly use pxa-ssp.c
mmp_tdma.c is under dmaengine framework

Verified on brownstone (pxa688) and ttc-dkb

Qiao Zhou (1):
ASoC: add ttc-dkb machine support

Zhangfei Gao (4):
dmaengine: mmp_tdma: add mmp tdma support
ASoC: mmp: add audio dma support
ASOC: mmp: add sspa support
ASoC: add mmp brownstone support

 drivers/dma/Kconfig                     |   10 +
 drivers/dma/Makefile                    |    1 +
 drivers/dma/mmp_tdma.c                  |  610 +++++++++++++++++++++++++++++++
 include/linux/platform_data/mmp_audio.h |   22 ++
 sound/soc/pxa/Kconfig                   |   42 +++
 sound/soc/pxa/Makefile                  |    8 +
 sound/soc/pxa/brownstone.c              |  174 +++++++++
 sound/soc/pxa/mmp-pcm.c                 |  297 +++++++++++++++
 sound/soc/pxa/mmp-sspa.c                |  480 ++++++++++++++++++++++++
 sound/soc/pxa/mmp-sspa.h                |   92 +++++
 sound/soc/pxa/ttc-dkb.c                 |  173 +++++++++
 11 files changed, 1909 insertions(+), 0 deletions(-)
 create mode 100644 drivers/dma/mmp_tdma.c
 create mode 100644 include/linux/platform_data/mmp_audio.h
 create mode 100644 sound/soc/pxa/brownstone.c
 create mode 100644 sound/soc/pxa/mmp-pcm.c
 create mode 100644 sound/soc/pxa/mmp-sspa.c
 create mode 100644 sound/soc/pxa/mmp-sspa.h
 create mode 100644 sound/soc/pxa/ttc-dkb.c
#1 lore raw

PATCH v2 1/5 dmaengine: mmp_tdma: add mmp tdma support

Add support for two-channel dma under dmaengine
support: mmp-adma and pxa910-squ

---
 drivers/dma/Kconfig    |   10 +
 drivers/dma/Makefile   |    1 +
 drivers/dma/mmp_tdma.c |  610 ++++++++++++++++++++++++++++++++++++++++++++++++
 3 files changed, 621 insertions(+), 0 deletions(-)
 create mode 100644 drivers/dma/mmp_tdma.c
drivers/dma/Kconfig +10 -0
index aadeb5b..75c5434 100644
@@ -260,6 +260,16 @@ config DMA_SA11X0
 	  SA-1110 SoCs.  This DMA engine can only be used with on-chip
 	  devices.
 
+config MMP_TDMA
+	bool "MMP Two-Channel DMA support"
+	default ARCH_MMP
+	select DMA_ENGINE
+	help
+	  Support the MMP Two-Channel DMA engine.
+	  This engine used for MMP Audio DMA and pxa910 SQU.
+
+	  Say Y here if you enabled MMP ADMA, otherwise say N.
+
 config DMA_ENGINE
 	bool
 
drivers/dma/Makefile +1 -0
index 86b795b..37e9258 100644
@@ -28,3 +28,4 @@ obj-$(CONFIG_PCH_DMA) += pch_dma.o
 obj-$(CONFIG_AMBA_PL08X) += amba-pl08x.o
 obj-$(CONFIG_EP93XX_DMA) += ep93xx_dma.o
 obj-$(CONFIG_DMA_SA11X0) += sa11x0-dma.o
+obj-$(CONFIG_MMP_TDMA) += mmp_tdma.o
drivers/dma/mmp_tdma.c new file +610 -0

610 lines not on this page · raw message

Signature · 1 line
1.7.1
#2 lore raw

Re: [PATCH v2 1/5] dmaengine: mmp_tdma: add mmp tdma support

drivers/dma/mmp_tdma.c line 246

Quoted 13 lines · Zhangfei Gao
drivers/dma/mmp_tdma.c new file +13 -0
+static int mmp_tdma_clear_chan_irq(struct mmp_tdma_chan *tdmac)
+{
+       u32 reg = readl(tdmac->reg_base + TDISR);
+
+       if (reg & TDISR_COMP) {
+               /* clear irq */
+               reg &= ~TDISR_COMP;
+               writel(reg, tdmac->reg_base + TDISR);
+
+               return 0;
+       }
+       return -1;
+} 

-1?
Please return a proper linux error code.

Signature · 1 line
~Vinod
#3 lore raw

Re: [PATCH v2 1/5] dmaengine: mmp_tdma: add mmp tdma support

Quoted 16 lines · Vinod Koul

drivers/dma/mmp_tdma.c line 246

Quoted 13 lines · Zhangfei Gao
drivers/dma/mmp_tdma.c new file +13 -0
+static int mmp_tdma_clear_chan_irq(struct mmp_tdma_chan *tdmac)
+{
+       u32 reg = readl(tdmac->reg_base + TDISR);
+
+       if (reg & TDISR_COMP) {
+               /* clear irq */
+               reg &= ~TDISR_COMP;
+               writel(reg, tdmac->reg_base + TDISR);
+
+               return 0;
+       }
+       return -1;
+}

-1?
Please return a proper linux error code.

Thanks Vinod for careful review, my mistake, will resend the patch.

Quoted 1 line

http://mailman.alsa-project.org/mailman/listinfo/alsa-devel

#4 lore raw

PATCH v2 1/5 dmaengine: mmp_tdma: add mmp tdma support

In reply to Vinod Koul

Add support for two-channel dma under dmaengine
support: mmp-adma and pxa910-squ

---
 drivers/dma/Kconfig    |   10 +
 drivers/dma/Makefile   |    1 +
 drivers/dma/mmp_tdma.c |  610 ++++++++++++++++++++++++++++++++++++++++++++++++
 3 files changed, 621 insertions(+), 0 deletions(-)
 create mode 100644 drivers/dma/mmp_tdma.c
drivers/dma/Kconfig +10 -0
index aadeb5b..75c5434 100644
@@ -260,6 +260,16 @@ config DMA_SA11X0
 	  SA-1110 SoCs.  This DMA engine can only be used with on-chip
 	  devices.
 
+config MMP_TDMA
+	bool "MMP Two-Channel DMA support"
+	default ARCH_MMP
+	select DMA_ENGINE
+	help
+	  Support the MMP Two-Channel DMA engine.
+	  This engine used for MMP Audio DMA and pxa910 SQU.
+
+	  Say Y here if you enabled MMP ADMA, otherwise say N.
+
 config DMA_ENGINE
 	bool
 
drivers/dma/Makefile +1 -0
index 86b795b..37e9258 100644
@@ -28,3 +28,4 @@ obj-$(CONFIG_PCH_DMA) += pch_dma.o
 obj-$(CONFIG_AMBA_PL08X) += amba-pl08x.o
 obj-$(CONFIG_EP93XX_DMA) += ep93xx_dma.o
 obj-$(CONFIG_DMA_SA11X0) += sa11x0-dma.o
+obj-$(CONFIG_MMP_TDMA) += mmp_tdma.o
drivers/dma/mmp_tdma.c new file +610 -0

610 lines not on this page · raw message

Signature · 1 line
1.7.1
Applied
#5 lore raw

Re: [PATCH 1/5] dmaengine: mmp_tdma: add mmp tdma support

Quoted 2 lines · Zhangfei Gao

Add support for two-channel dma under dmaengine
support: mmp-adma and pxa910-squ

Applied, thanks

Signature · 1 line
~Vinod
#6 lore raw

Re: [PATCH 1/5] dmaengine: mmp_tdma: add mmp tdma support

Quoted 7 lines · Vinod Koul
Quoted 2 lines · Zhangfei Gao

Add support for two-channel dma under dmaengine
support: mmp-adma and pxa910-squ

Applied, thanks

--
~Vinod

Thanks Vinod for the great help.

Quoted 10 lines

--
To unsubscribe from this list: send the line "unsubscribe alsa-devel" in the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

_______________________________________________
Alsa-devel mailing list
[email protected]
http://mailman.alsa-project.org/mailman/listinfo/alsa-devel

#7 lore raw

Re: [PATCH v2 1/5] dmaengine: mmp_tdma: add mmp tdma support

In reply to Vinod Koul
Quoted 18 lines · Vinod Koul

Review

Quoted 13 lines · Zhangfei Gao
(quoted diff) +13 -0
+static int mmp_tdma_clear_chan_irq(struct mmp_tdma_chan *tdmac)
+{
+ ? ? ? u32 reg = readl(tdmac->reg_base + TDISR);
+
+ ? ? ? if (reg & TDISR_COMP) {
+ ? ? ? ? ? ? ? /* clear irq */
+ ? ? ? ? ? ? ? reg &= ~TDISR_COMP;
+ ? ? ? ? ? ? ? writel(reg, tdmac->reg_base + TDISR);
+
+ ? ? ? ? ? ? ? return 0;
+ ? ? ? }
+ ? ? ? return -1;
+}

-1?
Please return a proper linux error code.

Quoted 2 lines

--
~Vinod

Hi, Vinod

The patch is updated, would you mind take a look, thanks.

#8 lore raw

PATCH v2 2/5 ASoC: mmp: add audio dma support

In reply to Zhangfei Gao

mmp-pcm handle audio dma based on soc-dmaengine
Support mmp and pxa910

---
 include/linux/platform_data/mmp_audio.h |   22 +++
 sound/soc/pxa/Kconfig                   |    9 +
 sound/soc/pxa/Makefile                  |    2 +
 sound/soc/pxa/mmp-pcm.c                 |  297 +++++++++++++++++++++++++++++++
 4 files changed, 330 insertions(+), 0 deletions(-)
 create mode 100644 include/linux/platform_data/mmp_audio.h
 create mode 100644 sound/soc/pxa/mmp-pcm.c
include/linux/platform_data/mmp_audio.h new file +22 -0
new file mode 100644
index 0000000..0f25d16
@@ -0,0 +1,22 @@
+/*
+ *  MMP Platform AUDIO Management
+ *
+ *  Copyright (c) 2011 Marvell Semiconductors Inc.
+ *
+ *  This program is free software; you can redistribute it and/or modify
+ *  it under the terms of the GNU General Public License version 2 as
+ *  published by the Free Software Foundation.
+ *
+ */
+
+#ifndef MMP_AUDIO_H
+#define MMP_AUDIO_H
+
+struct mmp_audio_platdata {
+	u32 period_max_capture;
+	u32 buffer_max_capture;
+	u32 period_max_playback;
+	u32 buffer_max_playback;
+};
+
+#endif /* MMP_AUDIO_H */
sound/soc/pxa/Kconfig +9 -0
index a0f7d3c..5d76e29 100644
@@ -8,6 +8,15 @@ config SND_PXA2XX_SOC
 	  the PXA2xx AC97, I2S or SSP interface. You will also need
 	  to select the audio interfaces to support below.
 
+config SND_MMP_SOC
+	bool "Soc Audio for Marvell MMP chips"
+	depends on ARCH_MMP
+	select SND_SOC_DMAENGINE_PCM
+	select SND_ARM
+	help
+	  Say Y if you want to add support for codecs attached to
+	  the MMP SSPA interface.
+
 config SND_PXA2XX_AC97
 	tristate
 	select SND_AC97_CODEC
sound/soc/pxa/Makefile +2 -0
index af35762..f913e9b 100644
@@ -3,11 +3,13 @@ snd-soc-pxa2xx-objs := pxa2xx-pcm.o
 snd-soc-pxa2xx-ac97-objs := pxa2xx-ac97.o
 snd-soc-pxa2xx-i2s-objs := pxa2xx-i2s.o
 snd-soc-pxa-ssp-objs := pxa-ssp.o
+snd-soc-mmp-objs := mmp-pcm.o
 
 obj-$(CONFIG_SND_PXA2XX_SOC) += snd-soc-pxa2xx.o
 obj-$(CONFIG_SND_PXA2XX_SOC_AC97) += snd-soc-pxa2xx-ac97.o
 obj-$(CONFIG_SND_PXA2XX_SOC_I2S) += snd-soc-pxa2xx-i2s.o
 obj-$(CONFIG_SND_PXA_SOC_SSP) += snd-soc-pxa-ssp.o
+obj-$(CONFIG_SND_MMP_SOC) += snd-soc-mmp.o
 
 # PXA Machine Support
 snd-soc-corgi-objs := corgi.o
sound/soc/pxa/mmp-pcm.c new file +297 -0

297 lines not on this page · raw message

Signature · 1 line
1.7.1
#9 lore raw

PATCH v2 3/5 ASOC: mmp: add sspa support

In reply to Zhangfei Gao

The SSPA is a configurable multi-channel audio serial (TDM) interface. It's configurable at runtime to support up to 128 channels and the number of bits per sample: 8, 12, 16, 20, 24 and 32 bits. It also support stereo format: I2S, left-justified or right-justified.

---
 sound/soc/pxa/Kconfig    |    3 +
 sound/soc/pxa/Makefile   |    2 +
 sound/soc/pxa/mmp-sspa.c |  480 ++++++++++++++++++++++++++++++++++++++++++++++
 sound/soc/pxa/mmp-sspa.h |   92 +++++++++
 4 files changed, 577 insertions(+), 0 deletions(-)
 create mode 100644 sound/soc/pxa/mmp-sspa.c
 create mode 100644 sound/soc/pxa/mmp-sspa.h
sound/soc/pxa/Kconfig +3 -0
index 5d76e29..6c3d00b 100644
@@ -35,6 +35,9 @@ config SND_PXA_SOC_SSP
 	tristate
 	select PXA_SSP
 
+config SND_MMP_SOC_SSPA
+	tristate
+
 config SND_PXA2XX_SOC_CORGI
 	tristate "SoC Audio support for Sharp Zaurus SL-C7x0"
 	depends on SND_PXA2XX_SOC && PXA_SHARP_C7xx
sound/soc/pxa/Makefile +2 -0
index f913e9b..07b8417 100644
@@ -4,12 +4,14 @@ snd-soc-pxa2xx-ac97-objs := pxa2xx-ac97.o
 snd-soc-pxa2xx-i2s-objs := pxa2xx-i2s.o
 snd-soc-pxa-ssp-objs := pxa-ssp.o
 snd-soc-mmp-objs := mmp-pcm.o
+snd-soc-mmp-sspa-objs := mmp-sspa.o
 
 obj-$(CONFIG_SND_PXA2XX_SOC) += snd-soc-pxa2xx.o
 obj-$(CONFIG_SND_PXA2XX_SOC_AC97) += snd-soc-pxa2xx-ac97.o
 obj-$(CONFIG_SND_PXA2XX_SOC_I2S) += snd-soc-pxa2xx-i2s.o
 obj-$(CONFIG_SND_PXA_SOC_SSP) += snd-soc-pxa-ssp.o
 obj-$(CONFIG_SND_MMP_SOC) += snd-soc-mmp.o
+obj-$(CONFIG_SND_MMP_SOC_SSPA) += snd-soc-mmp-sspa.o
 
 # PXA Machine Support
 snd-soc-corgi-objs := corgi.o
sound/soc/pxa/mmp-sspa.c new file +480 -0

480 lines not on this page · raw message

sound/soc/pxa/mmp-sspa.h new file +92 -0

92 lines not on this page · raw message

Signature · 1 line
1.7.1
#10 lore raw

PATCH v2 4/5 ASoC: add mmp brownstone support

In reply to Zhangfei Gao

Adds Alsa audio platform driver for mmp brownstone machine

---
 sound/soc/pxa/Kconfig      |   10 +++
 sound/soc/pxa/Makefile     |    2 +
 sound/soc/pxa/brownstone.c |  174 ++++++++++++++++++++++++++++++++++++++++++++
 3 files changed, 186 insertions(+), 0 deletions(-)
 create mode 100644 sound/soc/pxa/brownstone.c
sound/soc/pxa/Kconfig +10 -0
index 6c3d00b..d389fd5 100644
@@ -206,3 +206,13 @@ config SND_PXA2XX_SOC_IMOTE2
        help
          Say Y if you want to add support for SoC audio on the
 	 IMote 2.
+
+config SND_MMP_SOC_BROWNSTONE
+	tristate "SoC Audio support for Marvell Brownstone"
+	depends on SND_MMP_SOC && MACH_BROWNSTONE
+	select SND_MMP_SOC_SSPA
+	select MFD_WM8994
+	select SND_SOC_WM8994
+	help
+	  Say Y if you want to add support for SoC audio on the
+	  Marvell Brownstone reference platform.
sound/soc/pxa/Makefile +2 -0
index 07b8417..c12aa2a 100644
@@ -32,6 +32,7 @@ snd-soc-mioa701-objs := mioa701_wm9713.o
 snd-soc-z2-objs := z2.o
 snd-soc-imote2-objs := imote2.o
 snd-soc-raumfeld-objs := raumfeld.o
+snd-soc-brownstone-objs := brownstone.o
 
 obj-$(CONFIG_SND_PXA2XX_SOC_CORGI) += snd-soc-corgi.o
 obj-$(CONFIG_SND_PXA2XX_SOC_POODLE) += snd-soc-poodle.o
@@ -51,3 +52,4 @@ obj-$(CONFIG_SND_SOC_TAVOREVB3) += snd-soc-tavorevb3.o
 obj-$(CONFIG_SND_SOC_ZYLONITE) += snd-soc-zylonite.o
 obj-$(CONFIG_SND_PXA2XX_SOC_IMOTE2) += snd-soc-imote2.o
 obj-$(CONFIG_SND_SOC_RAUMFELD) += snd-soc-raumfeld.o
+obj-$(CONFIG_SND_MMP_SOC_BROWNSTONE) += snd-soc-brownstone.o
sound/soc/pxa/brownstone.c new file +174 -0

174 lines not on this page · raw message

Signature · 1 line
1.7.1
#11 lore raw

PATCH v2 5/5 ASoC: add ttc-dkb machine support

In reply to Zhangfei Gao

From: Qiao Zhou <[email protected]>

add ttc-dkb machine support for pxa910. It uses 88pm8607 as codec dai, mmp-pcm as platform and pxa-ssp as cpu dai.

---
 sound/soc/pxa/Kconfig   |   20 ++++++
 sound/soc/pxa/Makefile  |    2 +
 sound/soc/pxa/ttc-dkb.c |  173 +++++++++++++++++++++++++++++++++++++++++++++++
 3 files changed, 195 insertions(+), 0 deletions(-)
 create mode 100644 sound/soc/pxa/ttc-dkb.c
sound/soc/pxa/Kconfig +20 -0
index d389fd5..4d2e46f 100644
@@ -150,6 +150,26 @@ config SND_SOC_TAVOREVB3
 	  Say Y if you want to add support for SoC audio on the
 	  Marvell Saarb reference platform.
 
+config SND_PXA910_SOC
+	tristate "SoC Audio for Marvell PXA910 chip"
+	depends on ARCH_MMP && SND
+	select SND_PCM
+	help
+	  Say Y if you want to add support for SoC audio on the
+	  Marvell PXA910 reference platform.
+
+config SND_SOC_TTC_DKB
+	bool "SoC Audio support for TTC DKB"
+	depends on SND_PXA910_SOC && MACH_TTC_DKB
+	select PXA_SSP
+	select SND_PXA_SOC_SSP
+	select SND_MMP_SOC
+	select MFD_88PM860X
+	select SND_SOC_88PM860X
+	help
+	  Say Y if you want to add support for SoC audio on TTC DKB
+
+
 config SND_SOC_ZYLONITE
 	tristate "SoC Audio support for Marvell Zylonite"
 	depends on SND_PXA2XX_SOC && MACH_ZYLONITE
sound/soc/pxa/Makefile +2 -0
index c12aa2a..d8a265d 100644
@@ -33,6 +33,7 @@ snd-soc-z2-objs := z2.o
 snd-soc-imote2-objs := imote2.o
 snd-soc-raumfeld-objs := raumfeld.o
 snd-soc-brownstone-objs := brownstone.o
+snd-soc-ttc-dkb-objs := ttc-dkb.o
 
 obj-$(CONFIG_SND_PXA2XX_SOC_CORGI) += snd-soc-corgi.o
 obj-$(CONFIG_SND_PXA2XX_SOC_POODLE) += snd-soc-poodle.o
@@ -53,3 +54,4 @@ obj-$(CONFIG_SND_SOC_ZYLONITE) += snd-soc-zylonite.o
 obj-$(CONFIG_SND_PXA2XX_SOC_IMOTE2) += snd-soc-imote2.o
 obj-$(CONFIG_SND_SOC_RAUMFELD) += snd-soc-raumfeld.o
 obj-$(CONFIG_SND_MMP_SOC_BROWNSTONE) += snd-soc-brownstone.o
+obj-$(CONFIG_SND_SOC_TTC_DKB) += snd-soc-ttc-dkb.o
sound/soc/pxa/ttc-dkb.c new file +173 -0

173 lines not on this page · raw message

Signature · 1 line
1.7.1
#12 lore raw
In reply to Zhangfei Gao
Quoted 6 lines · Zhangfei Gao

These patches provide mmp audio support under alsa via dmaengine Support platfrom pxa688 and pxa910
mmp_tdma.c and mmp-pcm.c is shared for pxa688 and pxa910 pxa688 (mmp2) use mmp2-sspa.c
pxa910 directly use pxa-ssp.c
mmp_tdma.c is under dmaengine framework

Applied 2-4. I'm not seeing a direct code dependency between this and the dmaengine driver in patch 1 (or review of it from Vinod yet) so I'm expecting that to go via the dmaengine tree.

#13 lore raw
Quoted 9 lines · Mark Brown
Quoted 6 lines · Zhangfei Gao

These patches provide mmp audio support under alsa via dmaengine Support platfrom pxa688 and pxa910
mmp_tdma.c and mmp-pcm.c is shared for pxa688 and pxa910 pxa688 (mmp2) use mmp2-sspa.c
pxa910 directly use pxa-ssp.c
mmp_tdma.c is under dmaengine framework

Quoted 3 lines

Applied 2-4. ?I'm not seeing a direct code dependency between this and the dmaengine driver in patch 1 (or review of it from Vinod yet) so I'm expecting that to go via the dmaengine tree.

Great, thanks Mark.
By the way, patch 05 "ASoC: add ttc-dkb machine support" also based on these patches.
ttc-dkb (pxa910) and brownstone (pxa688) are sharing mmp-pcm.c and mmp-tdma.c.

#14 lore raw
Quoted 4 lines · zhangfei gao

Great, thanks Mark.
By the way, patch 05 "ASoC: add ttc-dkb machine support" also based on these patches.
ttc-dkb (pxa910) and brownstone (pxa688) are sharing mmp-pcm.c and mmp-tdma.c.

That was already applied, just miscounted.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 836 bytes
Desc: Digital signature
URL: <http://lists.infradead.org/pipermail/linux-arm-kernel/attachments/20120613/593cab05/attachment.sig>

#15 lore raw

v2 cover mmp audio support

In reply to Zhangfei Gao

Hi Zhangfei,

Quoted 11 lines · Zhangfei Gao

v1->v2:
modify accroingly with suggestion from Vinod and Mark remove deprecated chan->private and dma.h remove prep_slave_sg
remove module_init and move operation to probe misc change

v0->v1:
dmaengine -> soc-dmaengine.
update according to Mark's suggestion

Quoted 8 lines

These patches provide mmp audio support under alsa via dmaengine Support platfrom pxa688 and pxa910
mmp_tdma.c and mmp-pcm.c is shared for pxa688 and pxa910 pxa688 (mmp2) use mmp2-sspa.c
pxa910 directly use pxa-ssp.c
mmp_tdma.c is under dmaengine framework

Verified on brownstone (pxa688) and ttc-dkb

Great, we're looking into adopting this for OLPC XO-1.75 too.

Could you explain how system suspend/resume should work with this patchset? You don't seem to be adding any suspend/resume handlers.

Thanks,

- Chris.

Signature · 2 lines
Chris Ball   <[email protected]>   <http://printf.net/>
One Laptop Per Child
#16 lore raw
Quoted 23 lines · Chris Ball

Hi Zhangfei,

Quoted 11 lines · Zhangfei Gao

v1->v2:
modify accroingly with suggestion from Vinod and Mark remove deprecated chan->private and dma.h remove prep_slave_sg
remove module_init and move operation to probe misc change

v0->v1:
dmaengine -> soc-dmaengine.
update according to Mark's suggestion

Quoted 8 lines

These patches provide mmp audio support under alsa via dmaengine Support platfrom pxa688 and pxa910
mmp_tdma.c and mmp-pcm.c is shared for pxa688 and pxa910 pxa688 (mmp2) use mmp2-sspa.c
pxa910 directly use pxa-ssp.c
mmp_tdma.c is under dmaengine framework

Verified on brownstone (pxa688) and ttc-dkb

Quoted 8 lines

Great, we're looking into adopting this for OLPC XO-1.75 too.

Could you explain how system suspend/resume should work with this patchset?  You don't seem to be adding any suspend/resume handlers.

Thanks,

- Chris.

Chris

Some confusion about audio suspend.
We use android environment, wake lock is hold preventing system entering suspend when audio work.
Only entering early-suspend, which close LCD etc.
If this is the case, we may not need consider suspend during audio play back.

If support suspend during audio work, some modification required. I found SNDRV_PCM_TRIGGER_START/STOP is send in suspend/resume instead of SNDRV_PCM_TRIGGER_RESUME/SUSPEND as before.
The result is dmaengine_pcm_prepare_and_submit will be re-called every suspend/resume.
Unfortunately we malloc descriptor in prep function, but no function to free at such case.

Thanks

#17 lore raw
In reply to Zhangfei Gao
Quoted 7 lines · Zhangfei Gao

v1->v2:
modify accroingly with suggestion from Vinod and Mark remove deprecated chan->private and dma.h remove prep_slave_sg
remove module_init and move operation to probe misc change

It seems that this driver is missing DT bindings, which really need to get added. The brownstone platform is currently supported using both DT and ATAG probing, but we want to remove the ATAG variant eventually, so adding a new driver for that platform without support for DT booting is a step in the wrong direction.

Arnd

#18 lore raw
Quoted 9 lines · Arnd Bergmann
Quoted 7 lines · Zhangfei Gao

v1->v2:
modify accroingly with suggestion from Vinod and Mark remove deprecated chan->private and dma.h remove prep_slave_sg
remove module_init and move operation to probe misc change

Quoted 7 lines

It seems that this driver is missing DT bindings, which really need to get added. The brownstone platform is currently supported using both DT and ATAG probing, but we want to remove the ATAG variant eventually, so adding a new driver for that platform without support for DT booting is a step in the wrong direction.

       Arnd

Thanks Arnd, we will add DT support in the next step.
The driver will support both DT and non-DT, just as what Chris do for mmc driver.

Quoted 9 lines

--
To unsubscribe from this list: send the line "unsubscribe alsa-devel" in the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

_______________________________________________
Alsa-devel mailing list
[email protected]
http://mailman.alsa-project.org/mailman/listinfo/alsa-devel