4 #define HEADSET_IN_HIGH 0x00000001
5 #define HEADSET_IN_LOW 0x00000000
13 struct rk_headset_pdata{
14 unsigned int Hook_gpio;//Detection Headset--Must be set
15 unsigned int Hook_adc_chn; //adc channel
17 unsigned int Headset_gpio;//Detection Headset--Must be set
18 unsigned int headset_in_type;// Headphones into the state level--Must be set
19 struct io_info headset_gpio_info;
20 struct io_info hook_gpio_info;
21 int (*headset_io_init)(int, char *, int);
22 int (*hook_io_init)(int, char *, int);