Lines Matching refs:current_plug
63 u8 current_plug; member
309 mbhc->current_plug = MBHC_PLUG_TYPE_NONE; in wcd_mbhc_report_plug_removal()
340 if (mbhc->current_plug == MBHC_PLUG_TYPE_HEADSET && in wcd_mbhc_report_plug_insertion()
347 mbhc->current_plug = MBHC_PLUG_TYPE_HEADPHONE; in wcd_mbhc_report_plug_insertion()
350 mbhc->current_plug = MBHC_PLUG_TYPE_HEADSET; in wcd_mbhc_report_plug_insertion()
354 mbhc->current_plug = MBHC_PLUG_TYPE_HIGH_HPH; in wcd_mbhc_report_plug_insertion()
370 mbhc->current_plug = MBHC_PLUG_TYPE_HIGH_HPH; in wcd_mbhc_report_plug_insertion()
387 mbhc->current_plug = MBHC_PLUG_TYPE_HIGH_HPH; in wcd_mbhc_report_plug_insertion()
458 if (mbhc->current_plug == plug_type) in wcd_mbhc_find_plug_and_report()
474 if (mbhc->current_plug == MBHC_PLUG_TYPE_HEADPHONE) in wcd_mbhc_find_plug_and_report()
476 if (mbhc->current_plug == MBHC_PLUG_TYPE_HEADSET) in wcd_mbhc_find_plug_and_report()
481 mbhc->current_plug, plug_type); in wcd_mbhc_find_plug_and_report()
536 if (mbhc->current_plug != MBHC_PLUG_TYPE_NONE) in mbhc_plug_detect_fn()
548 if (mbhc->current_plug == MBHC_PLUG_TYPE_NONE) in mbhc_plug_detect_fn()
552 switch (mbhc->current_plug) { in mbhc_plug_detect_fn()
569 mbhc->current_plug); in mbhc_plug_detect_fn()
665 if (mbhc->current_plug == MBHC_PLUG_TYPE_HEADSET) in wcd_btn_long_press_fn()
690 if (mbhc->current_plug != MBHC_PLUG_TYPE_HEADSET) in wcd_mbhc_btn_press_handler()
1355 if (mbhc->current_plug == MBHC_PLUG_TYPE_HEADPHONE) in wcd_mbhc_adc_hs_rem_irq()
1401 if (mbhc->current_plug == MBHC_PLUG_TYPE_HEADPHONE) { in wcd_mbhc_adc_hs_ins_irq()
1450 mbhc->current_plug = MBHC_PLUG_TYPE_NONE; in wcd_mbhc_stop()