sound/soc/lapis: add platform driver for ML7213
PATCH v6 1/1 sound/soc/lapis: add platform driver for ML7213
This driver is for LAPIS Semiconductor ML7213 IOH I2S.
Signed-off-by Tomoya MORINAGA <[email protected]>
---
v6
Updated for Mark's comments.
- Delete global variable
- Put request_irq back probe() and add conditon in interrupt handler(.alsa_ready).
- Add braces
- Use switch statement not if condition
--- sound/soc/Kconfig | 1 + sound/soc/Makefile | 1 + sound/soc/lapis/Kconfig | 4 + sound/soc/lapis/Makefile | 4 + sound/soc/lapis/ioh_i2s.h | 39 + sound/soc/lapis/ml7213ioh-plat.c | 1450 ++++++++++++++++++++++++++++++++++++++ sound/soc/lapis/ml7213ioh-plat.h | 386 ++++++++++ 7 files changed, 1885 insertions(+), 0 deletions(-) create mode 100644 sound/soc/lapis/Kconfig create mode 100644 sound/soc/lapis/Makefile create mode 100644 sound/soc/lapis/ioh_i2s.h create mode 100644 sound/soc/lapis/ml7213ioh-plat.c create mode 100644 sound/soc/lapis/ml7213ioh-plat.h
sound/soc/Kconfig +1 -0
@@ -37,6 +37,7 @@ source "sound/soc/ep93xx/Kconfig" source "sound/soc/fsl/Kconfig" source "sound/soc/imx/Kconfig" source "sound/soc/jz4740/Kconfig" +source "sound/soc/lapis/Kconfig" source "sound/soc/nuc900/Kconfig" source "sound/soc/omap/Kconfig" source "sound/soc/kirkwood/Kconfig"
sound/soc/Makefile +1 -0
@@ -14,6 +14,7 @@ obj-$(CONFIG_SND_SOC) += ep93xx/ obj-$(CONFIG_SND_SOC) += fsl/ obj-$(CONFIG_SND_SOC) += imx/ obj-$(CONFIG_SND_SOC) += jz4740/ +obj-$(CONFIG_SND_SOC) += lapis/ obj-$(CONFIG_SND_SOC) += mid-x86/ obj-$(CONFIG_SND_SOC) += mxs/ obj-$(CONFIG_SND_SOC) += nuc900/
sound/soc/lapis/Kconfig new file +4 -0
@@ -0,0 +1,4 @@ +config SND_SOC_ML7213_PLATFORM + tristate "ML7213 IOH ASoC platform driver" + help + This option enables support for the AC Link Controllers in ML7213 IOH SoC.
sound/soc/lapis/Makefile new file +4 -0
@@ -0,0 +1,4 @@ +# Platform +snd-soc-ml7213-plat-objs := ml7213ioh-plat.o + +obj-$(CONFIG_SND_SOC_ML7213_PLATFORM) += snd-soc-ml7213-plat.o
sound/soc/lapis/ioh_i2s.h new file +39 -0
@@ -0,0 +1,39 @@ +/* +* Copyright (C) 2011 LAPIS Semiconductor Co., Ltd. +* +* 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; version 2 of the License. +* +* 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. +* +* You should have received a copy of the GNU General Public License +* along with this program; if not, write to the Free Software +* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307, USA. +*/ + +#ifndef ML7213_IOH_I2S +#define ML7213_IOH_I2S + +enum ioh_bclkfs { +ML7213IOH_BCLKFS0 =0 , +ML7213IOH_BCLKFS1 , +ML7213IOH_BCLKFS2 , +ML7213IOH_BCLKFS3 , +ML7213IOH_BCLKFS4 , +ML7213IOH_BCLKFS5 , +}; + +enum ioh_mclkfs { +ML7213IOH_MCLKFS0 =6 , +ML7213IOH_MCLKFS1 , +ML7213IOH_MCLKFS2 , +ML7213IOH_MCLKFS3 , +ML7213IOH_MCLKFS4 , +ML7213IOH_MCLKFS5 , +}; + +#endif
sound/soc/lapis/ml7213ioh-plat.c new file +1450 -0
1,450 lines not on this page · raw message
sound/soc/lapis/ml7213ioh-plat.h new file +386 -0
386 lines not on this page · raw message
Signature · 1 line
1.7.7.6