xref: /linux/sound/pci/hda/Makefile (revision d53b8e36925256097a08d7cb749198d85cbf9b2b)
1# SPDX-License-Identifier: GPL-2.0
2snd-hda-intel-y := hda_intel.o
3snd-hda-tegra-y := 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-y :=	hda_generic.o
17snd-hda-codec-realtek-y :=	patch_realtek.o
18snd-hda-codec-cmedia-y :=	patch_cmedia.o
19snd-hda-codec-analog-y :=	patch_analog.o
20snd-hda-codec-idt-y :=		patch_sigmatel.o
21snd-hda-codec-si3054-y :=	patch_si3054.o
22snd-hda-codec-cirrus-y :=	patch_cirrus.o
23snd-hda-codec-cs8409-y :=	patch_cs8409.o patch_cs8409-tables.o
24snd-hda-codec-ca0110-y :=	patch_ca0110.o
25snd-hda-codec-ca0132-y :=	patch_ca0132.o
26snd-hda-codec-conexant-y :=	patch_conexant.o
27snd-hda-codec-senarytech-y :=patch_senarytech.o
28snd-hda-codec-via-y :=		patch_via.o
29snd-hda-codec-hdmi-y :=		patch_hdmi.o hda_eld.o
30
31# side codecs
32snd-hda-cirrus-scodec-y :=	cirrus_scodec.o
33snd-hda-cirrus-scodec-test-y :=	cirrus_scodec_test.o
34snd-hda-scodec-cs35l41-y :=	cs35l41_hda.o cs35l41_hda_property.o
35snd-hda-scodec-cs35l41-i2c-y :=	cs35l41_hda_i2c.o
36snd-hda-scodec-cs35l41-spi-y :=	cs35l41_hda_spi.o
37snd-hda-scodec-cs35l56-y :=	cs35l56_hda.o
38snd-hda-scodec-cs35l56-i2c-y :=	cs35l56_hda_i2c.o
39snd-hda-scodec-cs35l56-spi-y :=	cs35l56_hda_spi.o
40snd-hda-cs-dsp-ctls-y :=	hda_cs_dsp_ctl.o
41snd-hda-scodec-component-y :=	hda_component.o
42snd-hda-scodec-tas2781-i2c-y :=	tas2781_hda_i2c.o
43
44# common driver
45obj-$(CONFIG_SND_HDA) := snd-hda-codec.o
46
47# codec drivers
48obj-$(CONFIG_SND_HDA_GENERIC) += snd-hda-codec-generic.o
49obj-$(CONFIG_SND_HDA_CODEC_REALTEK) += snd-hda-codec-realtek.o
50obj-$(CONFIG_SND_HDA_CODEC_CMEDIA) += snd-hda-codec-cmedia.o
51obj-$(CONFIG_SND_HDA_CODEC_ANALOG) += snd-hda-codec-analog.o
52obj-$(CONFIG_SND_HDA_CODEC_SIGMATEL) += snd-hda-codec-idt.o
53obj-$(CONFIG_SND_HDA_CODEC_SI3054) += snd-hda-codec-si3054.o
54obj-$(CONFIG_SND_HDA_CODEC_CIRRUS) += snd-hda-codec-cirrus.o
55obj-$(CONFIG_SND_HDA_CODEC_CS8409) += snd-hda-codec-cs8409.o
56obj-$(CONFIG_SND_HDA_CODEC_CA0110) += snd-hda-codec-ca0110.o
57obj-$(CONFIG_SND_HDA_CODEC_CA0132) += snd-hda-codec-ca0132.o
58obj-$(CONFIG_SND_HDA_CODEC_CONEXANT) += snd-hda-codec-conexant.o
59obj-$(CONFIG_SND_HDA_CODEC_SENARYTECH) += snd-hda-codec-senarytech.o
60obj-$(CONFIG_SND_HDA_CODEC_VIA) += snd-hda-codec-via.o
61obj-$(CONFIG_SND_HDA_CODEC_HDMI) += snd-hda-codec-hdmi.o
62
63# side codecs
64obj-$(CONFIG_SND_HDA_CIRRUS_SCODEC) += snd-hda-cirrus-scodec.o
65obj-$(CONFIG_SND_HDA_CIRRUS_SCODEC_KUNIT_TEST) += snd-hda-cirrus-scodec-test.o
66obj-$(CONFIG_SND_HDA_SCODEC_CS35L41) += snd-hda-scodec-cs35l41.o
67obj-$(CONFIG_SND_HDA_SCODEC_CS35L41_I2C) += snd-hda-scodec-cs35l41-i2c.o
68obj-$(CONFIG_SND_HDA_SCODEC_CS35L41_SPI) += snd-hda-scodec-cs35l41-spi.o
69obj-$(CONFIG_SND_HDA_SCODEC_CS35L56) += snd-hda-scodec-cs35l56.o
70obj-$(CONFIG_SND_HDA_SCODEC_CS35L56_I2C) += snd-hda-scodec-cs35l56-i2c.o
71obj-$(CONFIG_SND_HDA_SCODEC_CS35L56_SPI) += snd-hda-scodec-cs35l56-spi.o
72obj-$(CONFIG_SND_HDA_CS_DSP_CONTROLS) += snd-hda-cs-dsp-ctls.o
73obj-$(CONFIG_SND_HDA_SCODEC_COMPONENT) += snd-hda-scodec-component.o
74obj-$(CONFIG_SND_HDA_SCODEC_TAS2781_I2C) += snd-hda-scodec-tas2781-i2c.o
75
76# this must be the last entry after codec drivers;
77# otherwise the codec patches won't be hooked before the PCI probe
78# when built in kernel
79obj-$(CONFIG_SND_HDA_INTEL) += snd-hda-intel.o
80obj-$(CONFIG_SND_HDA_TEGRA) += snd-hda-tegra.o
81