• Takashi Iwai's avatar
    ALSA: hda - Select INPUT for Realtek HD-audio codec · ffcd28d8
    Takashi Iwai authored
    The commit commit [33f4acd3: ALSA: hda - Enable mic mute hotkey
    and LEDs for an HP machine] introduced a quirk for a HP machine
    involving with the input event handling.  Although the relevant code
    is protected via IS_ENABLED(CONFIG_INPUT), this doesn't suffice when
    the audio driver is built in while the input is module.
    
    As an easy workaround, this patch forcibly selects CONFIG_INPUT in
    Kconfig.  This shouldn't be a practical problem since CONFIG_INPUT is
    almost mandatory for all systems.  Also, this allows to remove the
    ugly ifdefs in the code.
    
    Fixes: 33f4acd3 ('ALSA: hda - Enable mic mute hotkey and LEDs for an HP machine')
    Acked-by: default avatarDavid Henningsson <david.henningsson@canonical.com>
    Signed-off-by: default avatarTakashi Iwai <tiwai@suse.de>
    ffcd28d8
patch_realtek.c 190 KB