Skip to contentSkip to conversation

Resubmit: [PATCH] sound/soc/codecs: Add support for the wm8727 DAC.

PATCH Neil Jones 2 participants 2 messages Nov 2, 2009

Subsystems (3)
lore
Share & tools
lore

Neil Jones

author
#0 lore raw

Add support for the Wolfson Micro wm8727 DAC, this is a simple non-configurable DAC.

---

From dfeaeeeab08c572f5b1e3501829615ddbdd12bf9 Mon Sep 17 00:00:00 2001
From: Neil Jones <[email protected]>
Date: Mon, 2 Nov 2009 15:09:15 +0000
Subject: [PATCH] sound/soc/codecs: Add support for the wm8727 DAC.

Add support for the Wolfson Micro wm8727 DAC, this is a simple non-configurable DAC.

---
 sound/soc/codecs/Kconfig  |    4 +
 sound/soc/codecs/Makefile |    2 +
 sound/soc/codecs/wm8727.c |  143 +++++++++++++++++++++++++++++++++++++++++++++
 sound/soc/codecs/wm8727.h |   21 +++++++
 4 files changed, 170 insertions(+), 0 deletions(-)
 create mode 100644 sound/soc/codecs/wm8727.c
 create mode 100644 sound/soc/codecs/wm8727.h
sound/soc/codecs/Kconfig +4 -0
index 0edca93..32ce746 100644
@@ -36,6 +36,7 @@ config SND_SOC_ALL_CODECS
 	select SND_SOC_WM8510 if SND_SOC_I2C_AND_SPI
 	select SND_SOC_WM8523 if I2C
 	select SND_SOC_WM8580 if I2C
+	select SND_SOC_WM8727
 	select SND_SOC_WM8728 if SND_SOC_I2C_AND_SPI
 	select SND_SOC_WM8731 if SND_SOC_I2C_AND_SPI
 	select SND_SOC_WM8750 if SND_SOC_I2C_AND_SPI
@@ -160,6 +161,9 @@ config SND_SOC_WM8523
 config SND_SOC_WM8580
 	tristate
 
+config SND_SOC_WM8727
+	tristate
+
 config SND_SOC_WM8728
 	tristate
 
sound/soc/codecs/Makefile +2 -0
index fb4af28..98c9377 100644
@@ -24,6 +24,7 @@ snd-soc-wm8400-objs := wm8400.o
 snd-soc-wm8510-objs := wm8510.o
 snd-soc-wm8523-objs := wm8523.o
 snd-soc-wm8580-objs := wm8580.o
+snd-soc-wm8727-objs := wm8727.o
 snd-soc-wm8728-objs := wm8728.o
 snd-soc-wm8731-objs := wm8731.o
 snd-soc-wm8750-objs := wm8750.o
@@ -74,6 +75,7 @@ obj-$(CONFIG_SND_SOC_WM8400)	+= snd-soc-wm8400.o
 obj-$(CONFIG_SND_SOC_WM8510)	+= snd-soc-wm8510.o
 obj-$(CONFIG_SND_SOC_WM8523)	+= snd-soc-wm8523.o
 obj-$(CONFIG_SND_SOC_WM8580)	+= snd-soc-wm8580.o
+obj-$(CONFIG_SND_SOC_WM8727)	+= snd-soc-wm8727.o
 obj-$(CONFIG_SND_SOC_WM8728)	+= snd-soc-wm8728.o
 obj-$(CONFIG_SND_SOC_WM8731)	+= snd-soc-wm8731.o
 obj-$(CONFIG_SND_SOC_WM8750)	+= snd-soc-wm8750.o
sound/soc/codecs/wm8727.c new file +143 -0

143 lines not on this page · raw message

sound/soc/codecs/wm8727.h new file +21 -0
new file mode 100644
index 0000000..ee19aa7
@@ -0,0 +1,21 @@
+/*
+ * wm8727.h
+ *
+ *  Created on: 15-Oct-2009
+ *      Author: [email protected]
+ *
+ * Copyright (C) 2009 Imagination Technologies 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;  either version 2 of the  License, or (at your
+ *  option) any later version.
+ */
+
+#ifndef WM8727_H_
+#define WM8727_H_
+
+extern struct snd_soc_dai wm8727_dai;
+extern struct snd_soc_codec_device soc_codec_dev_wm8727;
+
+#endif /* WM8727_H_ */
Signature · 1 line
1.5.5.2

_______________________________________________
Alsa-devel mailing list
[email protected]
http://mailman.alsa-project.org/mailman/listinfo/alsa-devel

#1 lore raw
Quoted 2 lines · Neil Jones

Add support for the Wolfson Micro wm8727 DAC, this is a simple non-configurable DAC.

Looks good, I've applied it thanks. I had to manually apply the Kconfig and Makefile changes since there were conflicts there with current ALSA
- when submitting patches you should always try to ensure that your patches are against the code advertised in MAINTAINERS as being current.