1
2
3
4
5
6
7
8 #ifndef __LINUX_SND_WM8996_H
9 #define __LINUX_SND_WM8996_H
10
11 enum wm8996_inmode {
12 WM8996_DIFFERRENTIAL_1 = 0,
13 WM8996_INVERTING = 1,
14 WM8996_NON_INVERTING = 2,
15 WM8996_DIFFERENTIAL_2 = 3,
16 };
17
18
19
20
21
22
23
24
25 struct wm8996_retune_mobile_config {
26 const char *name;
27 int rate;
28 u16 regs[20];
29 };
30
31 #define WM8996_SET_DEFAULT 0x10000
32
33 struct wm8996_pdata {
34 int irq_flags;
35
36 int ldo_ena;
37
38 int micdet_def;
39
40 enum wm8996_inmode inl_mode;
41 enum wm8996_inmode inr_mode;
42
43 u32 spkmute_seq;
44
45 int gpio_base;
46 u32 gpio_default[5];
47
48 int num_retune_mobile_cfgs;
49 struct wm8996_retune_mobile_config *retune_mobile_cfgs;
50 };
51
52 #endif