summaryrefslogtreecommitdiffstats
path: root/include/sound
diff options
context:
space:
mode:
authorOder Chiou2016-09-19 13:26:08 +0200
committerMark Brown2016-09-24 20:51:57 +0200
commit2b26dd4c1fc5f83bc088f4a053120ca03817045e (patch)
treee151059578dd4e444664e1eff31a5c48d1f496e0 /include/sound
parentLinux 4.8-rc1 (diff)
downloadkernel-qcow2-linux-2b26dd4c1fc5f83bc088f4a053120ca03817045e.tar.gz
kernel-qcow2-linux-2b26dd4c1fc5f83bc088f4a053120ca03817045e.tar.xz
kernel-qcow2-linux-2b26dd4c1fc5f83bc088f4a053120ca03817045e.zip
ASoC: rt5660: add rt5660 codec driver
This is the initial codec driver for rt5660 Signed-off-by: Oder Chiou <oder_chiou@realtek.com> Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'include/sound')
-rw-r--r--include/sound/rt5660.h31
1 files changed, 31 insertions, 0 deletions
diff --git a/include/sound/rt5660.h b/include/sound/rt5660.h
new file mode 100644
index 000000000000..065f83a24db6
--- /dev/null
+++ b/include/sound/rt5660.h
@@ -0,0 +1,31 @@
+/*
+ * linux/sound/rt5660.h -- Platform data for RT5660
+ *
+ * Copyright 2016 Realtek Semiconductor Corp.
+ * Author: Oder Chiou <oder_chiou@realtek.com>
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License version 2 as
+ * published by the Free Software Foundation.
+ */
+
+#ifndef __LINUX_SND_RT5660_H
+#define __LINUX_SND_RT5660_H
+
+enum rt5660_dmic1_data_pin {
+ RT5660_DMIC1_NULL,
+ RT5660_DMIC1_DATA_GPIO2,
+ RT5660_DMIC1_DATA_IN1P,
+};
+
+struct rt5660_platform_data {
+ /* IN1 & IN3 can optionally be differential */
+ bool in1_diff;
+ bool in3_diff;
+ bool use_ldo2;
+ bool poweroff_codec_in_suspend;
+
+ enum rt5660_dmic1_data_pin dmic1_data_pin;
+};
+
+#endif