summaryrefslogtreecommitdiff
path: root/sound/soc/codecs/abe-twl6040.h
diff options
context:
space:
mode:
Diffstat (limited to 'sound/soc/codecs/abe-twl6040.h')
-rw-r--r--sound/soc/codecs/abe-twl6040.h36
1 files changed, 36 insertions, 0 deletions
diff --git a/sound/soc/codecs/abe-twl6040.h b/sound/soc/codecs/abe-twl6040.h
new file mode 100644
index 000000000000..74224648cd9f
--- /dev/null
+++ b/sound/soc/codecs/abe-twl6040.h
@@ -0,0 +1,36 @@
+/*
+ * ALSA SoC ABE-TWL6040 codec driver
+ *
+ * Author: Misael Lopez Cruz <x0052729@ti.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.
+ *
+ * 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., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA
+ *
+ */
+
+#ifndef __ABE_TWL6040_H__
+#define __ABE_TWL6040_H__
+
+extern struct snd_soc_dai abe_dai[];
+extern struct snd_soc_codec_device soc_codec_dev_abe_twl6040;
+
+struct twl6040_setup_data {
+ void (*codec_enable)(int enable);
+ void *jack;
+};
+
+void twl6040_hs_jack_detect(struct snd_soc_codec *codec,
+ struct snd_soc_jack *jack, int report);
+
+#endif /* End of __ABE_TWL6040_H__ */