]> git.kernelconcepts.de Git - karo-tx-linux.git/commitdiff
ALSA: jack: fix a randconfig build issue
authorJie Yang <yang.jie@intel.com>
Sat, 2 May 2015 07:28:07 +0000 (15:28 +0800)
committerTakashi Iwai <tiwai@suse.de>
Sat, 2 May 2015 08:02:17 +0000 (10:02 +0200)
Building errors reported such as below when 'CONFIG_INPUT=m':
    ...undefined reference to `input_xxx'...

Here change to enable SND_JACK selectively to fix the issue.

Also remove the config 'SND_HDA_INPUT_JACK' which won't be
used anymore.

Signed-off-by: Jie Yang <yang.jie@intel.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/pci/hda/Kconfig
sound/pci/hda/hda_codec.h

index 4d3d4747e55a3fc9f1f8f99102ec21181f51c10e..78e9e411977a140075c93e1aa14d0ed8097c2f3d 100644 (file)
@@ -4,7 +4,7 @@ config SND_HDA
        tristate
        select SND_PCM
        select SND_VMASTER
-       select SND_JACK
+       select SND_JACK if INPUT=y || INPUT=SND
        select SND_HDA_CORE
 
 config SND_HDA_INTEL
@@ -87,14 +87,6 @@ config SND_HDA_INPUT_BEEP_MODE
          Set 1 to always enable the digital beep interface for HD-audio by
          default.
 
-config SND_HDA_INPUT_JACK
-       bool "Support jack plugging notification via input layer"
-       depends on INPUT=y || INPUT=SND
-       select SND_JACK
-       help
-         Say Y here to enable the jack plugging notification via
-         input layer.
-
 config SND_HDA_PATCH_LOADER
        bool "Support initialization patch loading for HD-audio"
        select FW_LOADER
index 9075ac28dc4b03ad1f9e1235adbbd7f6775bd22f..28a1f1c815624209e1c6b5fea099efb596ffaf74 100644 (file)
@@ -300,10 +300,8 @@ struct hda_codec {
        unsigned long jackpoll_interval; /* In jiffies. Zero means no poll, rely on unsol events */
        struct delayed_work jackpoll_work;
 
-#ifdef CONFIG_SND_HDA_INPUT_JACK
        /* jack detection */
        struct snd_array jacks;
-#endif
 
        int depop_delay; /* depop delay in ms, -1 for default delay time */