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