blob: a13d18c92d4bd6587f4c8a618626bf689d29590f [file] [log] [blame]
Thomas Gleixner2874c5f2019-05-27 08:55:01 +02001/* SPDX-License-Identifier: GPL-2.0-or-later */
Mark Brown40aa4a32008-12-16 10:15:12 +00002/*
3 * wm8350.h - WM8903 audio codec interface
4 *
5 * Copyright 2008 Wolfson Microelectronics PLC.
Mark Brown40aa4a32008-12-16 10:15:12 +00006 */
7
8#ifndef _WM8350_H
9#define _WM8350_H
10
11#include <sound/soc.h>
Mark Brown008db442009-04-27 19:17:08 +010012#include <linux/mfd/wm8350/audio.h>
Mark Brown40aa4a32008-12-16 10:15:12 +000013
Mark Browna6ba2b22009-01-08 15:16:16 +000014enum wm8350_jack {
15 WM8350_JDL = 1,
16 WM8350_JDR = 2,
17};
18
Kuninori Morimoto2621a9a2018-01-29 02:59:50 +000019int wm8350_hp_jack_detect(struct snd_soc_component *component, enum wm8350_jack which,
Mark Browna6ba2b22009-01-08 15:16:16 +000020 struct snd_soc_jack *jack, int report);
Kuninori Morimoto2621a9a2018-01-29 02:59:50 +000021int wm8350_mic_jack_detect(struct snd_soc_component *component,
Mark Brown2a0761a2010-03-16 15:54:12 +000022 struct snd_soc_jack *jack,
23 int detect_report, int short_report);
Mark Browna6ba2b22009-01-08 15:16:16 +000024
Mark Brown40aa4a32008-12-16 10:15:12 +000025#endif