summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorTomasz Figa <t.figa@samsung.com>2013-02-28 19:38:05 +0100
committerChanho Park <chanho61.park@samsung.com>2014-11-18 11:42:50 +0900
commit2f32bbd22632928b89200ca4ff2c03b3487e2020 (patch)
treee864f6a81eb075a64bd4e5a1c9e578dce0d4f49e /include
parent8ee0d89d8c8f8c38c2f108db66506c094b2cc700 (diff)
downloadlinux-3.10-2f32bbd22632928b89200ca4ff2c03b3487e2020.tar.gz
linux-3.10-2f32bbd22632928b89200ca4ff2c03b3487e2020.tar.bz2
linux-3.10-2f32bbd22632928b89200ca4ff2c03b3487e2020.zip
sound: soc: codecs: Import Yamaha YMU823 (MC1N2) codec driver
This patch adds initial version of Yamaha YMU823 (MC1N2) codec driver ported for Linux 3.8 and Device Tree. Signed-off-by: Tomasz Figa <t.figa@samsung.com>
Diffstat (limited to 'include')
-rw-r--r--include/linux/mfd/mc1n2_pdata.h29
-rw-r--r--include/uapi/sound/asound.h1
2 files changed, 30 insertions, 0 deletions
diff --git a/include/linux/mfd/mc1n2_pdata.h b/include/linux/mfd/mc1n2_pdata.h
new file mode 100644
index 00000000000..474f6e1c558
--- /dev/null
+++ b/include/linux/mfd/mc1n2_pdata.h
@@ -0,0 +1,29 @@
+ /*
+ * Copyright (C) 2008 Samsung Electronics, Inc.
+ *
+ * This software is licensed under the terms of the GNU General Public
+ * License version 2, as published by the Free Software Foundation, and
+ * may be copied, distributed, and modified under those terms.
+ *
+ * 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 __S5PC210_MC1N2_H
+#define __S5PC210_MC1N2_H
+
+enum mic_type {
+ MAIN_MIC = 0x1,
+ SUB_MIC = 0x2,
+};
+
+struct mc1n2_platform_data {
+ void (*set_main_mic_bias)(struct device *dev, bool on);
+ void (*set_sub_mic_bias)(struct device *dev, bool on);
+ int (*set_adc_power_constraints)(struct device *dev, int disabled);
+};
+
+#endif
diff --git a/include/uapi/sound/asound.h b/include/uapi/sound/asound.h
index e3983d50827..d2fc951ca9b 100644
--- a/include/uapi/sound/asound.h
+++ b/include/uapi/sound/asound.h
@@ -93,6 +93,7 @@ enum {
SNDRV_HWDEP_IFACE_SB_RC, /* SB Extigy/Audigy2NX remote control */
SNDRV_HWDEP_IFACE_HDA, /* HD-audio */
SNDRV_HWDEP_IFACE_USB_STREAM, /* direct access to usb stream */
+ SNDRV_HWDEP_IFACE_MC1N2, /* FIXME */
/* Don't forget to change the following: */
SNDRV_HWDEP_IFACE_LAST = SNDRV_HWDEP_IFACE_USB_STREAM