瀏覽代碼

Merge branch 'topic/jack' into for-next

Takashi Iwai 10 年之前
父節點
當前提交
bd5b2d4407
共有 2 個文件被更改,包括 1 次插入11 次删除
  1. 1 9
      sound/pci/hda/Kconfig
  2. 0 2
      sound/pci/hda/hda_codec.h

+ 1 - 9
sound/pci/hda/Kconfig

@@ -4,7 +4,7 @@ config SND_HDA
 	tristate
 	tristate
 	select SND_PCM
 	select SND_PCM
 	select SND_VMASTER
 	select SND_VMASTER
-	select SND_JACK
+	select SND_JACK if INPUT=y || INPUT=SND
 	select SND_HDA_CORE
 	select SND_HDA_CORE
 
 
 config SND_HDA_INTEL
 config SND_HDA_INTEL
@@ -84,14 +84,6 @@ config SND_HDA_INPUT_BEEP_MODE
 	  Set 1 to always enable the digital beep interface for HD-audio by
 	  Set 1 to always enable the digital beep interface for HD-audio by
 	  default.
 	  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
 config SND_HDA_PATCH_LOADER
 	bool "Support initialization patch loading for HD-audio"
 	bool "Support initialization patch loading for HD-audio"
 	select FW_LOADER
 	select FW_LOADER

+ 0 - 2
sound/pci/hda/hda_codec.h

@@ -274,10 +274,8 @@ struct hda_codec {
 	unsigned long jackpoll_interval; /* In jiffies. Zero means no poll, rely on unsol events */
 	unsigned long jackpoll_interval; /* In jiffies. Zero means no poll, rely on unsol events */
 	struct delayed_work jackpoll_work;
 	struct delayed_work jackpoll_work;
 
 
-#ifdef CONFIG_SND_HDA_INPUT_JACK
 	/* jack detection */
 	/* jack detection */
 	struct snd_array jacks;
 	struct snd_array jacks;
-#endif
 
 
 	int depop_delay; /* depop delay in ms, -1 for default delay time */
 	int depop_delay; /* depop delay in ms, -1 for default delay time */