Home
last modified time | relevance | path

Searched refs:headset_info (Results 1 – 2 of 2) sorted by relevance

/OK3568_Linux_fs/kernel/drivers/headset_observe/
H A Drk_headset.c89 static struct headset_priv *headset_info; variable
98 gpio_set_value(headset_info->pdata->mic_switch_gpio, in Modem_Mic_switch()
99 headset_info->pdata->hp_mic_io_value); in Modem_Mic_switch()
101 gpio_set_value(headset_info->pdata->mic_switch_gpio, in Modem_Mic_switch()
102 headset_info->pdata->main_mic_io_value); in Modem_Mic_switch()
107 if (headset_info->cur_headset_status == 1) in Modem_Mic_release()
108 gpio_set_value(headset_info->pdata->mic_switch_gpio, in Modem_Mic_release()
109 headset_info->pdata->hp_mic_io_value); in Modem_Mic_release()
111 gpio_set_value(headset_info->pdata->mic_switch_gpio, in Modem_Mic_release()
112 headset_info->pdata->main_mic_io_value); in Modem_Mic_release()
[all …]
H A Drk_headset_irq_hook_adc.c107 static struct headset_priv *headset_info; variable
111 struct rk_headset_pdata *pdata = headset_info->pdata; in headset_interrupt()
115 disable_irq_nosync(headset_info->irq[HEADSET]); in headset_interrupt()
116 if (headset_info->heatset_irq_working == BUSY || in headset_interrupt()
117 headset_info->heatset_irq_working == WAIT) in headset_interrupt()
120 headset_info->heatset_irq_working = BUSY; in headset_interrupt()
140 old_status = headset_info->headset_status; in headset_interrupt()
144 headset_info->headset_status = HEADSET_IN; in headset_interrupt()
146 headset_info->headset_status = HEADSET_OUT; in headset_interrupt()
150 headset_info->headset_status = HEADSET_IN; in headset_interrupt()
[all …]