Lines Matching refs:kb_dev
134 struct input_dev *kb_dev; member
4950 input_report_key(spec->kb_dev, spec->alc_mute_keycode_map[ALC_KEY_MICMUTE_INDEX], 1); in gpio2_mic_hotkey_event()
4951 input_sync(spec->kb_dev); in gpio2_mic_hotkey_event()
4952 input_report_key(spec->kb_dev, spec->alc_mute_keycode_map[ALC_KEY_MICMUTE_INDEX], 0); in gpio2_mic_hotkey_event()
4953 input_sync(spec->kb_dev); in gpio2_mic_hotkey_event()
4961 spec->kb_dev = input_allocate_device(); in alc_register_micmute_input_device()
4962 if (!spec->kb_dev) { in alc_register_micmute_input_device()
4969 spec->kb_dev->name = "Microphone Mute Button"; in alc_register_micmute_input_device()
4970 spec->kb_dev->evbit[0] = BIT_MASK(EV_KEY); in alc_register_micmute_input_device()
4971 spec->kb_dev->keycodesize = sizeof(spec->alc_mute_keycode_map[0]); in alc_register_micmute_input_device()
4972 spec->kb_dev->keycodemax = ARRAY_SIZE(spec->alc_mute_keycode_map); in alc_register_micmute_input_device()
4973 spec->kb_dev->keycode = spec->alc_mute_keycode_map; in alc_register_micmute_input_device()
4975 set_bit(spec->alc_mute_keycode_map[i], spec->kb_dev->keybit); in alc_register_micmute_input_device()
4977 if (input_register_device(spec->kb_dev)) { in alc_register_micmute_input_device()
4979 input_free_device(spec->kb_dev); in alc_register_micmute_input_device()
4980 spec->kb_dev = NULL; in alc_register_micmute_input_device()
5013 if (!spec->kb_dev) in alc280_fixup_hp_gpio2_mic_hotkey()
5018 input_unregister_device(spec->kb_dev); in alc280_fixup_hp_gpio2_mic_hotkey()
5019 spec->kb_dev = NULL; in alc280_fixup_hp_gpio2_mic_hotkey()
5042 if (!spec->kb_dev) in alc233_fixup_lenovo_line2_mic_hotkey()
5047 input_unregister_device(spec->kb_dev); in alc233_fixup_lenovo_line2_mic_hotkey()
5048 spec->kb_dev = NULL; in alc233_fixup_lenovo_line2_mic_hotkey()