hc
2024-05-10 748e4f3d702def1a4bff191e0cf93b6a05340f01
kernel/include/sound/jack.h
....@@ -1,3 +1,4 @@
1
+/* SPDX-License-Identifier: GPL-2.0-or-later */
12 #ifndef __SOUND_JACK_H
23 #define __SOUND_JACK_H
34
....@@ -5,25 +6,10 @@
56 * Jack abstraction layer
67 *
78 * Copyright 2008 Wolfson Microelectronics plc
8
- *
9
- *
10
- * This program is free software; you can redistribute it and/or modify
11
- * it under the terms of the GNU General Public License as published by
12
- * the Free Software Foundation; either version 2 of the License, or
13
- * (at your option) any later version.
14
- *
15
- * This program is distributed in the hope that it will be useful,
16
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
17
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18
- * GNU General Public License for more details.
19
- *
20
- * You should have received a copy of the GNU General Public License
21
- * along with this program; if not, write to the Free Software
22
- * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
23
- *
249 */
2510
2611 #include <sound/core.h>
12
+#include <linux/android_kabi.h>
2713
2814 struct input_dev;
2915
....@@ -58,21 +44,18 @@
5844 SND_JACK_VIDEOOUT = 0x0010,
5945 SND_JACK_AVOUT = SND_JACK_LINEOUT | SND_JACK_VIDEOOUT,
6046 SND_JACK_LINEIN = 0x0020,
61
- SND_JACK_OC_HPHL = 0x0040,
62
- SND_JACK_OC_HPHR = 0x0080,
63
- SND_JACK_UNSUPPORTED = 0x0100,
64
- SND_JACK_MICROPHONE2 = 0x0200,
65
- SND_JACK_ANC_HEADPHONE = SND_JACK_HEADPHONE | SND_JACK_MICROPHONE |
66
- SND_JACK_MICROPHONE2,
6747
6848 /* Kept separate from switches to facilitate implementation */
69
- SND_JACK_BTN_0 = 0x8000,
70
- SND_JACK_BTN_1 = 0x4000,
71
- SND_JACK_BTN_2 = 0x2000,
72
- SND_JACK_BTN_3 = 0x1000,
73
- SND_JACK_BTN_4 = 0x0800,
74
- SND_JACK_BTN_5 = 0x0400,
49
+ SND_JACK_BTN_0 = 0x4000,
50
+ SND_JACK_BTN_1 = 0x2000,
51
+ SND_JACK_BTN_2 = 0x1000,
52
+ SND_JACK_BTN_3 = 0x0800,
53
+ SND_JACK_BTN_4 = 0x0400,
54
+ SND_JACK_BTN_5 = 0x0200,
7555 };
56
+
57
+/* Keep in sync with definitions above */
58
+#define SND_JACK_SWITCH_TYPES 6
7659
7760 struct snd_jack {
7861 struct list_head kctl_list;
....@@ -87,6 +70,8 @@
8770 #endif /* CONFIG_SND_JACK_INPUT_DEV */
8871 void *private_data;
8972 void (*private_free)(struct snd_jack *);
73
+
74
+ ANDROID_KABI_RESERVE(1);
9075 };
9176
9277 #ifdef CONFIG_SND_JACK