summaryrefslogtreecommitdiff
path: root/sound/soc/codecs/ts3a227e.h
diff options
context:
space:
mode:
authorDylan Reid <dgreid@chromium.org>2014-11-13 11:18:29 -0800
committerMark Brown <broonie@kernel.org>2014-11-14 10:46:41 +0000
commit2880fc877971d6c14b0c76ac09744e3ff5b126d5 (patch)
tree747d9d292d44ef0320f18130bea77a7b601270eb /sound/soc/codecs/ts3a227e.h
parentf114040e3ea6e07372334ade75d1ee0775c355e1 (diff)
ASoC: add TI ts3a227e headset chip driver
The TS3A227E is an autonomous audio accessory detection and configuration switch that detects 3-pole or 4-pole audio accessories and configures internal switches to route the signals accordingly. This chip also has built-in support for the new button standard described in the Android "Wired audio headset specification" v1.0. These buttons will be reported on the jack as buttons 0-3 mapped to KEY_MEDIA, KEY_VOLUMEUP, KEY_VOLUMEDOWN, and KEY_VOICE_COMMAND. This will be added as an aux_dev and have the jack passed in from the machine driver. Signed-off-by: Dylan Reid <dgreid@chromium.org> Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'sound/soc/codecs/ts3a227e.h')
-rw-r--r--sound/soc/codecs/ts3a227e.h17
1 files changed, 17 insertions, 0 deletions
diff --git a/sound/soc/codecs/ts3a227e.h b/sound/soc/codecs/ts3a227e.h
new file mode 100644
index 000000000000..e2acf9c5bebe
--- /dev/null
+++ b/sound/soc/codecs/ts3a227e.h
@@ -0,0 +1,17 @@
+/*
+ * TS3A227E Autonous Audio Accessory Detection and Configureation Switch
+ *
+ * Copyright (C) 2014 Google, Inc.
+ *
+ * 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 _TS3A227E_H
+#define _TS3A227E_H
+
+int ts3a227e_enable_jack_detect(struct snd_soc_component *component,
+ struct snd_soc_jack *jack);
+
+#endif