diff options
author | Kristoffer KARLSSON <kristoffer.karlsson@stericsson.com> | 2011-12-14 17:29:37 +0100 |
---|---|---|
committer | Philippe Langlais <philippe.langlais@stericsson.com> | 2012-05-22 11:05:03 +0200 |
commit | 600afc22730e30beda77fed6b16722b86b00908a (patch) | |
tree | 8da1fbd24d6d77e68c4f171527f99616ebf3a304 /include/sound | |
parent | 678f12d55948f2dc3a5a01ce0dad8ce4ffb1c024 (diff) |
ASoC: Ux500: Add api for unsupported hs detect
This patch adds support for aiding detection
of headset with gnd and mic pins switched.
ST-Ericsson Linux next: NA
ST-Ericsson ID: 361921
ST-Ericsson FOSS-OUT ID: Trivial
Change-Id: I01171aa4ce57a25237986cdf2f0ca4e01660fb28
Signed-off-by: Kristoffer KARLSSON <kristoffer.karlsson@stericsson.com>
Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/42607
Reviewed-by: QABUILD
Reviewed-by: Jonas ABERG <jonas.aberg@stericsson.com>
Reviewed-by: Ola LILJA2 <ola.o.lilja@stericsson.com>
Diffstat (limited to 'include/sound')
-rw-r--r-- | include/sound/ux500_ab8500_ext.h | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/include/sound/ux500_ab8500_ext.h b/include/sound/ux500_ab8500_ext.h new file mode 100644 index 00000000000..1170fa3a6f5 --- /dev/null +++ b/include/sound/ux500_ab8500_ext.h @@ -0,0 +1,22 @@ +/* + * Copyright (C) ST-Ericsson SA 2010 + * + * Author: Ola Lilja <ola.o.lilja@stericsson.com> + * for ST-Ericsson. + * + * License terms: + * + * 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 UX500_AB8500_EXT_H +#define UX500_AB8500_EXT_H + +#include <linux/mfd/ab8500/gpadc.h> + +int ux500_ab8500_audio_gpadc_measure(struct ab8500_gpadc *gpadc, + u8 channel, bool mode, int *value); + +#endif |