blob: 79e1407cd0de791d1412765b2840453ae16f5f19 [file] [log] [blame]
Greg Kroah-Hartmanb2441312017-11-01 15:07:57 +01001# SPDX-License-Identifier: GPL-2.0
Linus Torvalds1da177e2005-04-16 15:20:36 -07002#
3# Makefile for ALSA
Jaroslav Kyselac1017a42007-10-15 09:50:19 +02004# Copyright (c) 1999,2001 by Jaroslav Kysela <perex@perex.cz>
Linus Torvalds1da177e2005-04-16 15:20:36 -07005#
6
Takashi Iwai85d14312015-04-23 10:34:34 +02007snd-y := sound.o init.o memory.o control.o misc.o device.o
Jie Yangcd6a6502015-05-27 19:45:45 +08008ifneq ($(CONFIG_SND_PROC_FS),)
Takashi Iwai85d14312015-04-23 10:34:34 +02009snd-y += info.o
10snd-$(CONFIG_SND_OSSEMUL) += info_oss.o
11endif
Randy Dunlap3c05f142021-10-15 23:26:02 -070012ifneq ($(CONFIG_M68K),y)
Takashi Iwai52a6db82007-07-26 19:10:47 +020013snd-$(CONFIG_ISA_DMA_API) += isadma.o
Randy Dunlap3c05f142021-10-15 23:26:02 -070014endif
Takashi Iwai85d14312015-04-23 10:34:34 +020015snd-$(CONFIG_SND_OSSEMUL) += sound_oss.o
Takashi Iwaie922b002008-02-18 13:03:13 +010016snd-$(CONFIG_SND_VMASTER) += vmaster.o
Jie Yang9058cbe2015-04-27 21:20:56 +080017snd-$(CONFIG_SND_JACK) += ctljack.o jack.o
Linus Torvalds1da177e2005-04-16 15:20:36 -070018
Jie Yang90bbaf62015-10-16 17:57:46 +080019snd-pcm-y := pcm.o pcm_native.o pcm_lib.o pcm_misc.o \
Takashi Iwai2d82ea22014-01-09 07:48:12 +010020 pcm_memory.o memalloc.o
Jie Yang90bbaf62015-10-16 17:57:46 +080021snd-pcm-$(CONFIG_SND_PCM_TIMER) += pcm_timer.o
Takashi Iwai7599acb2021-11-04 19:08:46 +010022snd-pcm-$(CONFIG_SND_DMA_SGBUF) += sgbuf.o
Russell King838d1632015-05-09 11:26:42 +010023snd-pcm-$(CONFIG_SND_PCM_ELD) += pcm_drm_eld.o
Russell King9203dd02015-05-09 11:26:47 +010024snd-pcm-$(CONFIG_SND_PCM_IEC958) += pcm_iec958.o
Linus Torvalds1da177e2005-04-16 15:20:36 -070025
Takashi Iwaif5914902014-11-04 12:45:59 +010026# for trace-points
27CFLAGS_pcm_lib.o := -I$(src)
Takashi Sakamotobe4e31d2017-06-07 08:46:43 +090028CFLAGS_pcm_native.o := -I$(src)
Takashi Iwaif5914902014-11-04 12:45:59 +010029
Daniel Mackb7ae6f32013-08-12 10:42:37 +020030snd-pcm-dmaengine-objs := pcm_dmaengine.o
31
Jaroslav Kysela22d8de62021-03-17 18:29:42 +010032snd-ctl-led-objs := control_led.o
Linus Torvalds1da177e2005-04-16 15:20:36 -070033snd-rawmidi-objs := rawmidi.o
34snd-timer-objs := timer.o
Takashi Iwaibbaf5e92008-10-24 18:16:50 +020035snd-hrtimer-objs := hrtimer.o
Linus Torvalds1da177e2005-04-16 15:20:36 -070036snd-rtctimer-objs := rtctimer.o
37snd-hwdep-objs := hwdep.o
Takashi Iwai111b0cd2017-06-09 15:11:58 +020038snd-seq-device-objs := seq_device.o
Linus Torvalds1da177e2005-04-16 15:20:36 -070039
Vinod Koul40741dd2011-12-23 10:36:40 +053040snd-compress-objs := compress_offload.o
41
Linus Torvalds1da177e2005-04-16 15:20:36 -070042obj-$(CONFIG_SND) += snd.o
Jaroslav Kysela22d8de62021-03-17 18:29:42 +010043obj-$(CONFIG_SND_CTL_LED) += snd-ctl-led.o
Linus Torvalds1da177e2005-04-16 15:20:36 -070044obj-$(CONFIG_SND_HWDEP) += snd-hwdep.o
45obj-$(CONFIG_SND_TIMER) += snd-timer.o
Takashi Iwaibbaf5e92008-10-24 18:16:50 +020046obj-$(CONFIG_SND_HRTIMER) += snd-hrtimer.o
Takashi Iwai2d82ea22014-01-09 07:48:12 +010047obj-$(CONFIG_SND_PCM) += snd-pcm.o
Daniel Mackb7ae6f32013-08-12 10:42:37 +020048obj-$(CONFIG_SND_DMAENGINE_PCM) += snd-pcm-dmaengine.o
Takashi Iwai111b0cd2017-06-09 15:11:58 +020049obj-$(CONFIG_SND_SEQ_DEVICE) += snd-seq-device.o
Linus Torvalds1da177e2005-04-16 15:20:36 -070050obj-$(CONFIG_SND_RAWMIDI) += snd-rawmidi.o
51
52obj-$(CONFIG_SND_OSSEMUL) += oss/
53obj-$(CONFIG_SND_SEQUENCER) += seq/
Vinod Koul40741dd2011-12-23 10:36:40 +053054
55obj-$(CONFIG_SND_COMPRESS_OFFLOAD) += snd-compress.o