]>
Commit | Line | Data |
---|---|---|
33ada14a BL |
1 | /* |
2 | * linux/sound/rt5665.h -- Platform data for RT5665 | |
3 | * | |
4 | * Copyright 2016 Realtek Microelectronics | |
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 | */ | |
10 | ||
11 | #ifndef __LINUX_SND_RT5665_H | |
12 | #define __LINUX_SND_RT5665_H | |
13 | ||
14 | enum rt5665_dmic1_data_pin { | |
15 | RT5665_DMIC1_NULL, | |
16 | RT5665_DMIC1_DATA_GPIO4, | |
17 | RT5665_DMIC1_DATA_IN2N, | |
18 | }; | |
19 | ||
20 | enum rt5665_dmic2_data_pin { | |
21 | RT5665_DMIC2_NULL, | |
22 | RT5665_DMIC2_DATA_GPIO5, | |
23 | RT5665_DMIC2_DATA_IN2P, | |
24 | }; | |
25 | ||
26 | enum rt5665_jd_src { | |
27 | RT5665_JD_NULL, | |
28 | RT5665_JD1, | |
29 | }; | |
30 | ||
31 | struct rt5665_platform_data { | |
32 | bool in1_diff; | |
33 | bool in2_diff; | |
34 | bool in3_diff; | |
35 | bool in4_diff; | |
36 | ||
37 | int ldo1_en; /* GPIO for LDO1_EN */ | |
38 | ||
39 | enum rt5665_dmic1_data_pin dmic1_data_pin; | |
40 | enum rt5665_dmic2_data_pin dmic2_data_pin; | |
41 | enum rt5665_jd_src jd_src; | |
42 | ||
43 | unsigned int sar_hs_type; | |
44 | }; | |
45 | ||
46 | #endif | |
47 |