blob: 3354f91e003ad13e100887c9bf9050c5ae51252a [file] [log] [blame]
Linus Torvalds1da177e2005-04-16 15:20:36 -07001#
2# Makefile for ALSA
Jaroslav Kyselac1017a42007-10-15 09:50:19 +02003# Copyright (c) 1999,2001 by Jaroslav Kysela <perex@perex.cz>
Linus Torvalds1da177e2005-04-16 15:20:36 -07004#
5
Takashi Iwai85d14312015-04-23 10:34:34 +02006snd-y := sound.o init.o memory.o control.o misc.o device.o
Jie Yangcd6a6502015-05-27 19:45:45 +08007ifneq ($(CONFIG_SND_PROC_FS),)
Takashi Iwai85d14312015-04-23 10:34:34 +02008snd-y += info.o
9snd-$(CONFIG_SND_OSSEMUL) += info_oss.o
10endif
Takashi Iwai52a6db82007-07-26 19:10:47 +020011snd-$(CONFIG_ISA_DMA_API) += isadma.o
Takashi Iwai85d14312015-04-23 10:34:34 +020012snd-$(CONFIG_SND_OSSEMUL) += sound_oss.o
Takashi Iwaie922b002008-02-18 13:03:13 +010013snd-$(CONFIG_SND_VMASTER) += vmaster.o
Jie Yang9058cbe2015-04-27 21:20:56 +080014snd-$(CONFIG_SND_JACK) += ctljack.o jack.o
Linus Torvalds1da177e2005-04-16 15:20:36 -070015
Takashi Iwai2d82ea22014-01-09 07:48:12 +010016snd-pcm-y := pcm.o pcm_native.o pcm_lib.o pcm_timer.o pcm_misc.o \
17 pcm_memory.o memalloc.o
18snd-pcm-$(CONFIG_SND_DMA_SGBUF) += sgbuf.o
Russell King838d1632015-05-09 11:26:42 +010019snd-pcm-$(CONFIG_SND_PCM_ELD) += pcm_drm_eld.o
Russell King9203dd02015-05-09 11:26:47 +010020snd-pcm-$(CONFIG_SND_PCM_IEC958) += pcm_iec958.o
Linus Torvalds1da177e2005-04-16 15:20:36 -070021
Takashi Iwaif5914902014-11-04 12:45:59 +010022# for trace-points
23CFLAGS_pcm_lib.o := -I$(src)
24
Daniel Mackb7ae6f32013-08-12 10:42:37 +020025snd-pcm-dmaengine-objs := pcm_dmaengine.o
26
Linus Torvalds1da177e2005-04-16 15:20:36 -070027snd-rawmidi-objs := rawmidi.o
28snd-timer-objs := timer.o
Takashi Iwaibbaf5e92008-10-24 18:16:50 +020029snd-hrtimer-objs := hrtimer.o
Linus Torvalds1da177e2005-04-16 15:20:36 -070030snd-rtctimer-objs := rtctimer.o
31snd-hwdep-objs := hwdep.o
32
Vinod Koul40741dd2011-12-23 10:36:40 +053033snd-compress-objs := compress_offload.o
34
Linus Torvalds1da177e2005-04-16 15:20:36 -070035obj-$(CONFIG_SND) += snd.o
36obj-$(CONFIG_SND_HWDEP) += snd-hwdep.o
37obj-$(CONFIG_SND_TIMER) += snd-timer.o
Takashi Iwaibbaf5e92008-10-24 18:16:50 +020038obj-$(CONFIG_SND_HRTIMER) += snd-hrtimer.o
Linus Torvalds1da177e2005-04-16 15:20:36 -070039obj-$(CONFIG_SND_RTCTIMER) += snd-rtctimer.o
Takashi Iwai2d82ea22014-01-09 07:48:12 +010040obj-$(CONFIG_SND_PCM) += snd-pcm.o
Daniel Mackb7ae6f32013-08-12 10:42:37 +020041obj-$(CONFIG_SND_DMAENGINE_PCM) += snd-pcm-dmaengine.o
Linus Torvalds1da177e2005-04-16 15:20:36 -070042obj-$(CONFIG_SND_RAWMIDI) += snd-rawmidi.o
43
44obj-$(CONFIG_SND_OSSEMUL) += oss/
45obj-$(CONFIG_SND_SEQUENCER) += seq/
Vinod Koul40741dd2011-12-23 10:36:40 +053046
47obj-$(CONFIG_SND_COMPRESS_OFFLOAD) += snd-compress.o