4 #define HEADSET_IN_HIGH 0x00000001
5 #define HEADSET_IN_LOW 0x00000000
7 #define HOOK_DOWN_HIGH 0x00000001
8 #define HOOK_DOWN_LOW 0x00000000
16 struct rk_headset_pdata{
17 unsigned int Hook_gpio;//Detection Headset--Must be set
18 unsigned int Sw_mic_gpio;
19 unsigned int Hp_mic_io_value;
20 unsigned int Main_mic_io_value;
21 unsigned int Hook_adc_chn; //adc channel
22 unsigned int Hook_down_type; //Hook key down status
24 unsigned int Headset_gpio;//Detection Headset--Must be set
25 unsigned int headset_in_type;// Headphones into the state level--Must be set
26 struct io_info headset_gpio_info;
27 struct io_info hook_gpio_info;
28 int (*headset_io_init)(int, char *, int);
29 int (*hook_io_init)(int, char *, int);