linux/sound/soc/codecs/mt6359-accdet.h

/* SPDX-License-Identifier: GPL-2.0 */
/*
 * Copyright (C) 2021 MediaTek Inc.
 * Author: Argus Lin <[email protected]>
 */

#ifndef _ACCDET_H_
#define _ACCDET_H_

#include <linux/ctype.h>
#include <linux/string.h>

#define ACCDET_DEVNAME

#define HEADSET_MODE_1
#define HEADSET_MODE_2
#define HEADSET_MODE_6

#define MT6359_ACCDET_NUM_BUTTONS
#define MT6359_ACCDET_JACK_MASK
#define MT6359_ACCDET_BTN_MASK

enum eint_moisture_status {};

enum {};

struct three_key_threshold {};

struct four_key_threshold {};

struct pwm_deb_settings {};

struct dts_data {};

struct mt6359_accdet {};

int mt6359_accdet_enable_jack_detect(struct snd_soc_component *component,
				     struct snd_soc_jack *jack);
#endif