forked from ~ljy/RK356X_SDK_RELEASE

hc
2023-12-11 1f93a7dfd1f8d5ff7a5c53246c7534fe2332d6f4
kernel/sound/soc/codecs/es8316.h
....@@ -1,12 +1,8 @@
1
+/* SPDX-License-Identifier: GPL-2.0-only */
12 /*
23 * Copyright Everest Semiconductor Co.,Ltd
34 *
45 * Author: David Yang <yangxiaohua@everest-semi.com>
5
- *
6
- * This program is free software; you can redistribute it and/or modify
7
- * it under the terms of the GNU General Public License version 2 as
8
- * published by the Free Software Foundation.
9
- *
106 */
117
128 #ifndef _ES8316_H
....@@ -126,4 +122,11 @@
126122 #define ES8316_SERDATA2_LEN_16 0x0c
127123 #define ES8316_SERDATA2_LEN_32 0x10
128124
125
+/* ES8316_GPIO_DEBOUNCE */
126
+#define ES8316_GPIO_ENABLE_INTERRUPT 0x02
127
+
128
+/* ES8316_GPIO_FLAG */
129
+#define ES8316_GPIO_FLAG_GM_NOT_SHORTED 0x02
130
+#define ES8316_GPIO_FLAG_HP_NOT_INSERTED 0x04
131
+
129132 #endif