diff options
author | Takashi Iwai <tiwai@suse.de> | 2016-02-17 09:44:25 +0100 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2016-02-23 09:03:07 +0100 |
commit | fe0d128c57bf927a713159f60a18d9f315d4d91d (patch) | |
tree | e45587f9521ad620056a59e7073307ccb16c39f1 /sound/soc/Kconfig | |
parent | ALSA: mts64: use new parport device model (diff) | |
download | linux-fe0d128c57bf927a713159f60a18d9f315d4d91d.tar.xz linux-fe0d128c57bf927a713159f60a18d9f315d4d91d.zip |
ALSA: jack: Allow building the jack layer without input device
Since the recent integration of kctl jack and input jack layers, we
can basically build the jack layer even without input devices. That
is, the jack layer itself can be built with conditional to enable the
input device support or not, while the users may enable always
CONFIG_SND_JACK unconditionally.
For achieving it, this patch changes the following:
- A new Kconfig, CONFIG_SND_JACK_INPUT_DEV, was introduced to indicate
whether the jack layer supports the input device,
- A few items in snd_jack struct and relevant codes are conditionally
built upon CONFIG_SND_JACK_INPUT_DEV,
- The users of CONFIG_SND_JACK drop the messy dependency on
CONFIG_INPUT.
This change also automagically fixes a potential bug in HD-audio
driver Arnd reported, where the NULL or uninitialized jack instance is
dereferenced.
Reported-by: Arnd Bergmann <arnd@arndb.de>
Acked-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to '')
-rw-r--r-- | sound/soc/Kconfig | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sound/soc/Kconfig b/sound/soc/Kconfig index 7ea66ee3653f..182d92efc7c8 100644 --- a/sound/soc/Kconfig +++ b/sound/soc/Kconfig @@ -6,7 +6,7 @@ menuconfig SND_SOC tristate "ALSA for SoC audio support" select SND_PCM select AC97_BUS if SND_SOC_AC97_BUS - select SND_JACK if INPUT=y || INPUT=SND + select SND_JACK select REGMAP_I2C if I2C select REGMAP_SPI if SPI_MASTER ---help--- |