Skip to contentSkip to conversation

ASoC: AC97: S3C: Add controller driver

PATCH In review [email protected] 1 participant 1 message Jan 27, 2010

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

PATCH v2 4/10 ASoC: AC97: S3C: Add controller driver

From: Jassi Brar <[email protected]>

Add the AC97 controller driver for Samsung SoCs that have one.

---
 sound/soc/s3c24xx/Kconfig    |    6 +-
 sound/soc/s3c24xx/Makefile   |    3 +-
 sound/soc/s3c24xx/s3c-ac97.c |  518 ++++++++++++++++++++++++++++++++++++++++++
 sound/soc/s3c24xx/s3c-ac97.h |   23 ++
 4 files changed, 548 insertions(+), 2 deletions(-)
 create mode 100644 sound/soc/s3c24xx/s3c-ac97.c
 create mode 100644 sound/soc/s3c24xx/s3c-ac97.h
sound/soc/s3c24xx/Kconfig +5 -1
index b489f1a..ad3690e 100644
@@ -32,7 +32,11 @@ config SND_S3C2443_SOC_AC97
 	select S3C2410_DMA
 	select AC97_BUS
 	select SND_SOC_AC97_BUS
-	
+
+config SND_S3C_SOC_AC97
+	tristate
+	select SND_SOC_AC97_BUS
+
 config SND_S3C24XX_SOC_NEO1973_WM8753
 	tristate "SoC I2S Audio support for NEO1973 - WM8753"
 	depends on SND_S3C24XX_SOC && MACH_NEO1973_GTA01
sound/soc/s3c24xx/Makefile +2 -1
index b744657..b7411bd 100644
@@ -4,12 +4,14 @@ snd-soc-s3c24xx-i2s-objs := s3c24xx-i2s.o
 snd-soc-s3c2412-i2s-objs := s3c2412-i2s.o
 snd-soc-s3c64xx-i2s-objs := s3c64xx-i2s.o
 snd-soc-s3c2443-ac97-objs := s3c2443-ac97.o
+snd-soc-s3c-ac97-objs := s3c-ac97.o
 snd-soc-s3c-i2s-v2-objs := s3c-i2s-v2.o
 snd-soc-s3c-pcm-objs := s3c-pcm.o
 
 obj-$(CONFIG_SND_S3C24XX_SOC) += snd-soc-s3c24xx.o
 obj-$(CONFIG_SND_S3C24XX_SOC_I2S) += snd-soc-s3c24xx-i2s.o
 obj-$(CONFIG_SND_S3C2443_SOC_AC97) += snd-soc-s3c2443-ac97.o
+obj-$(CONFIG_SND_S3C_SOC_AC97) += snd-soc-s3c-ac97.o
 obj-$(CONFIG_SND_S3C2412_SOC_I2S) += snd-soc-s3c2412-i2s.o
 obj-$(CONFIG_SND_S3C64XX_SOC_I2S) += snd-soc-s3c64xx-i2s.o
 obj-$(CONFIG_SND_S3C_I2SV2_SOC) += snd-soc-s3c-i2s-v2.o
@@ -37,4 +39,3 @@ obj-$(CONFIG_SND_S3C24XX_SOC_SIMTEC) += snd-soc-s3c24xx-simtec.o
 obj-$(CONFIG_SND_S3C24XX_SOC_SIMTEC_HERMES) += snd-soc-s3c24xx-simtec-hermes.o
 obj-$(CONFIG_SND_S3C24XX_SOC_SIMTEC_TLV320AIC23) += snd-soc-s3c24xx-simtec-tlv320aic23.o
 obj-$(CONFIG_SND_S3C64XX_SOC_WM8580) += snd-soc-smdk64xx-wm8580.o
-
sound/soc/s3c24xx/s3c-ac97.c new file +518 -0

518 lines not on this page · raw message

sound/soc/s3c24xx/s3c-ac97.h new file +23 -0
new file mode 100644
index 0000000..2781983
@@ -0,0 +1,23 @@
+/* sound/soc/s3c24xx/s3c-ac97.h
+ *
+ * ALSA SoC Audio Layer - S3C AC97 Controller driver
+ * 	Evolved from s3c2443-ac97.h
+ *
+ * Copyright (c) 2010 Samsung Electronics Co. Ltd
+ * 	Author: Jaswinder Singh <[email protected]>
+ * 	Credits: Graeme Gregory, Sean Choi
+ *
+ * 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 __S3C_AC97_H_
+#define __S3C_AC97_H_
+
+#define S3C_AC97_DAI_PCM 0
+#define S3C_AC97_DAI_MIC 1
+
+extern struct snd_soc_dai s3c_ac97_dai[];
+
+#endif /* __S3C_AC97_H_ */
Signature · 1 line
1.6.2.5