xref: /linux/sound/pci/hda/Makefile (revision 5ee46bfbb65fd971b734c3972ea9cc123fc869d1)
1# SPDX-License-Identifier: GPL-2.0
2snd-hda-intel-objs := hda_intel.o
3snd-hda-tegra-objs := hda_tegra.o
4
5snd-hda-codec-y := hda_bind.o hda_codec.o hda_jack.o hda_auto_parser.o hda_sysfs.o
6snd-hda-codec-y += hda_controller.o
7snd-hda-codec-$(CONFIG_SND_PROC_FS) += hda_proc.o
8
9snd-hda-codec-$(CONFIG_SND_HDA_HWDEP) += hda_hwdep.o
10snd-hda-codec-$(CONFIG_SND_HDA_INPUT_BEEP) += hda_beep.o
11
12# for trace-points
13CFLAGS_hda_controller.o := -I$(src)
14CFLAGS_hda_intel.o := -I$(src)
15
16snd-hda-codec-generic-objs :=	hda_generic.o
17snd-hda-codec-realtek-objs :=	patch_realtek.o
18snd-hda-codec-cmedia-objs :=	patch_cmedia.o
19snd-hda-codec-analog-objs :=	patch_analog.o
20snd-hda-codec-idt-objs :=	patch_sigmatel.o
21snd-hda-codec-si3054-objs :=	patch_si3054.o
22snd-hda-codec-cirrus-objs :=	patch_cirrus.o
23snd-hda-codec-cs8409-objs :=	patch_cs8409.o patch_cs8409-tables.o
24snd-hda-codec-ca0110-objs :=	patch_ca0110.o
25snd-hda-codec-ca0132-objs :=	patch_ca0132.o
26snd-hda-codec-conexant-objs :=	patch_conexant.o
27snd-hda-codec-via-objs :=	patch_via.o
28snd-hda-codec-hdmi-objs :=	patch_hdmi.o hda_eld.o
29
30# side codecs
31snd-hda-scodec-cs35l41-objs :=		cs35l41_hda.o
32snd-hda-scodec-cs35l41-i2c-objs :=	cs35l41_hda_i2c.o
33snd-hda-scodec-cs35l41-spi-objs :=	cs35l41_hda_spi.o
34
35# common driver
36obj-$(CONFIG_SND_HDA) := snd-hda-codec.o
37
38# codec drivers
39obj-$(CONFIG_SND_HDA_GENERIC) += snd-hda-codec-generic.o
40obj-$(CONFIG_SND_HDA_CODEC_REALTEK) += snd-hda-codec-realtek.o
41obj-$(CONFIG_SND_HDA_CODEC_CMEDIA) += snd-hda-codec-cmedia.o
42obj-$(CONFIG_SND_HDA_CODEC_ANALOG) += snd-hda-codec-analog.o
43obj-$(CONFIG_SND_HDA_CODEC_SIGMATEL) += snd-hda-codec-idt.o
44obj-$(CONFIG_SND_HDA_CODEC_SI3054) += snd-hda-codec-si3054.o
45obj-$(CONFIG_SND_HDA_CODEC_CIRRUS) += snd-hda-codec-cirrus.o
46obj-$(CONFIG_SND_HDA_CODEC_CS8409) += snd-hda-codec-cs8409.o
47obj-$(CONFIG_SND_HDA_CODEC_CA0110) += snd-hda-codec-ca0110.o
48obj-$(CONFIG_SND_HDA_CODEC_CA0132) += snd-hda-codec-ca0132.o
49obj-$(CONFIG_SND_HDA_CODEC_CONEXANT) += snd-hda-codec-conexant.o
50obj-$(CONFIG_SND_HDA_CODEC_VIA) += snd-hda-codec-via.o
51obj-$(CONFIG_SND_HDA_CODEC_HDMI) += snd-hda-codec-hdmi.o
52
53# side codecs
54obj-$(CONFIG_SND_HDA_SCODEC_CS35L41) += snd-hda-scodec-cs35l41.o
55obj-$(CONFIG_SND_HDA_SCODEC_CS35L41_I2C) += snd-hda-scodec-cs35l41-i2c.o
56obj-$(CONFIG_SND_HDA_SCODEC_CS35L41_SPI) += snd-hda-scodec-cs35l41-spi.o
57
58# this must be the last entry after codec drivers;
59# otherwise the codec patches won't be hooked before the PCI probe
60# when built in kernel
61obj-$(CONFIG_SND_HDA_INTEL) += snd-hda-intel.o
62obj-$(CONFIG_SND_HDA_TEGRA) += snd-hda-tegra.o
63