]> git.baikalelectronics.ru Git - kernel.git/commit
ALSA: snd-es1968: Make hardware volume buttons an input device (rev2)
authorHans de Goede <hdegoede@redhat.com>
Fri, 23 Apr 2010 09:26:43 +0000 (05:26 -0400)
committerTakashi Iwai <tiwai@suse.de>
Fri, 23 Apr 2010 15:09:59 +0000 (17:09 +0200)
commite0ea062aec3e89d9ce87bb38e12e1a8b6cc0aabe
tree54a6238359ec63d2221802e23e4ce6581c060d77
parent0a2bda9cafdfa8ce0732cf22112d60ad33ea99cc
ALSA: snd-es1968: Make hardware volume buttons an input device (rev2)

The hardware volume handling code in essence just detects key presses, and
then does some hardcoded modification of the master volume based on which key
is pressed.

Clearly the right thing to do here is just report these keypresses to
userspace and let userspace decide what to with them.

This patch adds a Kconfig option which when enabled reports the volume
buttons as keypresses using an input device. When enabled this option
also gets rid of the ugly direct ac97 writes from the tasklet, the ac97lock
and the need for using a tasklet in general.

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/pci/Kconfig
sound/pci/es1968.c