Mark Brown | 40aa4a3 | 2008-12-16 10:15:12 +0000 | [diff] [blame] | 1 | /* |
| 2 | * wm8350.h - WM8903 audio codec interface |
| 3 | * |
| 4 | * Copyright 2008 Wolfson Microelectronics PLC. |
| 5 | * |
| 6 | * This program is free software; you can redistribute it and/or modify it |
| 7 | * under the terms of the GNU General Public License as published by the |
| 8 | * Free Software Foundation; either version 2 of the License, or (at your |
| 9 | * option) any later version. |
| 10 | */ |
| 11 | |
| 12 | #ifndef _WM8350_H |
| 13 | #define _WM8350_H |
| 14 | |
| 15 | #include <sound/soc.h> |
Mark Brown | 008db44 | 2009-04-27 19:17:08 +0100 | [diff] [blame] | 16 | #include <linux/mfd/wm8350/audio.h> |
Mark Brown | 40aa4a3 | 2008-12-16 10:15:12 +0000 | [diff] [blame] | 17 | |
Mark Brown | a6ba2b2 | 2009-01-08 15:16:16 +0000 | [diff] [blame] | 18 | enum wm8350_jack { |
| 19 | WM8350_JDL = 1, |
| 20 | WM8350_JDR = 2, |
| 21 | }; |
| 22 | |
| 23 | int wm8350_hp_jack_detect(struct snd_soc_codec *codec, enum wm8350_jack which, |
| 24 | struct snd_soc_jack *jack, int report); |
Mark Brown | 2a0761a | 2010-03-16 15:54:12 +0000 | [diff] [blame] | 25 | int wm8350_mic_jack_detect(struct snd_soc_codec *codec, |
| 26 | struct snd_soc_jack *jack, |
| 27 | int detect_report, int short_report); |
Mark Brown | a6ba2b2 | 2009-01-08 15:16:16 +0000 | [diff] [blame] | 28 | |
Mark Brown | 40aa4a3 | 2008-12-16 10:15:12 +0000 | [diff] [blame] | 29 | #endif |