xref: /openbmc/linux/sound/pci/hda/Makefile (revision e8e0929d)
1snd-hda-intel-objs := hda_intel.o
2
3snd-hda-codec-y := hda_codec.o
4snd-hda-codec-$(CONFIG_SND_HDA_GENERIC) += hda_generic.o
5snd-hda-codec-$(CONFIG_PROC_FS) += hda_proc.o
6# snd-hda-codec-$(CONFIG_SND_HDA_ELD) += hda_eld.o
7snd-hda-codec-$(CONFIG_SND_HDA_HWDEP) += hda_hwdep.o
8snd-hda-codec-$(CONFIG_SND_HDA_INPUT_BEEP) += hda_beep.o
9
10snd-hda-codec-realtek-objs :=	patch_realtek.o
11snd-hda-codec-cmedia-objs :=	patch_cmedia.o
12snd-hda-codec-analog-objs :=	patch_analog.o
13snd-hda-codec-idt-objs :=	patch_sigmatel.o
14snd-hda-codec-si3054-objs :=	patch_si3054.o
15snd-hda-codec-atihdmi-objs :=	patch_atihdmi.o
16snd-hda-codec-cirrus-objs :=	patch_cirrus.o
17snd-hda-codec-ca0110-objs :=	patch_ca0110.o
18snd-hda-codec-conexant-objs :=	patch_conexant.o
19snd-hda-codec-via-objs :=	patch_via.o
20snd-hda-codec-nvhdmi-objs :=	patch_nvhdmi.o
21snd-hda-codec-intelhdmi-objs :=	patch_intelhdmi.o hda_eld.o
22
23# common driver
24obj-$(CONFIG_SND_HDA_INTEL) := snd-hda-codec.o
25
26# codec drivers (note: CONFIG_SND_HDA_CODEC_XXX are booleans)
27ifdef CONFIG_SND_HDA_CODEC_REALTEK
28obj-$(CONFIG_SND_HDA_INTEL) += snd-hda-codec-realtek.o
29endif
30ifdef CONFIG_SND_HDA_CODEC_CMEDIA
31obj-$(CONFIG_SND_HDA_INTEL) += snd-hda-codec-cmedia.o
32endif
33ifdef CONFIG_SND_HDA_CODEC_ANALOG
34obj-$(CONFIG_SND_HDA_INTEL) += snd-hda-codec-analog.o
35endif
36ifdef CONFIG_SND_HDA_CODEC_SIGMATEL
37obj-$(CONFIG_SND_HDA_INTEL) += snd-hda-codec-idt.o
38endif
39ifdef CONFIG_SND_HDA_CODEC_SI3054
40obj-$(CONFIG_SND_HDA_INTEL) += snd-hda-codec-si3054.o
41endif
42ifdef CONFIG_SND_HDA_CODEC_ATIHDMI
43obj-$(CONFIG_SND_HDA_INTEL) += snd-hda-codec-atihdmi.o
44endif
45ifdef CONFIG_SND_HDA_CODEC_CIRRUS
46obj-$(CONFIG_SND_HDA_INTEL) += snd-hda-codec-cirrus.o
47endif
48ifdef CONFIG_SND_HDA_CODEC_CA0110
49obj-$(CONFIG_SND_HDA_INTEL) += snd-hda-codec-ca0110.o
50endif
51ifdef CONFIG_SND_HDA_CODEC_CONEXANT
52obj-$(CONFIG_SND_HDA_INTEL) += snd-hda-codec-conexant.o
53endif
54ifdef CONFIG_SND_HDA_CODEC_VIA
55obj-$(CONFIG_SND_HDA_INTEL) += snd-hda-codec-via.o
56endif
57ifdef CONFIG_SND_HDA_CODEC_NVHDMI
58obj-$(CONFIG_SND_HDA_INTEL) += snd-hda-codec-nvhdmi.o
59endif
60ifdef CONFIG_SND_HDA_CODEC_INTELHDMI
61obj-$(CONFIG_SND_HDA_INTEL) += snd-hda-codec-intelhdmi.o
62endif
63
64# this must be the last entry after codec drivers;
65# otherwise the codec patches won't be hooked before the PCI probe
66# when built in kernel
67obj-$(CONFIG_SND_HDA_INTEL) += snd-hda-intel.o
68