Searched refs:kb_dev (Results 1 - 1 of 1) sorted by relevance

/linux-4.4.14/sound/pci/hda/
H A Dpatch_realtek.c129 struct input_dev *kb_dev; member in struct:alc_spec
3481 input_report_key(spec->kb_dev, spec->alc_mute_keycode_map[ALC_KEY_MICMUTE_INDEX], 1); gpio2_mic_hotkey_event()
3482 input_sync(spec->kb_dev); gpio2_mic_hotkey_event()
3483 input_report_key(spec->kb_dev, spec->alc_mute_keycode_map[ALC_KEY_MICMUTE_INDEX], 0); gpio2_mic_hotkey_event()
3484 input_sync(spec->kb_dev); gpio2_mic_hotkey_event()
3492 spec->kb_dev = input_allocate_device(); alc_register_micmute_input_device()
3493 if (!spec->kb_dev) { alc_register_micmute_input_device()
3500 spec->kb_dev->name = "Microphone Mute Button"; alc_register_micmute_input_device()
3501 spec->kb_dev->evbit[0] = BIT_MASK(EV_KEY); alc_register_micmute_input_device()
3502 spec->kb_dev->keycodesize = sizeof(spec->alc_mute_keycode_map[0]); alc_register_micmute_input_device()
3503 spec->kb_dev->keycodemax = ARRAY_SIZE(spec->alc_mute_keycode_map); alc_register_micmute_input_device()
3504 spec->kb_dev->keycode = spec->alc_mute_keycode_map; alc_register_micmute_input_device()
3506 set_bit(spec->alc_mute_keycode_map[i], spec->kb_dev->keybit); alc_register_micmute_input_device()
3508 if (input_register_device(spec->kb_dev)) { alc_register_micmute_input_device()
3510 input_free_device(spec->kb_dev); alc_register_micmute_input_device()
3511 spec->kb_dev = NULL; alc_register_micmute_input_device()
3553 if (!spec->kb_dev) alc280_fixup_hp_gpio2_mic_hotkey()
3561 input_unregister_device(spec->kb_dev); alc280_fixup_hp_gpio2_mic_hotkey()
3562 spec->kb_dev = NULL; alc280_fixup_hp_gpio2_mic_hotkey()
3594 if (!spec->kb_dev) alc233_fixup_lenovo_line2_mic_hotkey()
3602 input_unregister_device(spec->kb_dev); alc233_fixup_lenovo_line2_mic_hotkey()
3603 spec->kb_dev = NULL; alc233_fixup_lenovo_line2_mic_hotkey()

Completed in 97 milliseconds