Skip to contentSkip to conversation

ASoC codec: SSM2602 audio codec driver (v3)

PATCH In review Bryan Wu 2 participants 2 messages Sep 5, 2008

Subsystems (3)
lore
Share & tools
lore

Bryan Wu

author
#0 lore raw

PATCH 1/1 ASoC codec: SSM2602 audio codec driver (v3)

From: Cliff Cai <[email protected]>

v2-v3:
- add the codec to SND_SOC_ALL_CODECS
- coding style fixing
- rename registers' name
- fix an issue with DAPM and the bias configuration.

v1-v2:
- coding style fixing
- use pr_xxx macros to replace printk(KERN_XXX...)
- use new-style i2c interface
- update to use latest ASoC API

---
 sound/soc/codecs/Kconfig   |    4 +
 sound/soc/codecs/Makefile  |    2 +
 sound/soc/codecs/ssm2602.c |  775 ++++++++++++++++++++++++++++++++++++++++++++
 sound/soc/codecs/ssm2602.h |  130 ++++++++
 4 files changed, 911 insertions(+), 0 deletions(-)
 create mode 100644 sound/soc/codecs/ssm2602.c
 create mode 100644 sound/soc/codecs/ssm2602.h
sound/soc/codecs/Kconfig +4 -0
index 5d77dc3..2223993 100644
@@ -15,6 +15,7 @@ config SND_SOC_ALL_CODECS
 	select SND_SOC_CS4270
 	select SND_SOC_TLV320AIC26
 	select SND_SOC_TLV320AIC3X
+	select SND_SOC_SSM2602
         help
           Normally ASoC codec drivers are only built if a machine driver which
           uses them is also built since they are only usable with a machine
@@ -92,3 +93,6 @@ config SND_SOC_TLV320AIC26
 config SND_SOC_TLV320AIC3X
 	tristate
 	depends on I2C
+
+config SND_SOC_SSM2602
+	tristate
sound/soc/codecs/Makefile +2 -0
index 35daaa9..0cd55ee 100644
@@ -15,6 +15,7 @@ snd-soc-wm9713-objs := wm9713.o
 snd-soc-cs4270-objs := cs4270.o
 snd-soc-tlv320aic26-objs := tlv320aic26.o
 snd-soc-tlv320aic3x-objs := tlv320aic3x.o
+snd-soc-ssm2602-objs := ssm2602.o
 
 obj-$(CONFIG_SND_SOC_AC97_CODEC)	+= snd-soc-ac97.o
 obj-$(CONFIG_SND_SOC_AD1980)	+= snd-soc-ad1980.o
@@ -33,3 +34,4 @@ obj-$(CONFIG_SND_SOC_WM9713)	+= snd-soc-wm9713.o
 obj-$(CONFIG_SND_SOC_CS4270)	+= snd-soc-cs4270.o
 obj-$(CONFIG_SND_SOC_TLV320AIC26)	+= snd-soc-tlv320aic26.o
 obj-$(CONFIG_SND_SOC_TLV320AIC3X)	+= snd-soc-tlv320aic3x.o
+obj-$(CONFIG_SND_SOC_SSM2602)	+= snd-soc-ssm2602.o
sound/soc/codecs/ssm2602.c new file +775 -0

775 lines not on this page · raw message

sound/soc/codecs/ssm2602.h new file +130 -0

130 lines not on this page · raw message

Signature · 1 line
1.5.6