]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commit
ALSA: hda - Select INPUT for Realtek HD-audio codec
authorTakashi Iwai <tiwai@suse.de>
Thu, 15 Jan 2015 09:11:52 +0000 (10:11 +0100)
committerTakashi Iwai <tiwai@suse.de>
Thu, 15 Jan 2015 09:21:50 +0000 (10:21 +0100)
commitffcd28d88e4f3bdb2c300e4a13e973cd2070968e
treefb80d8f071303f2b74b3ded23bd1cfea6bd49f92
parentfd4e8dde42bb142448e3fd7dc6094cb2707d3b64
ALSA: hda - Select INPUT for Realtek HD-audio codec

The commit commit [33f4acd3b214: 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: 33f4acd3b214 ('ALSA: hda - Enable mic mute hotkey and LEDs for an HP machine')
Acked-by: David Henningsson <david.henningsson@canonical.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/pci/hda/Kconfig
sound/pci/hda/patch_realtek.c