Thomas Gleixner | 2874c5f | 2019-05-27 08:55:01 +0200 | [diff] [blame] | 1 | /* SPDX-License-Identifier: GPL-2.0-or-later */ |
Mark Brown | 40aa4a3 | 2008-12-16 10:15:12 +0000 | [diff] [blame] | 2 | /* |
| 3 | * wm8350.h - WM8903 audio codec interface |
| 4 | * |
| 5 | * Copyright 2008 Wolfson Microelectronics PLC. |
Mark Brown | 40aa4a3 | 2008-12-16 10:15:12 +0000 | [diff] [blame] | 6 | */ |
| 7 | |
| 8 | #ifndef _WM8350_H |
| 9 | #define _WM8350_H |
| 10 | |
| 11 | #include <sound/soc.h> |
Mark Brown | 008db44 | 2009-04-27 19:17:08 +0100 | [diff] [blame] | 12 | #include <linux/mfd/wm8350/audio.h> |
Mark Brown | 40aa4a3 | 2008-12-16 10:15:12 +0000 | [diff] [blame] | 13 | |
Mark Brown | a6ba2b2 | 2009-01-08 15:16:16 +0000 | [diff] [blame] | 14 | enum wm8350_jack { |
| 15 | WM8350_JDL = 1, |
| 16 | WM8350_JDR = 2, |
| 17 | }; |
| 18 | |
Kuninori Morimoto | 2621a9a | 2018-01-29 02:59:50 +0000 | [diff] [blame] | 19 | int wm8350_hp_jack_detect(struct snd_soc_component *component, enum wm8350_jack which, |
Mark Brown | a6ba2b2 | 2009-01-08 15:16:16 +0000 | [diff] [blame] | 20 | struct snd_soc_jack *jack, int report); |
Kuninori Morimoto | 2621a9a | 2018-01-29 02:59:50 +0000 | [diff] [blame] | 21 | int wm8350_mic_jack_detect(struct snd_soc_component *component, |
Mark Brown | 2a0761a | 2010-03-16 15:54:12 +0000 | [diff] [blame] | 22 | struct snd_soc_jack *jack, |
| 23 | int detect_report, int short_report); |
Mark Brown | a6ba2b2 | 2009-01-08 15:16:16 +0000 | [diff] [blame] | 24 | |
Mark Brown | 40aa4a3 | 2008-12-16 10:15:12 +0000 | [diff] [blame] | 25 | #endif |