diff options
author | Takashi Iwai <tiwai@suse.de> | 2013-12-19 09:09:14 -0500 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2013-12-19 09:09:14 -0500 |
commit | d8f66c71d547538e1c61622139455dd231238aef (patch) | |
tree | f5ff8705ba7e0f310cf2ed0a6d9e9309914819d7 | |
parent | 2698ea98059bb01a9b5d9cfd20e23d55f68c0a17 (diff) |
ALSA: hda - Add warning texts when codec driver Kconfig doesn't match
When a Kconfig of a codec driver doesn't match with the controller
(CONFIG_SND_HDA_INTEL), it'll result in the non-working automatic
probing. Unfortunately kbuild can't give such a restriction, but at
least, it's possible to show a warning if such a condition is found.
Signed-off-by: Takashi Iwai <tiwai@suse.de>
-rw-r--r-- | sound/pci/hda/Kconfig | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/sound/pci/hda/Kconfig b/sound/pci/hda/Kconfig index b0c0481c3339..0e53634dbbd8 100644 --- a/sound/pci/hda/Kconfig +++ b/sound/pci/hda/Kconfig | |||
@@ -93,6 +93,9 @@ config SND_HDA_CODEC_REALTEK | |||
93 | Say Y or M here to include Realtek HD-audio codec support in | 93 | Say Y or M here to include Realtek HD-audio codec support in |
94 | snd-hda-intel driver, such as ALC880. | 94 | snd-hda-intel driver, such as ALC880. |
95 | 95 | ||
96 | comment "Set to Y if you want auto-loading the codec driver" | ||
97 | depends on SND_HDA_INTEL=y && SND_HDA_CODEC_REALTEK=m | ||
98 | |||
96 | config SND_HDA_CODEC_ANALOG | 99 | config SND_HDA_CODEC_ANALOG |
97 | tristate "Build Analog Device HD-audio codec support" | 100 | tristate "Build Analog Device HD-audio codec support" |
98 | select SND_HDA_GENERIC | 101 | select SND_HDA_GENERIC |
@@ -100,6 +103,9 @@ config SND_HDA_CODEC_ANALOG | |||
100 | Say Y or M here to include Analog Device HD-audio codec support in | 103 | Say Y or M here to include Analog Device HD-audio codec support in |
101 | snd-hda-intel driver, such as AD1986A. | 104 | snd-hda-intel driver, such as AD1986A. |
102 | 105 | ||
106 | comment "Set to Y if you want auto-loading the codec driver" | ||
107 | depends on SND_HDA_INTEL=y && SND_HDA_CODEC_ANALOG=m | ||
108 | |||
103 | config SND_HDA_CODEC_SIGMATEL | 109 | config SND_HDA_CODEC_SIGMATEL |
104 | tristate "Build IDT/Sigmatel HD-audio codec support" | 110 | tristate "Build IDT/Sigmatel HD-audio codec support" |
105 | select SND_HDA_GENERIC | 111 | select SND_HDA_GENERIC |
@@ -107,6 +113,9 @@ config SND_HDA_CODEC_SIGMATEL | |||
107 | Say Y or M here to include IDT (Sigmatel) HD-audio codec support in | 113 | Say Y or M here to include IDT (Sigmatel) HD-audio codec support in |
108 | snd-hda-intel driver, such as STAC9200. | 114 | snd-hda-intel driver, such as STAC9200. |
109 | 115 | ||
116 | comment "Set to Y if you want auto-loading the codec driver" | ||
117 | depends on SND_HDA_INTEL=y && SND_HDA_CODEC_SIGMATEL=m | ||
118 | |||
110 | config SND_HDA_CODEC_VIA | 119 | config SND_HDA_CODEC_VIA |
111 | tristate "Build VIA HD-audio codec support" | 120 | tristate "Build VIA HD-audio codec support" |
112 | select SND_HDA_GENERIC | 121 | select SND_HDA_GENERIC |
@@ -114,6 +123,9 @@ config SND_HDA_CODEC_VIA | |||
114 | Say Y or M here to include VIA HD-audio codec support in | 123 | Say Y or M here to include VIA HD-audio codec support in |
115 | snd-hda-intel driver, such as VT1708. | 124 | snd-hda-intel driver, such as VT1708. |
116 | 125 | ||
126 | comment "Set to Y if you want auto-loading the codec driver" | ||
127 | depends on SND_HDA_INTEL=y && SND_HDA_CODEC_VIA=m | ||
128 | |||
117 | config SND_HDA_CODEC_HDMI | 129 | config SND_HDA_CODEC_HDMI |
118 | tristate "Build HDMI/DisplayPort HD-audio codec support" | 130 | tristate "Build HDMI/DisplayPort HD-audio codec support" |
119 | help | 131 | help |
@@ -121,6 +133,9 @@ config SND_HDA_CODEC_HDMI | |||
121 | support in snd-hda-intel driver. This includes all AMD/ATI, | 133 | support in snd-hda-intel driver. This includes all AMD/ATI, |
122 | Intel and Nvidia HDMI/DisplayPort codecs. | 134 | Intel and Nvidia HDMI/DisplayPort codecs. |
123 | 135 | ||
136 | comment "Set to Y if you want auto-loading the codec driver" | ||
137 | depends on SND_HDA_INTEL=y && SND_HDA_CODEC_HDMI=m | ||
138 | |||
124 | config SND_HDA_I915 | 139 | config SND_HDA_I915 |
125 | bool | 140 | bool |
126 | default y | 141 | default y |
@@ -133,6 +148,9 @@ config SND_HDA_CODEC_CIRRUS | |||
133 | Say Y or M here to include Cirrus Logic codec support in | 148 | Say Y or M here to include Cirrus Logic codec support in |
134 | snd-hda-intel driver, such as CS4206. | 149 | snd-hda-intel driver, such as CS4206. |
135 | 150 | ||
151 | comment "Set to Y if you want auto-loading the codec driver" | ||
152 | depends on SND_HDA_INTEL=y && SND_HDA_CODEC_CIRRUS=m | ||
153 | |||
136 | config SND_HDA_CODEC_CONEXANT | 154 | config SND_HDA_CODEC_CONEXANT |
137 | tristate "Build Conexant HD-audio codec support" | 155 | tristate "Build Conexant HD-audio codec support" |
138 | select SND_HDA_GENERIC | 156 | select SND_HDA_GENERIC |
@@ -140,6 +158,9 @@ config SND_HDA_CODEC_CONEXANT | |||
140 | Say Y or M here to include Conexant HD-audio codec support in | 158 | Say Y or M here to include Conexant HD-audio codec support in |
141 | snd-hda-intel driver, such as CX20549. | 159 | snd-hda-intel driver, such as CX20549. |
142 | 160 | ||
161 | comment "Set to Y if you want auto-loading the codec driver" | ||
162 | depends on SND_HDA_INTEL=y && SND_HDA_CODEC_CONEXANT=m | ||
163 | |||
143 | config SND_HDA_CODEC_CA0110 | 164 | config SND_HDA_CODEC_CA0110 |
144 | tristate "Build Creative CA0110-IBG codec support" | 165 | tristate "Build Creative CA0110-IBG codec support" |
145 | select SND_HDA_GENERIC | 166 | select SND_HDA_GENERIC |
@@ -147,12 +168,18 @@ config SND_HDA_CODEC_CA0110 | |||
147 | Say Y or M here to include Creative CA0110-IBG codec support in | 168 | Say Y or M here to include Creative CA0110-IBG codec support in |
148 | snd-hda-intel driver, found on some Creative X-Fi cards. | 169 | snd-hda-intel driver, found on some Creative X-Fi cards. |
149 | 170 | ||
171 | comment "Set to Y if you want auto-loading the codec driver" | ||
172 | depends on SND_HDA_INTEL=y && SND_HDA_CODEC_CA0110=m | ||
173 | |||
150 | config SND_HDA_CODEC_CA0132 | 174 | config SND_HDA_CODEC_CA0132 |
151 | tristate "Build Creative CA0132 codec support" | 175 | tristate "Build Creative CA0132 codec support" |
152 | help | 176 | help |
153 | Say Y or M here to include Creative CA0132 codec support in | 177 | Say Y or M here to include Creative CA0132 codec support in |
154 | snd-hda-intel driver. | 178 | snd-hda-intel driver. |
155 | 179 | ||
180 | comment "Set to Y if you want auto-loading the codec driver" | ||
181 | depends on SND_HDA_INTEL=y && SND_HDA_CODEC_CA0132=m | ||
182 | |||
156 | config SND_HDA_CODEC_CA0132_DSP | 183 | config SND_HDA_CODEC_CA0132_DSP |
157 | bool "Support new DSP code for CA0132 codec" | 184 | bool "Support new DSP code for CA0132 codec" |
158 | depends on SND_HDA_CODEC_CA0132 | 185 | depends on SND_HDA_CODEC_CA0132 |
@@ -172,18 +199,27 @@ config SND_HDA_CODEC_CMEDIA | |||
172 | Say Y or M here to include C-Media HD-audio codec support in | 199 | Say Y or M here to include C-Media HD-audio codec support in |
173 | snd-hda-intel driver, such as CMI9880. | 200 | snd-hda-intel driver, such as CMI9880. |
174 | 201 | ||
202 | comment "Set to Y if you want auto-loading the codec driver" | ||
203 | depends on SND_HDA_INTEL=y && SND_HDA_CODEC_CMEDIA=m | ||
204 | |||
175 | config SND_HDA_CODEC_SI3054 | 205 | config SND_HDA_CODEC_SI3054 |
176 | tristate "Build Silicon Labs 3054 HD-modem codec support" | 206 | tristate "Build Silicon Labs 3054 HD-modem codec support" |
177 | help | 207 | help |
178 | Say Y or M here to include Silicon Labs 3054 HD-modem codec | 208 | Say Y or M here to include Silicon Labs 3054 HD-modem codec |
179 | (and compatibles) support in snd-hda-intel driver. | 209 | (and compatibles) support in snd-hda-intel driver. |
180 | 210 | ||
211 | comment "Set to Y if you want auto-loading the codec driver" | ||
212 | depends on SND_HDA_INTEL=y && SND_HDA_CODEC_SI3054=m | ||
213 | |||
181 | config SND_HDA_GENERIC | 214 | config SND_HDA_GENERIC |
182 | tristate "Enable generic HD-audio codec parser" | 215 | tristate "Enable generic HD-audio codec parser" |
183 | help | 216 | help |
184 | Say Y or M here to enable the generic HD-audio codec parser | 217 | Say Y or M here to enable the generic HD-audio codec parser |
185 | in snd-hda-intel driver. | 218 | in snd-hda-intel driver. |
186 | 219 | ||
220 | comment "Set to Y if you want auto-loading the codec driver" | ||
221 | depends on SND_HDA_INTEL=y && SND_HDA_GENERIC=m | ||
222 | |||
187 | config SND_HDA_POWER_SAVE_DEFAULT | 223 | config SND_HDA_POWER_SAVE_DEFAULT |
188 | int "Default time-out for HD-audio power-save mode" | 224 | int "Default time-out for HD-audio power-save mode" |
189 | depends on PM | 225 | depends on PM |