ALSA: Build jack detection
authorMark Brown <broonie@opensource.wolfsonmicro.com>
Mon, 28 Jul 2008 18:05:36 +0000 (19:05 +0100)
committerJaroslav Kysela <perex@perex.cz>
Tue, 29 Jul 2008 19:32:06 +0000 (21:32 +0200)
commit0d94e41abe271c86df06bcf72d24f9ca7ce771f0
tree6810d9b350d2fc8b0579d082206587f07bea5d96
parente76d8ceaaff9d7fc1ba2b1963a9f34151832223b
ALSA: Build jack detection

Since jack detection requires the input subsystem which may not be
desired on small systems it is not built unless required by a driver
that is being built. Drivers using jack detection should use a pattern
like this:

config SND_FOO
        tristate "..."
        ...
        select SND_JACK if INPUT=y || INPUT=SND

to ensure that the jack detection API is enabled if the input subsystem
is.  If the input subsystem is not enabled then a stub version of the
API is provided.

Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
sound/core/Kconfig
sound/core/Makefile