David Brazdil | 0f672f6 | 2019-12-10 10:32:29 +0000 | [diff] [blame^] | 1 | /* SPDX-License-Identifier: GPL-2.0-or-later */ |
Andrew Scull | b4b6d4a | 2019-01-02 15:54:55 +0000 | [diff] [blame] | 2 | /* |
| 3 | * wm8350.h - WM8903 audio codec interface |
| 4 | * |
| 5 | * Copyright 2008 Wolfson Microelectronics PLC. |
Andrew Scull | b4b6d4a | 2019-01-02 15:54:55 +0000 | [diff] [blame] | 6 | */ |
| 7 | |
| 8 | #ifndef _WM8350_H |
| 9 | #define _WM8350_H |
| 10 | |
| 11 | #include <sound/soc.h> |
| 12 | #include <linux/mfd/wm8350/audio.h> |
| 13 | |
| 14 | enum wm8350_jack { |
| 15 | WM8350_JDL = 1, |
| 16 | WM8350_JDR = 2, |
| 17 | }; |
| 18 | |
| 19 | int wm8350_hp_jack_detect(struct snd_soc_component *component, enum wm8350_jack which, |
| 20 | struct snd_soc_jack *jack, int report); |
| 21 | int wm8350_mic_jack_detect(struct snd_soc_component *component, |
| 22 | struct snd_soc_jack *jack, |
| 23 | int detect_report, int short_report); |
| 24 | |
| 25 | #endif |