xref: /openbmc/linux/sound/soc/codecs/wm8350.h (revision bbb774d9)
1 /* SPDX-License-Identifier: GPL-2.0-or-later */
2 /*
3  * wm8350.h - WM8903 audio codec interface
4  *
5  * Copyright 2008 Wolfson Microelectronics PLC.
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
26