diff options
author | Hans de Goede <hdegoede@redhat.com> | 2010-04-23 05:26:43 -0400 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2010-04-23 11:09:59 -0400 |
commit | 5a5e02e5095ed89a0a1f4031e7440078c209442b (patch) | |
tree | 54a6238359ec63d2221802e23e4ce6581c060d77 /sound/pci/Kconfig | |
parent | eb581adf25fe9e42197e591926de85459e68b9fd (diff) |
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>
Diffstat (limited to 'sound/pci/Kconfig')
-rw-r--r-- | sound/pci/Kconfig | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/sound/pci/Kconfig b/sound/pci/Kconfig index ebcf065ad2c2..e7a8cd058efb 100644 --- a/sound/pci/Kconfig +++ b/sound/pci/Kconfig | |||
@@ -513,6 +513,16 @@ config SND_ES1968 | |||
513 | To compile this driver as a module, choose M here: the module | 513 | To compile this driver as a module, choose M here: the module |
514 | will be called snd-es1968. | 514 | will be called snd-es1968. |
515 | 515 | ||
516 | config SND_ES1968_INPUT | ||
517 | bool "Enable input device for es1968 volume buttons" | ||
518 | depends on SND_ES1968 | ||
519 | depends on INPUT=y || INPUT=SND_ES1968 | ||
520 | help | ||
521 | If you say Y here, you will get an input device which reports | ||
522 | keypresses for the volume buttons connected to the es1968 chip. | ||
523 | If you say N the buttons will directly control the master volume. | ||
524 | It is recommended to say Y. | ||
525 | |||
516 | config SND_FM801 | 526 | config SND_FM801 |
517 | tristate "ForteMedia FM801" | 527 | tristate "ForteMedia FM801" |
518 | select SND_OPL3_LIB | 528 | select SND_OPL3_LIB |