Skip to contentSkip to conversation

ASoC V2: Clean up Freescale MPC8610 HPCD drivers

PATCH New Timur Tabi 1 participant 1 message May 16, 2008

Subsystems (4)
lore
Share & tools
lore

Timur Tabi

author
#0 lore raw

PATCH 1/1 ASoC V2: Clean up Freescale MPC8610 HPCD drivers

This patch cleans up the drivers for the Freescale MPC8610 HPCD reference board so that they compile and load. Functionality has not been tested, so the drivers themselves probably don't work, but at least the kernel boots.

---

A few other patches are needed for before this driver can even pretend to work:

Add CS4270 i2c data to fsl_soc.c
CS4270 node is misplaced in the MPC8610 device tree Add null pointer check to of_find_property

These patches are waiting to be applied to the PowerPC repository.

 sound/soc/Makefile           |    2 +-
 sound/soc/codecs/cs4270.c    |   59 ++-
 sound/soc/fsl/fsl_dma.c      |  296 ++++++-------
 sound/soc/fsl/fsl_dma.h      |   20 +-
 sound/soc/fsl/fsl_ssi.c      |  682 ++++++++++++++++++++---------
 sound/soc/fsl/fsl_ssi.h      |   64 ++-
 sound/soc/fsl/mpc8610_hpcd.c |  995 +++++++++++++++---------------------------
 7 files changed, 1066 insertions(+), 1052 deletions(-)

rewrite sound/soc/fsl/mpc8610_hpcd.c (60%)

sound/soc/Makefile +1 -1
index 478664c..22393cd 100644
@@ -1,4 +1,4 @@
 snd-soc-core-objs := soc-core.o soc-dapm.o
 
 obj-$(CONFIG_SND_SOC)	+= snd-soc-core.o
-obj-$(CONFIG_SND_SOC)	+= codecs/ at91/ pxa/ s3c24xx/ sh/ fsl/ imx/ au1x/ davinci/ omap/
+obj-$(CONFIG_SND_SOC)	+= codecs/ at91/ pxa/ s3c24xx/ sh/ fsl/ imx/ au1x/ davinci/ omap/ fsl/
sound/soc/codecs/cs4270.c +40 -19

125 lines not on this page · raw message

sound/soc/fsl/fsl_dma.c +141 -155

475 lines not on this page · raw message

sound/soc/fsl/fsl_dma.h +9 -11
index 05febed..ed4592f 100644
@@ -126,20 +126,18 @@ struct fsl_dma_link_descriptor {
 	u8 res[4];      /* Reserved */
 } __attribute__ ((aligned(32), packed));
 
-/* DMA information needed to create a snd_soc_cpu_dai object
+/* Per-stream DMA information that the SSI driver passes to the DMA driver
  *
- * ssi_stx_phys: bus address of SSI STX register to use
- * ssi_srx_phys: bus address of SSI SRX register to use
- * dma[0]: points to the DMA channel to use for playback
- * dma[1]: points to the DMA channel to use for capture
- * dma_irq[0]: IRQ of the DMA channel to use for playback
- * dma_irq[1]: IRQ of the DMA channel to use for capture
+ * ssi_sxx_phys: bus address of SSI STX or SRX register to use
+ * channel: points to the DMA channel device to use
+ * irq: IRQ of the DMA channel
  */
 struct fsl_dma_info {
-	dma_addr_t ssi_stx_phys;
-	dma_addr_t ssi_srx_phys;
-	struct ccsr_dma_channel __iomem *dma_channel[2];
-	unsigned int dma_irq[2];
+	dma_addr_t ssi_sxx_phys;
+	struct ccsr_dma_channel __iomem *channel;
+	unsigned int irq;
+	unsigned int controller_id;
+	unsigned int channel_id;
 };
 
 extern const char fsl_platform_id[];
sound/soc/fsl/fsl_ssi.c +473 -209

921 lines not on this page · raw message

sound/soc/fsl/fsl_ssi.h +49 -15

78 lines not on this page · raw message

sound/soc/fsl/mpc8610_hpcd.c +353 -642

995 lines not on this page · raw message

Signature · 1 line
1.5.5

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