Skip to contentSkip to conversation

NUC900/audio: Add nuc900 audio driver

PATCH In review Wan ZongShun 2 participants 3 messages May 22, 2010 – May 24, 2010

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

PATCH v3 1/1 NUC900/audio: Add nuc900 audio driver

Dear Liam & Mark,

This patch fixed some issues according to your comments. Here and now, I adjusted the driver and called it v3 for resubmitting.

---
 sound/soc/Kconfig               |    1 +
 sound/soc/Makefile              |    1 +
 sound/soc/nuc900/Kconfig        |   27 +++
 sound/soc/nuc900/Makefile       |   11 +
 sound/soc/nuc900/nuc900-ac97.c  |  431 +++++++++++++++++++++++++++++++++++++++
 sound/soc/nuc900/nuc900-audio.c |   81 ++++++++
 sound/soc/nuc900/nuc900-auido.h |  117 +++++++++++
 sound/soc/nuc900/nuc900-pcm.c   |  354 ++++++++++++++++++++++++++++++++
 8 files changed, 1023 insertions(+), 0 deletions(-)
 create mode 100644 sound/soc/nuc900/Kconfig
 create mode 100644 sound/soc/nuc900/Makefile
 create mode 100644 sound/soc/nuc900/nuc900-ac97.c
 create mode 100644 sound/soc/nuc900/nuc900-audio.c
 create mode 100644 sound/soc/nuc900/nuc900-auido.h
 create mode 100644 sound/soc/nuc900/nuc900-pcm.c
sound/soc/Kconfig +1 -0
index b1749bc..6e04fc2 100644
@@ -30,6 +30,7 @@ source "sound/soc/blackfin/Kconfig"
 source "sound/soc/davinci/Kconfig"
 source "sound/soc/fsl/Kconfig"
 source "sound/soc/imx/Kconfig"
+source "sound/soc/nuc900/Kconfig"
 source "sound/soc/omap/Kconfig"
 source "sound/soc/pxa/Kconfig"
 source "sound/soc/s3c24xx/Kconfig"
sound/soc/Makefile +1 -0
index 1470141..ccec241 100644
@@ -8,6 +8,7 @@ obj-$(CONFIG_SND_SOC)	+= blackfin/
 obj-$(CONFIG_SND_SOC)	+= davinci/
 obj-$(CONFIG_SND_SOC)	+= fsl/
 obj-$(CONFIG_SND_SOC)   += imx/
+obj-$(CONFIG_SND_SOC)	+= nuc900/
 obj-$(CONFIG_SND_SOC)	+= omap/
 obj-$(CONFIG_SND_SOC)	+= pxa/
 obj-$(CONFIG_SND_SOC)	+= s3c24xx/
sound/soc/nuc900/Kconfig new file +27 -0
new file mode 100644
index 0000000..a0ed1c6
@@ -0,0 +1,27 @@
+##
+## NUC900 series AC97 API
+##
+config SND_SOC_NUC900
+	tristate "SoC Audio for NUC900 series"
+	depends on ARCH_W90X900
+	help
+	  This option enables support for AC97 mode on the NUC900 SoC.
+
+config SND_SOC_NUC900_AC97
+	tristate
+	select AC97_BUS
+	select SND_AC97_CODEC
+	select SND_SOC_AC97_BUS
+
+
+##
+## Boards
+##
+config SND_SOC_NUC900EVB
+	tristate "NUC900 AC97 support for demo board"
+	depends on SND_SOC_NUC900
+	select SND_SOC_NUC900_AC97
+	select SND_SOC_AC97_CODEC
+	help
+	  Select this option to enable audio (AC97) on the
+	  NUC900 demoboard.
sound/soc/nuc900/Makefile new file +11 -0
new file mode 100644
index 0000000..7e46c71
@@ -0,0 +1,11 @@
+# NUC900 series audio
+snd-soc-nuc900-pcm-objs := nuc900-pcm.o
+snd-soc-nuc900-ac97-objs := nuc900-ac97.o
+
+obj-$(CONFIG_SND_SOC_NUC900) += snd-soc-nuc900-pcm.o
+obj-$(CONFIG_SND_SOC_NUC900_AC97) += snd-soc-nuc900-ac97.o
+
+# Boards
+snd-soc-nuc900-audio-objs := nuc900-audio.o
+
+obj-$(CONFIG_SND_SOC_NUC900EVB) += snd-soc-nuc900-audio.o
sound/soc/nuc900/nuc900-ac97.c new file +431 -0

431 lines not on this page · raw message

sound/soc/nuc900/nuc900-audio.c new file +81 -0

81 lines not on this page · raw message

sound/soc/nuc900/nuc900-auido.h new file +117 -0

117 lines not on this page · raw message

sound/soc/nuc900/nuc900-pcm.c new file +354 -0

354 lines not on this page · raw message

Signature · 1 line
1.6.3.3
#1 lore raw
Quoted 4 lines · Wan ZongShun

Dear Liam & Mark,

This patch fixed some issues according to your comments. Here and now, I adjusted the driver and called it v3 for resubmitting.

Since your patch has already been applied please submit incremental updates rather than a revised version of the full patch.

#2 lore raw

Okay, got it, thanks!

2010/5/24 Mark Brown <[email protected]>:

Quoted 9 lines · Wan ZongShun
Quoted 4 lines

Dear Liam & Mark,

This patch fixed some issues according to your comments. Here and now, I adjusted the driver and called it v3 for resubmitting.

Since your patch has already been applied please submit incremental updates rather than a revised version of the full patch.

Signature · 10 lines
*linux-arm-kernel mailing list
mail addr:[email protected]
you can subscribe by:
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

* linux-arm-NUC900 mailing list
mail addr:[email protected]
main web: https://groups.google.com/group/NUC900
you can subscribe it by sending me mail:
[email protected]