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>
This commit is contained in:
Dylan Reid 2014-02-28 15:41:32 -08:00 committed by Takashi Iwai
parent f0a220dedd
commit 78e34f34ac
3 changed files with 31 additions and 20 deletions

View file

@ -578,8 +578,6 @@ config SND_FM801_TEA575X_BOOL
FM801 chip with a TEA5757 tuner (MediaForte SF256-PCS, SF256-PCP and FM801 chip with a TEA5757 tuner (MediaForte SF256-PCS, SF256-PCP and
SF64-PCR) into the snd-fm801 driver. SF64-PCR) into the snd-fm801 driver.
source "sound/pci/hda/Kconfig"
config SND_HDSP config SND_HDSP
tristate "RME Hammerfall DSP Audio" tristate "RME Hammerfall DSP Audio"
select FW_LOADER select FW_LOADER
@ -889,3 +887,5 @@ config SND_YMFPCI
will be called snd-ymfpci. will be called snd-ymfpci.
endif # SND_PCI endif # SND_PCI
source "sound/pci/hda/Kconfig"

View file

@ -1,8 +1,15 @@
menuconfig SND_HDA_INTEL menu "HD-Audio"
tristate "Intel HD Audio"
config SND_HDA
tristate
select SND_PCM select SND_PCM
select SND_VMASTER select SND_VMASTER
select SND_KCTL_JACK select SND_KCTL_JACK
config SND_HDA_INTEL
tristate "HD Audio PCI"
depends on SND_PCI
select SND_HDA
help help
Say Y here to include support for Intel "High Definition Say Y here to include support for Intel "High Definition
Audio" (Azalia) and its compatible devices. Audio" (Azalia) and its compatible devices.
@ -13,7 +20,7 @@ menuconfig SND_HDA_INTEL
To compile this driver as a module, choose M here: the module To compile this driver as a module, choose M here: the module
will be called snd-hda-intel. will be called snd-hda-intel.
if SND_HDA_INTEL if SND_HDA
config SND_HDA_DSP_LOADER config SND_HDA_DSP_LOADER
bool bool
@ -49,7 +56,7 @@ config SND_HDA_RECONFIG
config SND_HDA_INPUT_BEEP config SND_HDA_INPUT_BEEP
bool "Support digital beep via input layer" bool "Support digital beep via input layer"
depends on INPUT=y || INPUT=SND_HDA_INTEL depends on INPUT=y || INPUT=SND_HDA
help help
Say Y here to build a digital beep interface for HD-audio Say Y here to build a digital beep interface for HD-audio
driver. This interface is used to generate digital beeps. driver. This interface is used to generate digital beeps.
@ -90,7 +97,7 @@ config SND_HDA_CODEC_REALTEK
snd-hda-intel driver, such as ALC880. snd-hda-intel driver, such as ALC880.
comment "Set to Y if you want auto-loading the codec driver" comment "Set to Y if you want auto-loading the codec driver"
depends on SND_HDA_INTEL=y && SND_HDA_CODEC_REALTEK=m depends on SND_HDA=y && SND_HDA_CODEC_REALTEK=m
config SND_HDA_CODEC_ANALOG config SND_HDA_CODEC_ANALOG
tristate "Build Analog Device HD-audio codec support" tristate "Build Analog Device HD-audio codec support"
@ -100,7 +107,7 @@ config SND_HDA_CODEC_ANALOG
snd-hda-intel driver, such as AD1986A. snd-hda-intel driver, such as AD1986A.
comment "Set to Y if you want auto-loading the codec driver" comment "Set to Y if you want auto-loading the codec driver"
depends on SND_HDA_INTEL=y && SND_HDA_CODEC_ANALOG=m depends on SND_HDA=y && SND_HDA_CODEC_ANALOG=m
config SND_HDA_CODEC_SIGMATEL config SND_HDA_CODEC_SIGMATEL
tristate "Build IDT/Sigmatel HD-audio codec support" tristate "Build IDT/Sigmatel HD-audio codec support"
@ -110,7 +117,7 @@ config SND_HDA_CODEC_SIGMATEL
snd-hda-intel driver, such as STAC9200. snd-hda-intel driver, such as STAC9200.
comment "Set to Y if you want auto-loading the codec driver" comment "Set to Y if you want auto-loading the codec driver"
depends on SND_HDA_INTEL=y && SND_HDA_CODEC_SIGMATEL=m depends on SND_HDA=y && SND_HDA_CODEC_SIGMATEL=m
config SND_HDA_CODEC_VIA config SND_HDA_CODEC_VIA
tristate "Build VIA HD-audio codec support" tristate "Build VIA HD-audio codec support"
@ -120,7 +127,7 @@ config SND_HDA_CODEC_VIA
snd-hda-intel driver, such as VT1708. snd-hda-intel driver, such as VT1708.
comment "Set to Y if you want auto-loading the codec driver" comment "Set to Y if you want auto-loading the codec driver"
depends on SND_HDA_INTEL=y && SND_HDA_CODEC_VIA=m depends on SND_HDA=y && SND_HDA_CODEC_VIA=m
config SND_HDA_CODEC_HDMI config SND_HDA_CODEC_HDMI
tristate "Build HDMI/DisplayPort HD-audio codec support" tristate "Build HDMI/DisplayPort HD-audio codec support"
@ -130,7 +137,7 @@ config SND_HDA_CODEC_HDMI
Intel and Nvidia HDMI/DisplayPort codecs. Intel and Nvidia HDMI/DisplayPort codecs.
comment "Set to Y if you want auto-loading the codec driver" comment "Set to Y if you want auto-loading the codec driver"
depends on SND_HDA_INTEL=y && SND_HDA_CODEC_HDMI=m depends on SND_HDA=y && SND_HDA_CODEC_HDMI=m
config SND_HDA_I915 config SND_HDA_I915
bool bool
@ -145,7 +152,7 @@ config SND_HDA_CODEC_CIRRUS
snd-hda-intel driver, such as CS4206. snd-hda-intel driver, such as CS4206.
comment "Set to Y if you want auto-loading the codec driver" comment "Set to Y if you want auto-loading the codec driver"
depends on SND_HDA_INTEL=y && SND_HDA_CODEC_CIRRUS=m depends on SND_HDA=y && SND_HDA_CODEC_CIRRUS=m
config SND_HDA_CODEC_CONEXANT config SND_HDA_CODEC_CONEXANT
tristate "Build Conexant HD-audio codec support" tristate "Build Conexant HD-audio codec support"
@ -155,7 +162,7 @@ config SND_HDA_CODEC_CONEXANT
snd-hda-intel driver, such as CX20549. snd-hda-intel driver, such as CX20549.
comment "Set to Y if you want auto-loading the codec driver" comment "Set to Y if you want auto-loading the codec driver"
depends on SND_HDA_INTEL=y && SND_HDA_CODEC_CONEXANT=m depends on SND_HDA=y && SND_HDA_CODEC_CONEXANT=m
config SND_HDA_CODEC_CA0110 config SND_HDA_CODEC_CA0110
tristate "Build Creative CA0110-IBG codec support" tristate "Build Creative CA0110-IBG codec support"
@ -165,7 +172,7 @@ config SND_HDA_CODEC_CA0110
snd-hda-intel driver, found on some Creative X-Fi cards. snd-hda-intel driver, found on some Creative X-Fi cards.
comment "Set to Y if you want auto-loading the codec driver" comment "Set to Y if you want auto-loading the codec driver"
depends on SND_HDA_INTEL=y && SND_HDA_CODEC_CA0110=m depends on SND_HDA=y && SND_HDA_CODEC_CA0110=m
config SND_HDA_CODEC_CA0132 config SND_HDA_CODEC_CA0132
tristate "Build Creative CA0132 codec support" tristate "Build Creative CA0132 codec support"
@ -174,7 +181,7 @@ config SND_HDA_CODEC_CA0132
snd-hda-intel driver. snd-hda-intel driver.
comment "Set to Y if you want auto-loading the codec driver" comment "Set to Y if you want auto-loading the codec driver"
depends on SND_HDA_INTEL=y && SND_HDA_CODEC_CA0132=m depends on SND_HDA=y && SND_HDA_CODEC_CA0132=m
config SND_HDA_CODEC_CA0132_DSP config SND_HDA_CODEC_CA0132_DSP
bool "Support new DSP code for CA0132 codec" bool "Support new DSP code for CA0132 codec"
@ -196,7 +203,7 @@ config SND_HDA_CODEC_CMEDIA
snd-hda-intel driver, such as CMI9880. snd-hda-intel driver, such as CMI9880.
comment "Set to Y if you want auto-loading the codec driver" comment "Set to Y if you want auto-loading the codec driver"
depends on SND_HDA_INTEL=y && SND_HDA_CODEC_CMEDIA=m depends on SND_HDA=y && SND_HDA_CODEC_CMEDIA=m
config SND_HDA_CODEC_SI3054 config SND_HDA_CODEC_SI3054
tristate "Build Silicon Labs 3054 HD-modem codec support" tristate "Build Silicon Labs 3054 HD-modem codec support"
@ -205,7 +212,7 @@ config SND_HDA_CODEC_SI3054
(and compatibles) support in snd-hda-intel driver. (and compatibles) support in snd-hda-intel driver.
comment "Set to Y if you want auto-loading the codec driver" comment "Set to Y if you want auto-loading the codec driver"
depends on SND_HDA_INTEL=y && SND_HDA_CODEC_SI3054=m depends on SND_HDA=y && SND_HDA_CODEC_SI3054=m
config SND_HDA_GENERIC config SND_HDA_GENERIC
tristate "Enable generic HD-audio codec parser" tristate "Enable generic HD-audio codec parser"
@ -214,7 +221,7 @@ config SND_HDA_GENERIC
in snd-hda-intel driver. in snd-hda-intel driver.
comment "Set to Y if you want auto-loading the codec driver" comment "Set to Y if you want auto-loading the codec driver"
depends on SND_HDA_INTEL=y && SND_HDA_GENERIC=m depends on SND_HDA=y && SND_HDA_GENERIC=m
config SND_HDA_POWER_SAVE_DEFAULT config SND_HDA_POWER_SAVE_DEFAULT
int "Default time-out for HD-audio power-save mode" int "Default time-out for HD-audio power-save mode"
@ -225,3 +232,5 @@ config SND_HDA_POWER_SAVE_DEFAULT
power-save mode. 0 means to disable the power-save mode. power-save mode. 0 means to disable the power-save mode.
endif endif
endmenu

View file

@ -1,4 +1,5 @@
snd-hda-intel-objs := hda_controller.o hda_intel.o snd-hda-intel-objs := hda_intel.o
snd-hda-controller-objs := hda_controller.o
# for haswell power well # for haswell power well
snd-hda-intel-$(CONFIG_SND_HDA_I915) += hda_i915.o snd-hda-intel-$(CONFIG_SND_HDA_I915) += hda_i915.o
@ -25,7 +26,8 @@ snd-hda-codec-via-objs := patch_via.o
snd-hda-codec-hdmi-objs := patch_hdmi.o hda_eld.o snd-hda-codec-hdmi-objs := patch_hdmi.o hda_eld.o
# common driver # common driver
obj-$(CONFIG_SND_HDA_INTEL) := snd-hda-codec.o obj-$(CONFIG_SND_HDA) := snd-hda-codec.o
obj-$(CONFIG_SND_HDA) += snd-hda-controller.o
# codec drivers # codec drivers
obj-$(CONFIG_SND_HDA_GENERIC) += snd-hda-codec-generic.o obj-$(CONFIG_SND_HDA_GENERIC) += snd-hda-codec-generic.o