diff options
author | Dylan Reid <dgreid@chromium.org> | 2014-02-28 18:41:32 -0500 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2014-03-01 05:23:55 -0500 |
commit | 78e34f34ac27c9c25c6db58d05129994bed9ec25 (patch) | |
tree | d3c56faadcab903a9092b2dc3ceb04495577ff55 /sound/pci | |
parent | f0a220dedd59e23cec7a9a057b3f2f415f47fac6 (diff) |
ALSA: hda - remove PCI dependency in Kconfig
Remove the dependency on CONFIG_PCI for building hda codec drivers so
that platforms with HDA attach via means other than PCI can use them.
This was as suggested by tiwai.
Signed-off-by: Dylan Reid <dgreid@chromium.org>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'sound/pci')
-rw-r--r-- | sound/pci/Kconfig | 4 | ||||
-rw-r--r-- | sound/pci/hda/Kconfig | 41 | ||||
-rw-r--r-- | sound/pci/hda/Makefile | 6 |
3 files changed, 31 insertions, 20 deletions
diff --git a/sound/pci/Kconfig b/sound/pci/Kconfig index 8756c8e32922..56d93bf45025 100644 --- a/sound/pci/Kconfig +++ b/sound/pci/Kconfig | |||
@@ -578,8 +578,6 @@ config SND_FM801_TEA575X_BOOL | |||
578 | FM801 chip with a TEA5757 tuner (MediaForte SF256-PCS, SF256-PCP and | 578 | FM801 chip with a TEA5757 tuner (MediaForte SF256-PCS, SF256-PCP and |
579 | SF64-PCR) into the snd-fm801 driver. | 579 | SF64-PCR) into the snd-fm801 driver. |
580 | 580 | ||
581 | source "sound/pci/hda/Kconfig" | ||
582 | |||
583 | config SND_HDSP | 581 | config SND_HDSP |
584 | tristate "RME Hammerfall DSP Audio" | 582 | tristate "RME Hammerfall DSP Audio" |
585 | select FW_LOADER | 583 | select FW_LOADER |
@@ -889,3 +887,5 @@ config SND_YMFPCI | |||
889 | will be called snd-ymfpci. | 887 | will be called snd-ymfpci. |
890 | 888 | ||
891 | endif # SND_PCI | 889 | endif # SND_PCI |
890 | |||
891 | source "sound/pci/hda/Kconfig" | ||
diff --git a/sound/pci/hda/Kconfig b/sound/pci/hda/Kconfig index f2032dd7e35e..ac17c3fc9388 100644 --- a/sound/pci/hda/Kconfig +++ b/sound/pci/hda/Kconfig | |||
@@ -1,8 +1,15 @@ | |||
1 | menuconfig SND_HDA_INTEL | 1 | menu "HD-Audio" |
2 | tristate "Intel HD Audio" | 2 | |
3 | config SND_HDA | ||
4 | tristate | ||
3 | select SND_PCM | 5 | select SND_PCM |
4 | select SND_VMASTER | 6 | select SND_VMASTER |
5 | select SND_KCTL_JACK | 7 | select SND_KCTL_JACK |
8 | |||
9 | config SND_HDA_INTEL | ||
10 | tristate "HD Audio PCI" | ||
11 | depends on SND_PCI | ||
12 | select SND_HDA | ||
6 | help | 13 | help |
7 | Say Y here to include support for Intel "High Definition | 14 | Say Y here to include support for Intel "High Definition |
8 | Audio" (Azalia) and its compatible devices. | 15 | Audio" (Azalia) and its compatible devices. |
@@ -13,7 +20,7 @@ menuconfig SND_HDA_INTEL | |||
13 | To compile this driver as a module, choose M here: the module | 20 | To compile this driver as a module, choose M here: the module |
14 | will be called snd-hda-intel. | 21 | will be called snd-hda-intel. |
15 | 22 | ||
16 | if SND_HDA_INTEL | 23 | if SND_HDA |
17 | 24 | ||
18 | config SND_HDA_DSP_LOADER | 25 | config SND_HDA_DSP_LOADER |
19 | bool | 26 | bool |
@@ -49,7 +56,7 @@ config SND_HDA_RECONFIG | |||
49 | 56 | ||
50 | config SND_HDA_INPUT_BEEP | 57 | config SND_HDA_INPUT_BEEP |
51 | bool "Support digital beep via input layer" | 58 | bool "Support digital beep via input layer" |
52 | depends on INPUT=y || INPUT=SND_HDA_INTEL | 59 | depends on INPUT=y || INPUT=SND_HDA |
53 | help | 60 | help |
54 | Say Y here to build a digital beep interface for HD-audio | 61 | Say Y here to build a digital beep interface for HD-audio |
55 | driver. This interface is used to generate digital beeps. | 62 | driver. This interface is used to generate digital beeps. |
@@ -90,7 +97,7 @@ config SND_HDA_CODEC_REALTEK | |||
90 | snd-hda-intel driver, such as ALC880. | 97 | snd-hda-intel driver, such as ALC880. |
91 | 98 | ||
92 | comment "Set to Y if you want auto-loading the codec driver" | 99 | comment "Set to Y if you want auto-loading the codec driver" |
93 | depends on SND_HDA_INTEL=y && SND_HDA_CODEC_REALTEK=m | 100 | depends on SND_HDA=y && SND_HDA_CODEC_REALTEK=m |
94 | 101 | ||
95 | config SND_HDA_CODEC_ANALOG | 102 | config SND_HDA_CODEC_ANALOG |
96 | tristate "Build Analog Device HD-audio codec support" | 103 | tristate "Build Analog Device HD-audio codec support" |
@@ -100,7 +107,7 @@ config SND_HDA_CODEC_ANALOG | |||
100 | snd-hda-intel driver, such as AD1986A. | 107 | snd-hda-intel driver, such as AD1986A. |
101 | 108 | ||
102 | comment "Set to Y if you want auto-loading the codec driver" | 109 | comment "Set to Y if you want auto-loading the codec driver" |
103 | depends on SND_HDA_INTEL=y && SND_HDA_CODEC_ANALOG=m | 110 | depends on SND_HDA=y && SND_HDA_CODEC_ANALOG=m |
104 | 111 | ||
105 | config SND_HDA_CODEC_SIGMATEL | 112 | config SND_HDA_CODEC_SIGMATEL |
106 | tristate "Build IDT/Sigmatel HD-audio codec support" | 113 | tristate "Build IDT/Sigmatel HD-audio codec support" |
@@ -110,7 +117,7 @@ config SND_HDA_CODEC_SIGMATEL | |||
110 | snd-hda-intel driver, such as STAC9200. | 117 | snd-hda-intel driver, such as STAC9200. |
111 | 118 | ||
112 | comment "Set to Y if you want auto-loading the codec driver" | 119 | comment "Set to Y if you want auto-loading the codec driver" |
113 | depends on SND_HDA_INTEL=y && SND_HDA_CODEC_SIGMATEL=m | 120 | depends on SND_HDA=y && SND_HDA_CODEC_SIGMATEL=m |
114 | 121 | ||
115 | config SND_HDA_CODEC_VIA | 122 | config SND_HDA_CODEC_VIA |
116 | tristate "Build VIA HD-audio codec support" | 123 | tristate "Build VIA HD-audio codec support" |
@@ -120,7 +127,7 @@ config SND_HDA_CODEC_VIA | |||
120 | snd-hda-intel driver, such as VT1708. | 127 | snd-hda-intel driver, such as VT1708. |
121 | 128 | ||
122 | comment "Set to Y if you want auto-loading the codec driver" | 129 | comment "Set to Y if you want auto-loading the codec driver" |
123 | depends on SND_HDA_INTEL=y && SND_HDA_CODEC_VIA=m | 130 | depends on SND_HDA=y && SND_HDA_CODEC_VIA=m |
124 | 131 | ||
125 | config SND_HDA_CODEC_HDMI | 132 | config SND_HDA_CODEC_HDMI |
126 | tristate "Build HDMI/DisplayPort HD-audio codec support" | 133 | tristate "Build HDMI/DisplayPort HD-audio codec support" |
@@ -130,7 +137,7 @@ config SND_HDA_CODEC_HDMI | |||
130 | Intel and Nvidia HDMI/DisplayPort codecs. | 137 | Intel and Nvidia HDMI/DisplayPort codecs. |
131 | 138 | ||
132 | comment "Set to Y if you want auto-loading the codec driver" | 139 | comment "Set to Y if you want auto-loading the codec driver" |
133 | depends on SND_HDA_INTEL=y && SND_HDA_CODEC_HDMI=m | 140 | depends on SND_HDA=y && SND_HDA_CODEC_HDMI=m |
134 | 141 | ||
135 | config SND_HDA_I915 | 142 | config SND_HDA_I915 |
136 | bool | 143 | bool |
@@ -145,7 +152,7 @@ config SND_HDA_CODEC_CIRRUS | |||
145 | snd-hda-intel driver, such as CS4206. | 152 | snd-hda-intel driver, such as CS4206. |
146 | 153 | ||
147 | comment "Set to Y if you want auto-loading the codec driver" | 154 | comment "Set to Y if you want auto-loading the codec driver" |
148 | depends on SND_HDA_INTEL=y && SND_HDA_CODEC_CIRRUS=m | 155 | depends on SND_HDA=y && SND_HDA_CODEC_CIRRUS=m |
149 | 156 | ||
150 | config SND_HDA_CODEC_CONEXANT | 157 | config SND_HDA_CODEC_CONEXANT |
151 | tristate "Build Conexant HD-audio codec support" | 158 | tristate "Build Conexant HD-audio codec support" |
@@ -155,7 +162,7 @@ config SND_HDA_CODEC_CONEXANT | |||
155 | snd-hda-intel driver, such as CX20549. | 162 | snd-hda-intel driver, such as CX20549. |
156 | 163 | ||
157 | comment "Set to Y if you want auto-loading the codec driver" | 164 | comment "Set to Y if you want auto-loading the codec driver" |
158 | depends on SND_HDA_INTEL=y && SND_HDA_CODEC_CONEXANT=m | 165 | depends on SND_HDA=y && SND_HDA_CODEC_CONEXANT=m |
159 | 166 | ||
160 | config SND_HDA_CODEC_CA0110 | 167 | config SND_HDA_CODEC_CA0110 |
161 | tristate "Build Creative CA0110-IBG codec support" | 168 | tristate "Build Creative CA0110-IBG codec support" |
@@ -165,7 +172,7 @@ config SND_HDA_CODEC_CA0110 | |||
165 | snd-hda-intel driver, found on some Creative X-Fi cards. | 172 | snd-hda-intel driver, found on some Creative X-Fi cards. |
166 | 173 | ||
167 | comment "Set to Y if you want auto-loading the codec driver" | 174 | comment "Set to Y if you want auto-loading the codec driver" |
168 | depends on SND_HDA_INTEL=y && SND_HDA_CODEC_CA0110=m | 175 | depends on SND_HDA=y && SND_HDA_CODEC_CA0110=m |
169 | 176 | ||
170 | config SND_HDA_CODEC_CA0132 | 177 | config SND_HDA_CODEC_CA0132 |
171 | tristate "Build Creative CA0132 codec support" | 178 | tristate "Build Creative CA0132 codec support" |
@@ -174,7 +181,7 @@ config SND_HDA_CODEC_CA0132 | |||
174 | snd-hda-intel driver. | 181 | snd-hda-intel driver. |
175 | 182 | ||
176 | comment "Set to Y if you want auto-loading the codec driver" | 183 | comment "Set to Y if you want auto-loading the codec driver" |
177 | depends on SND_HDA_INTEL=y && SND_HDA_CODEC_CA0132=m | 184 | depends on SND_HDA=y && SND_HDA_CODEC_CA0132=m |
178 | 185 | ||
179 | config SND_HDA_CODEC_CA0132_DSP | 186 | config SND_HDA_CODEC_CA0132_DSP |
180 | bool "Support new DSP code for CA0132 codec" | 187 | bool "Support new DSP code for CA0132 codec" |
@@ -196,7 +203,7 @@ config SND_HDA_CODEC_CMEDIA | |||
196 | snd-hda-intel driver, such as CMI9880. | 203 | snd-hda-intel driver, such as CMI9880. |
197 | 204 | ||
198 | comment "Set to Y if you want auto-loading the codec driver" | 205 | comment "Set to Y if you want auto-loading the codec driver" |
199 | depends on SND_HDA_INTEL=y && SND_HDA_CODEC_CMEDIA=m | 206 | depends on SND_HDA=y && SND_HDA_CODEC_CMEDIA=m |
200 | 207 | ||
201 | config SND_HDA_CODEC_SI3054 | 208 | config SND_HDA_CODEC_SI3054 |
202 | tristate "Build Silicon Labs 3054 HD-modem codec support" | 209 | tristate "Build Silicon Labs 3054 HD-modem codec support" |
@@ -205,7 +212,7 @@ config SND_HDA_CODEC_SI3054 | |||
205 | (and compatibles) support in snd-hda-intel driver. | 212 | (and compatibles) support in snd-hda-intel driver. |
206 | 213 | ||
207 | comment "Set to Y if you want auto-loading the codec driver" | 214 | comment "Set to Y if you want auto-loading the codec driver" |
208 | depends on SND_HDA_INTEL=y && SND_HDA_CODEC_SI3054=m | 215 | depends on SND_HDA=y && SND_HDA_CODEC_SI3054=m |
209 | 216 | ||
210 | config SND_HDA_GENERIC | 217 | config SND_HDA_GENERIC |
211 | tristate "Enable generic HD-audio codec parser" | 218 | tristate "Enable generic HD-audio codec parser" |
@@ -214,7 +221,7 @@ config SND_HDA_GENERIC | |||
214 | in snd-hda-intel driver. | 221 | in snd-hda-intel driver. |
215 | 222 | ||
216 | comment "Set to Y if you want auto-loading the codec driver" | 223 | comment "Set to Y if you want auto-loading the codec driver" |
217 | depends on SND_HDA_INTEL=y && SND_HDA_GENERIC=m | 224 | depends on SND_HDA=y && SND_HDA_GENERIC=m |
218 | 225 | ||
219 | config SND_HDA_POWER_SAVE_DEFAULT | 226 | config SND_HDA_POWER_SAVE_DEFAULT |
220 | int "Default time-out for HD-audio power-save mode" | 227 | int "Default time-out for HD-audio power-save mode" |
@@ -225,3 +232,5 @@ config SND_HDA_POWER_SAVE_DEFAULT | |||
225 | power-save mode. 0 means to disable the power-save mode. | 232 | power-save mode. 0 means to disable the power-save mode. |
226 | 233 | ||
227 | endif | 234 | endif |
235 | |||
236 | endmenu | ||
diff --git a/sound/pci/hda/Makefile b/sound/pci/hda/Makefile index 5deef4febdea..d0d0c19ddfc2 100644 --- a/sound/pci/hda/Makefile +++ b/sound/pci/hda/Makefile | |||
@@ -1,4 +1,5 @@ | |||
1 | snd-hda-intel-objs := hda_controller.o hda_intel.o | 1 | snd-hda-intel-objs := hda_intel.o |
2 | snd-hda-controller-objs := hda_controller.o | ||
2 | # for haswell power well | 3 | # for haswell power well |
3 | snd-hda-intel-$(CONFIG_SND_HDA_I915) += hda_i915.o | 4 | snd-hda-intel-$(CONFIG_SND_HDA_I915) += hda_i915.o |
4 | 5 | ||
@@ -25,7 +26,8 @@ snd-hda-codec-via-objs := patch_via.o | |||
25 | snd-hda-codec-hdmi-objs := patch_hdmi.o hda_eld.o | 26 | snd-hda-codec-hdmi-objs := patch_hdmi.o hda_eld.o |
26 | 27 | ||
27 | # common driver | 28 | # common driver |
28 | obj-$(CONFIG_SND_HDA_INTEL) := snd-hda-codec.o | 29 | obj-$(CONFIG_SND_HDA) := snd-hda-codec.o |
30 | obj-$(CONFIG_SND_HDA) += snd-hda-controller.o | ||
29 | 31 | ||
30 | # codec drivers | 32 | # codec drivers |
31 | obj-$(CONFIG_SND_HDA_GENERIC) += snd-hda-codec-generic.o | 33 | obj-$(CONFIG_SND_HDA_GENERIC) += snd-hda-codec-generic.o |