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 Hook_adc_chn; //adc channel
19 unsigned int Hook_down_type; //Hook key down status
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);