Skip to contentSkip to conversation

ASoC: Support TI Isabelle Audio driver

PATCH In review [email protected] 3 participants 5 messages Jun 1, 2012 – Jun 4, 2012

Subsystems (3)
lore
Share & tools
lore

[email protected]

author maintainer
#0 lore raw

PATCH v2 1/1 ASoC: Support TI Isabelle Audio driver

From: M R Swami Reddy <[email protected]>

ASoC: Support TI Isabelle Audio driver

The Isabelle Audio IC is a complete low power high fidelity CODEC with integrated ADCs, DACs, decimation and interpolation filters, PLL, and power providers. This device supports 2 analog and 2 digital microphone channels, a mono earpiece driver, stereo class G headphone drivers with ultra low power and best SNR in the industry, stereo Class D speaker drivers, and 2 high performance Line drivers.

The below patch is a basic driver code for TI Isabelle audio codec. The functionalities like headset detection, etc., will be included incrementally in the up-coming patches.

---
Changes in v2:
o Used dev_get_regmap and devm_regmap_init_i2c APIs.
o Removed isabelle_priv structure.

 sound/soc/codecs/Kconfig    |    4 +
 sound/soc/codecs/Makefile   |    2 +
 sound/soc/codecs/isabelle.c | 1179 ++++++++++++++++++++++++++++++++
 sound/soc/codecs/isabelle.h |  143 ++++
 4 files changed, 1328 insertions(+), 0 deletions(-)
sound/soc/codecs/Kconfig +4 -0
index ed5f66c..4ebf9e8 100644
@@ -30,6 +30,7 @@ config SND_SOC_ALL_CODECS
 	select SND_SOC_CX20442
 	select SND_SOC_DA7210 if I2C
 	select SND_SOC_DFBMCS320
+	select SND_SOC_ISABELLE if I2C
 	select SND_SOC_JZ4740_CODEC if SOC_JZ4740
 	select SND_SOC_LM4857 if I2C
 	select SND_SOC_LM49453 if I2C
@@ -185,6 +186,9 @@ config SND_SOC_DFBMCS320
 config SND_SOC_DMIC
 	tristate
 
+config SND_SOC_ISABELLE
+        tristate
+
 config SND_SOC_LM49453
 	tristate
 
sound/soc/codecs/Makefile +2 -0
index 7bbfdb2..fdc1ff6 100644
@@ -17,6 +17,7 @@ snd-soc-cx20442-objs := cx20442.o
 snd-soc-da7210-objs := da7210.o
 snd-soc-dfbmcs320-objs := dfbmcs320.o
 snd-soc-dmic-objs := dmic.o
+snd-soc-isabelle-objs := isabelle.o
 snd-soc-l3-objs := l3.o
 snd-soc-lm49453-objs := lm49453.o
 snd-soc-max98088-objs := max98088.o
@@ -106,6 +107,7 @@ obj-$(CONFIG_SND_SOC_CX20442)	+= snd-soc-cx20442.o
 obj-$(CONFIG_SND_SOC_DA7210)	+= snd-soc-da7210.o
 obj-$(CONFIG_SND_SOC_DFBMCS320)	+= snd-soc-dfbmcs320.o
 obj-$(CONFIG_SND_SOC_DMIC)	+= snd-soc-dmic.o
+obj-$(CONFIG_SND_SOC_ISABELLE)	+= snd-soc-isabelle.o
 obj-$(CONFIG_SND_SOC_L3)	+= snd-soc-l3.o
 obj-$(CONFIG_SND_SOC_LM49453)   += snd-soc-lm49453.o
 obj-$(CONFIG_SND_SOC_JZ4740_CODEC)	+= snd-soc-jz4740-codec.o
sound/soc/codecs/isabelle.c new file +1179 -0

1,179 lines not on this page · raw message

sound/soc/codecs/isabelle.h new file +143 -0

143 lines not on this page · raw message

#1 lore raw
Quoted 6 lines · On Fri, Jun 01, 2012 at 10:21:54PM +0530, [email protected] wrote:

From: M R Swami Reddy <[email protected]>

ASoC: Support TI Isabelle Audio driver

The Isabelle Audio IC is a complete low power high fidelity CODEC with integrated ADCs, DACs, decimation and interpolation filters, PLL, and power providers. This

Actually, I tried to apply this but the Makefile and Kconfig clearly show that whatever thsi was generated against wasn't for-3.6... I fixed it up by hand.

#2 lore raw
In reply to [email protected]
Quoted 1 line · On Fri, Jun 01, 2012 at 10:21:54PM +0530, [email protected] wrote:

o Used dev_get_regmap and devm_regmap_init_i2c APIs.

This looks mostly good so I've applied it but please send an incremental patch to remove the use of regmap_exit() - the major point of devm_ APIs is that you don't need to explicitly clean things up, removing a class of potential leaks.

author maintainer
#3 lore raw
Quoted 7 lines · Mark Brown
Quoted 1 line · On Fri, Jun 01, 2012 at 10:21:54PM +0530, [email protected] wrote:

o Used dev_get_regmap and devm_regmap_init_i2c APIs.

This looks mostly good so I've applied it but please send an incremental patch to remove the use of regmap_exit() - the major point of devm_ APIs is that you don't need to explicitly clean things up, removing a class of potential leaks.

Thank you.
I will remove the regmap_exit() and send the next patch soon. Plz confirm, do I need to send full patch or only removing part for regmap_exit()?

Thanks
Swami

#4 lore raw

Hi Swami,

Quoted 9 lines · MR Swami Reddy
Quoted 7 lines · Mark Brown
Quoted 1 line · On Fri, Jun 01, 2012 at 10:21:54PM +0530, [email protected] wrote:

o Used dev_get_regmap and devm_regmap_init_i2c APIs.

This looks mostly good so I've applied it but please send an incremental patch to remove the use of regmap_exit() - the major point of devm_ APIs is that you don't need to explicitly clean things up, removing a class of potential leaks.

Quoted 5 lines

Thank you.
I will remove the regmap_exit() and send the next patch soon. Plz confirm, do I need to send full patch or only removing part for regmap_exit()?

Please send an incremental patch. An incremental patch not be the full driver patch, but will just be the changes for regmap_exit().

Regards

Liam