thinkpad-acpi: make volume subdriver optional
commit06ba8b40098e8767ede3415d92ee66ac9bcb6aca
authorHenrique de Moraes Holschuh <hmh@hmh.eng.br>
Sun, 27 Dec 2009 19:02:10 +0000 (27 17:02 -0200)
committerHenrique de Moraes Holschuh <hmh@hmh.eng.br>
Sun, 27 Dec 2009 19:02:10 +0000 (27 17:02 -0200)
tree02a406af61e785750b3709163896bdfbfdde3ca4
parent0130cbe7b0e42f00a41d0a4db4c4ec2c1f52d5ea
thinkpad-acpi: make volume subdriver optional

Allow the user to choose through Kconfig if the Console Audio Control
interface (aka "volume subdriver") should be available or not.

This not only saves some memory, but also allows the thinkpad-acpi
driver to be built-in even if ALSA is modular when the console audio
control interface is not wanted.

This change fixes a build problem that is causing some annoyances, in
a way that doesn't disable the entire driver on kernels without ALSA
support.

Signed-off-by: Henrique de Moraes Holschuh <hmh@hmh.eng.br>
Cc: Ingo Molnar <mingo@elte.hu>
Cc: Amerigo Wang <amwang@redhat.com>
Cc: Helight Xu <helight.xu@gmail.com>
Cc: Takashi Iwai <tiwai@suse.de>
drivers/platform/x86/Kconfig
drivers/platform/x86/thinkpad_acpi.c