]> git.baikalelectronics.ru Git - 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)
commit405ac140ad92dc9d277a0807aa7618eeb0aaac34
treefb80d8f071303f2b74b3ded23bd1cfea6bd49f92
parentcb12374be792833e24bf2c8283897319b8b51260
ALSA: hda - Select INPUT for Realtek HD-audio codec

The commit commit [01dbb220fc71: 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: 01dbb220fc71 ('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