ASoC: CS4271 codec support
Subsystems (3)
PATCH 1/1 ASoC: CS4271 codec support
From: Alexander Sverdlin <[email protected]>
Added support for CS4271 codec to ASoC.
Update: Modified based on latest reviews.
Signed-off-by Alexander Sverdlin <[email protected]>
--- include/sound/cs4271.h | 25 ++ sound/soc/codecs/Kconfig | 4 + sound/soc/codecs/Makefile | 2 + sound/soc/codecs/cs4271.c | 630 +++++++++++++++++++++++++++++++++++++++++++++ 4 files changed, 661 insertions(+), 0 deletions(-)
include/sound/cs4271.h new file +25 -0
@@ -0,0 +1,25 @@ +/* +* Definitions for CS4271 ASoC codec driver +* +* Copyright (c) 2010 Alexander Sverdlin <[email protected]> +* +* This program is free software; you can redistribute it and/or +* modify it under the terms of the GNU General Public License +* as published by the Free Software Foundation; either version 2 +* of the License, or (at your option) any later version. +* +* This program is distributed in the hope that it will be useful, +* but WITHOUT ANY WARRANTY; without even the implied warranty of +* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +* GNU General Public License for more details. +*/ + +#ifndef __CS4271_H +#define __CS4271_H + +struct cs4271_platform_data { +int gpio_nreset;/* GPIO driving Reset pin, if any */ +int gpio_disable;/* GPIO that disable serial bus, if any */ +}; + +#endif /* __CS4271_H */
sound/soc/codecs/Kconfig +4 -0
@@ -26,6 +26,7 @@ config SND_SOC_ALL_CODECS select SND_SOC_CQ0093VC if MFD_DAVINCI_VOICECODEC select SND_SOC_CS42L51 if I2C select SND_SOC_CS4270 if I2C + select SND_SOC_CS4271 if SND_SOC_I2C_AND_SPI select SND_SOC_CX20442 select SND_SOC_DA7210 if I2C select SND_SOC_JZ4740_CODEC if SOC_JZ4740
@@ -155,6 +156,9 @@ config SND_SOC_CS4270_VD33_ERRATA bool depends on SND_SOC_CS4270 +config SND_SOC_CS4271 + tristate + config SND_SOC_CX20442 tristate
sound/soc/codecs/Makefile +2 -0
@@ -12,6 +12,7 @@ snd-soc-ak4671-objs := ak4671.o snd-soc-cq93vc-objs := cq93vc.o snd-soc-cs42l51-objs := cs42l51.o snd-soc-cs4270-objs := cs4270.o +snd-soc-cs4271-objs := cs4271.o snd-soc-cx20442-objs := cx20442.o snd-soc-da7210-objs := da7210.o snd-soc-dmic-objs := dmic.o
@@ -91,6 +92,7 @@ obj-$(CONFIG_SND_SOC_AK4671) += snd-soc-ak4671.o obj-$(CONFIG_SND_SOC_CQ0093VC) += snd-soc-cq93vc.o obj-$(CONFIG_SND_SOC_CS42L51) += snd-soc-cs42l51.o obj-$(CONFIG_SND_SOC_CS4270) += snd-soc-cs4270.o +obj-$(CONFIG_SND_SOC_CS4271) += snd-soc-cs4271.o obj-$(CONFIG_SND_SOC_CX20442) += snd-soc-cx20442.o obj-$(CONFIG_SND_SOC_DA7210) += snd-soc-da7210.o obj-$(CONFIG_SND_SOC_DMIC) += snd-soc-dmic.o
sound/soc/codecs/cs4271.c new file +630 -0
630 lines not on this page · raw message
Quoted 6 lines · Alexander
From: Alexander Sverdlin <[email protected]>
Added support for CS4271 codec to ASoC.
Update: Modified based on latest reviews.Signed-off-by Alexander Sverdlin <[email protected]>
Looks good to me.
Thanks,
Dimitris
Quoted 7 lines · Alexander
From: Alexander Sverdlin <[email protected]>
Added support for CS4271 codec to ASoC.
Update: Modified based on latest reviews.Signed-off-by Alexander Sverdlin <[email protected]>---
Acked-by Liam Girdwood <[email protected]>
Signature · 3 lines
Freelance Developer, SlimLogic Ltd ASoC and Voltage Regulator Maintainer. http://www.slimlogic.co.uk
Mark Brown
AppliedQuoted 6 lines · Alexander
From: Alexander Sverdlin <[email protected]>
Added support for CS4271 codec to ASoC.
Update: Modified based on latest reviews.Signed-off-by Alexander Sverdlin <[email protected]>
Applied, thanks.