xref: /linux/sound/core/Makefile (revision d53b8e36925256097a08d7cb749198d85cbf9b2b)
1# SPDX-License-Identifier: GPL-2.0
2#
3# Makefile for ALSA
4# Copyright (c) 1999,2001 by Jaroslav Kysela <perex@perex.cz>
5#
6
7snd-y     := sound.o init.o memory.o control.o misc.o device.o
8ifneq ($(CONFIG_SND_PROC_FS),)
9snd-y += info.o
10snd-$(CONFIG_SND_OSSEMUL) += info_oss.o
11endif
12snd-$(CONFIG_ISA_DMA_API) += isadma.o
13snd-$(CONFIG_SND_OSSEMUL) += sound_oss.o
14snd-$(CONFIG_SND_VMASTER) += vmaster.o
15snd-$(CONFIG_SND_JACK)	  += ctljack.o jack.o
16
17snd-pcm-y := pcm.o pcm_native.o pcm_lib.o pcm_misc.o \
18		pcm_memory.o memalloc.o
19snd-pcm-$(CONFIG_SND_PCM_TIMER) += pcm_timer.o
20snd-pcm-$(CONFIG_SND_PCM_ELD) += pcm_drm_eld.o
21snd-pcm-$(CONFIG_SND_PCM_IEC958) += pcm_iec958.o
22
23# for trace-points
24CFLAGS_pcm_lib.o := -I$(src)
25CFLAGS_pcm_native.o := -I$(src)
26
27snd-pcm-dmaengine-y := pcm_dmaengine.o
28
29snd-ctl-led-y  := control_led.o
30snd-rawmidi-y  := rawmidi.o
31snd-ump-y      := ump.o
32snd-ump-$(CONFIG_SND_UMP_LEGACY_RAWMIDI) += ump_convert.o
33snd-timer-y    := timer.o
34snd-hrtimer-y  := hrtimer.o
35snd-hwdep-y    := hwdep.o
36snd-seq-device-y := seq_device.o
37
38snd-compress-y := compress_offload.o
39
40obj-$(CONFIG_SND) 		+= snd.o
41obj-$(CONFIG_SND_CTL_LED)	+= snd-ctl-led.o
42obj-$(CONFIG_SND_HWDEP)		+= snd-hwdep.o
43obj-$(CONFIG_SND_TIMER)		+= snd-timer.o
44obj-$(CONFIG_SND_HRTIMER)	+= snd-hrtimer.o
45obj-$(CONFIG_SND_PCM)		+= snd-pcm.o
46obj-$(CONFIG_SND_DMAENGINE_PCM)	+= snd-pcm-dmaengine.o
47obj-$(CONFIG_SND_SEQ_DEVICE)	+= snd-seq-device.o
48obj-$(CONFIG_SND_RAWMIDI)	+= snd-rawmidi.o
49obj-$(CONFIG_SND_UMP)		+= snd-ump.o
50
51obj-$(CONFIG_SND_CORE_TEST)	+= sound_kunit.o
52
53obj-$(CONFIG_SND_OSSEMUL)	+= oss/
54obj-$(CONFIG_SND_SEQUENCER)	+= seq/
55
56obj-$(CONFIG_SND_COMPRESS_OFFLOAD)	+= snd-compress.o
57