1
2
3
4
5
6
7
8 #ifndef __LINUX_SND_RT5659_H
9 #define __LINUX_SND_RT5659_H
10
11 enum rt5659_dmic1_data_pin {
12 RT5659_DMIC1_NULL,
13 RT5659_DMIC1_DATA_IN2N,
14 RT5659_DMIC1_DATA_GPIO5,
15 RT5659_DMIC1_DATA_GPIO9,
16 RT5659_DMIC1_DATA_GPIO11,
17 };
18
19 enum rt5659_dmic2_data_pin {
20 RT5659_DMIC2_NULL,
21 RT5659_DMIC2_DATA_IN2P,
22 RT5659_DMIC2_DATA_GPIO6,
23 RT5659_DMIC2_DATA_GPIO10,
24 RT5659_DMIC2_DATA_GPIO12,
25 };
26
27 enum rt5659_jd_src {
28 RT5659_JD_NULL,
29 RT5659_JD3,
30 RT5659_JD_HDA_HEADER,
31 };
32
33 struct rt5659_platform_data {
34 bool in1_diff;
35 bool in3_diff;
36 bool in4_diff;
37
38 int ldo1_en;
39 int reset;
40
41 enum rt5659_dmic1_data_pin dmic1_data_pin;
42 enum rt5659_dmic2_data_pin dmic2_data_pin;
43 enum rt5659_jd_src jd_src;
44 };
45
46 #endif
47