ASoc: Add DA7210 codec device support for ALSA
Subsystems (3)
PATCH v2 1/2 ASoc: Add DA7210 codec device support for ALSA
This original driver was created by Dialog Semiconductor, and cleanuped by Kuninori Morimoto.
Special thanks to David Chen.
This became very simple ASoC codec driver,
and it is tested by EcoVec24 board.
Signed-off-by David Chen <[email protected]>
Signed-off-by Kuninori Morimoto <[email protected]>
---
v1 -> v2
o modify i2c read
o remove DAPM / widgets
o use fixed value for default
sound/soc/codecs/Kconfig | 4 + sound/soc/codecs/Makefile | 2 + sound/soc/codecs/da7210.c | 586 +++++++++++++++++++++++++++++++++++++++++++++ sound/soc/codecs/da7210.h | 24 ++ 4 files changed, 616 insertions(+), 0 deletions(-) create mode 100644 sound/soc/codecs/da7210.c create mode 100644 sound/soc/codecs/da7210.h
sound/soc/codecs/Kconfig +4 -0
@@ -23,6 +23,7 @@ config SND_SOC_ALL_CODECS select SND_SOC_AK4671 if I2C select SND_SOC_CS4270 if I2C select SND_SOC_MAX9877 if I2C + select SND_SOC_DA7210 if I2C select SND_SOC_PCM3008 select SND_SOC_SPDIF select SND_SOC_SSM2602 if I2C
@@ -112,6 +113,9 @@ config SND_SOC_AK4671 config SND_SOC_CS4270 tristate +config SND_SOC_DA7210 + tristate + # Cirrus Logic CS4270 Codec VD = 3.3V Errata # Select if you are affected by the errata where the part will not function # if MCLK divide-by-1.5 is selected and VD is set to 3.3V. The driver will
sound/soc/codecs/Makefile +2 -0
@@ -10,6 +10,7 @@ snd-soc-ak4642-objs := ak4642.o snd-soc-ak4671-objs := ak4671.o snd-soc-cs4270-objs := cs4270.o snd-soc-cx20442-objs := cx20442.o +snd-soc-da7210-objs := da7210.o snd-soc-l3-objs := l3.o snd-soc-pcm3008-objs := pcm3008.o snd-soc-spdif-objs := spdif_transciever.o
@@ -66,6 +67,7 @@ obj-$(CONFIG_SND_SOC_AK4642) += snd-soc-ak4642.o obj-$(CONFIG_SND_SOC_AK4671) += snd-soc-ak4671.o obj-$(CONFIG_SND_SOC_CS4270) += snd-soc-cs4270.o obj-$(CONFIG_SND_SOC_CX20442) += snd-soc-cx20442.o +obj-$(CONFIG_SND_SOC_DA7210) += snd-soc-da7210.o obj-$(CONFIG_SND_SOC_L3) += snd-soc-l3.o obj-$(CONFIG_SND_SOC_PCM3008) += snd-soc-pcm3008.o obj-$(CONFIG_SND_SOC_SPDIF) += snd-soc-spdif.o
sound/soc/codecs/da7210.c new file +586 -0
586 lines not on this page · raw message
sound/soc/codecs/da7210.h new file +24 -0
@@ -0,0 +1,24 @@ +/* +* da7210.h -- audio driver for da7210 +* +* Copyright (c) 2009 Dialog Semiconductor +* Written by David Chen <[email protected]> +* +* Copyright (C) 2009 Renesas Solutions Corp. +* Cleanups by Kuninori Morimoto <[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. +* +*/ + +#ifndef _DA7210_H +#define _DA7210_H + +extern struct snd_soc_dai da7210_dai; +extern struct snd_soc_codec_device soc_codec_dev_da7210; + +#endif +
Signature · 1 line
1.6.3.3
Mark Brown
AppliedQuoted 5 lines · Kuninori Morimoto
This original driver was created by Dialog Semiconductor, and cleanuped by Kuninori Morimoto.
Special thanks to David Chen.
This became very simple ASoC codec driver,
and it is tested by EcoVec24 board.
Applied both, thanks. Clearly the CODEC driver is far from ideal and will need updates to work on other systems but it gets you basic audio up and running.