ASoC Add TLV320AIC23 codec driver
Subsystems (3)
PATCH v2 1/5 ASoC Add TLV320AIC23 codec driver
ASoC codec driver for TLV320AIC23 device
--- sound/soc/codecs/Kconfig | 5 + sound/soc/codecs/Makefile | 2 + sound/soc/codecs/tlv320aic23.c | 670 ++++++++++++++++++++++++++++++++++++++++ sound/soc/codecs/tlv320aic23.h | 122 ++++++++ 4 files changed, 799 insertions(+), 0 deletions(-) create mode 100644 sound/soc/codecs/tlv320aic23.c create mode 100644 sound/soc/codecs/tlv320aic23.h
sound/soc/codecs/Kconfig +5 -0
@@ -7,6 +7,7 @@ config SND_SOC_ALL_CODECS select SND_SOC_AK4535 select SND_SOC_CS4270 select SND_SOC_SSM2602 + select SND_SOC_TLV320AIC23 select SND_SOC_TLV320AIC26 select SND_SOC_TLV320AIC3X select SND_SOC_UDA1380
@@ -62,6 +63,10 @@ config SND_SOC_CS4270_VD33_ERRATA config SND_SOC_SSM2602 tristate +config SND_SOC_TLV320AIC23 + tristate + depends on I2C + config SND_SOC_TLV320AIC26 tristate "TI TLV320AIC26 Codec support" depends on SND_SOC && SPI
sound/soc/codecs/Makefile +2 -0
@@ -4,6 +4,7 @@ snd-soc-ad73311-objs := ad73311.o snd-soc-ak4535-objs := ak4535.o snd-soc-cs4270-objs := cs4270.o snd-soc-ssm2602-objs := ssm2602.o +snd-soc-tlv320aic23-objs := tlv320aic23.o snd-soc-tlv320aic26-objs := tlv320aic26.o snd-soc-tlv320aic3x-objs := tlv320aic3x.o snd-soc-uda1380-objs := uda1380.o
@@ -25,6 +26,7 @@ obj-$(CONFIG_SND_SOC_AD73311) += snd-soc-ad73311.o obj-$(CONFIG_SND_SOC_AK4535) += snd-soc-ak4535.o obj-$(CONFIG_SND_SOC_CS4270) += snd-soc-cs4270.o obj-$(CONFIG_SND_SOC_SSM2602) += snd-soc-ssm2602.o +obj-$(CONFIG_SND_SOC_TLV320AIC23) += snd-soc-tlv320aic23.o obj-$(CONFIG_SND_SOC_TLV320AIC26) += snd-soc-tlv320aic26.o obj-$(CONFIG_SND_SOC_TLV320AIC3X) += snd-soc-tlv320aic3x.o obj-$(CONFIG_SND_SOC_UDA1380) += snd-soc-uda1380.o
sound/soc/codecs/tlv320aic23.c new file +670 -0
670 lines not on this page · raw message
sound/soc/codecs/tlv320aic23.h new file +122 -0
122 lines not on this page · raw message
Signature · 1 line
1.5.3.4
From c2e5d1ac1451d43ecacfbd75934b746553babd3c Mon Sep 17 00:00:00 2001
From: Arun KS <[email protected]>
Date: Wed, 1 Oct 2008 23:21:26 +0530
Subject: [PATCH] ASoC Add TLV320AIC23 codec driver
ASoC codec driver for TLV320AIC23 device
--- sound/soc/codecs/Kconfig | 5 + sound/soc/codecs/Makefile | 2 + sound/soc/codecs/tlv320aic23.c | 670 ++++++++++++++++++++++++++++++++++++++++ sound/soc/codecs/tlv320aic23.h | 122 ++++++++ 4 files changed, 799 insertions(+), 0 deletions(-) create mode 100644 sound/soc/codecs/tlv320aic23.c create mode 100644 sound/soc/codecs/tlv320aic23.h
sound/soc/codecs/Kconfig +5 -0
@@ -7,6 +7,7 @@ config SND_SOC_ALL_CODECS select SND_SOC_AK4535 select SND_SOC_CS4270 select SND_SOC_SSM2602 + select SND_SOC_TLV320AIC23 select SND_SOC_TLV320AIC26 select SND_SOC_TLV320AIC3X select SND_SOC_UDA1380
@@ -62,6 +63,10 @@ config SND_SOC_CS4270_VD33_ERRATA config SND_SOC_SSM2602 tristate +config SND_SOC_TLV320AIC23 + tristate + depends on I2C + config SND_SOC_TLV320AIC26 tristate "TI TLV320AIC26 Codec support" depends on SND_SOC && SPI
sound/soc/codecs/Makefile +2 -0
@@ -4,6 +4,7 @@ snd-soc-ad73311-objs := ad73311.o snd-soc-ak4535-objs := ak4535.o snd-soc-cs4270-objs := cs4270.o snd-soc-ssm2602-objs := ssm2602.o +snd-soc-tlv320aic23-objs := tlv320aic23.o snd-soc-tlv320aic26-objs := tlv320aic26.o snd-soc-tlv320aic3x-objs := tlv320aic3x.o snd-soc-uda1380-objs := uda1380.o
@@ -25,6 +26,7 @@ obj-$(CONFIG_SND_SOC_AD73311) += snd-soc-ad73311.o obj-$(CONFIG_SND_SOC_AK4535) += snd-soc-ak4535.o obj-$(CONFIG_SND_SOC_CS4270) += snd-soc-cs4270.o obj-$(CONFIG_SND_SOC_SSM2602) += snd-soc-ssm2602.o +obj-$(CONFIG_SND_SOC_TLV320AIC23) += snd-soc-tlv320aic23.o obj-$(CONFIG_SND_SOC_TLV320AIC26) += snd-soc-tlv320aic26.o obj-$(CONFIG_SND_SOC_TLV320AIC3X) += snd-soc-tlv320aic3x.o obj-$(CONFIG_SND_SOC_UDA1380) += snd-soc-uda1380.o
sound/soc/codecs/tlv320aic23.c new file +670 -0
670 lines not on this page · raw message
sound/soc/codecs/tlv320aic23.h new file +122 -0
122 lines not on this page · raw message
Signature · 1 line
1.5.3.4
Hi,
Quoted 1 line · Arun KS
ASoC codec driver for TLV320AIC23 device
One comment below based on a quick browse.
<snip>
sound/soc/codecs/tlv320aic23.c line 315
Quoted 13 lines
sound/soc/codecs/tlv320aic23.c new file +13
-0+static void tlv320aic23_shutdown (struct snd_pcm_substream *substream) +{ +struct snd_soc_pcm_runtime *rtd = substream->private_data; +struct snd_soc_device *socdev = rtd->socdev; +struct snd_soc_codec *codec = socdev->codec; + +/* deactivate */ +if (!codec->active) { +udelay (50 ); +tlv320aic23_write (codec,TLV320AIC23_ACTIVE ,0x0 ); + } +} +
What's the purpose of the udelay() here? Looks like if needed it should be after the twl32aic23_write().. Otherwise the problem is probably somewhere else.
Tony
Quoted 18 lines · Tony Lindgren
Hi,
Quoted 1 line · Arun KS
ASoC codec driver for TLV320AIC23 device
One comment below based on a quick browse.
<snip>
Quoted 9 lines
sound/soc/codecs/tlv320aic23.c new file +9
-0+static void tlv320aic23_shutdown (struct snd_pcm_substream *substream) +{ +struct snd_soc_pcm_runtime *rtd = substream->private_data; +struct snd_soc_device *socdev = rtd->socdev; +struct snd_soc_codec *codec = socdev->codec; + +/* deactivate */ +if (!codec->active) { +udelay (50 );
Quoted 9 lines
sound/soc/codecs/tlv320aic23.c line 315
Quoted 4 lines
sound/soc/codecs/tlv320aic23.c new file +4
-0+tlv320aic23_write (codec,TLV320AIC23_ACTIVE ,0x0 ); + } +} +What's the purpose of the
udelay()here? Looks like if needed it should be after thetwl32aic23_write().. Otherwise the problem is probably somewhere else.
Iirc this was found to reduce pops and clicks on shutdown on another very similar codec in this family.
Liam