Merge remote-tracking branch 'stable/linux-3.0.y' into develop-3.0
[firefly-linux-kernel-4.4.55.git] / drivers / headset_observe / rk_headset.h
1 #ifndef RK_HEADSET_H
2 #define RK_HEADSET_H
3
4 #define HEADSET_IN_HIGH 0x00000001
5 #define HEADSET_IN_LOW  0x00000000
6
7 #define HOOK_DOWN_HIGH 0x00000001
8 #define HOOK_DOWN_LOW  0x00000000
9
10 struct io_info{
11         char    iomux_name[50];
12         int             iomux_mode;     
13 };
14
15
16 struct rk_headset_pdata{
17         unsigned int Hook_gpio;//Detection Headset--Must be set
18         unsigned int Hook_adc_chn; //adc channel
19         unsigned int Hook_down_type; //Hook key down status   
20         int     hook_key_code;
21         unsigned int Headset_gpio;//Detection Headset--Must be set
22         unsigned int headset_in_type;// Headphones into the state level--Must be set    
23         struct io_info headset_gpio_info;
24         struct io_info hook_gpio_info;
25         int (*headset_io_init)(int, char *, int);
26         int (*hook_io_init)(int, char *, int);
27 };
28
29 #endif