Greg Kroah-Hartman | b244131 | 2017-11-01 15:07:57 +0100 | [diff] [blame] | 1 | # SPDX-License-Identifier: GPL-2.0 |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 2 | # |
| 3 | # Makefile for ALSA |
Jaroslav Kysela | c1017a4 | 2007-10-15 09:50:19 +0200 | [diff] [blame] | 4 | # Copyright (c) 1999,2001 by Jaroslav Kysela <perex@perex.cz> |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 5 | # |
| 6 | |
Takashi Iwai | 85d1431 | 2015-04-23 10:34:34 +0200 | [diff] [blame] | 7 | snd-y := sound.o init.o memory.o control.o misc.o device.o |
Jie Yang | cd6a650 | 2015-05-27 19:45:45 +0800 | [diff] [blame] | 8 | ifneq ($(CONFIG_SND_PROC_FS),) |
Takashi Iwai | 85d1431 | 2015-04-23 10:34:34 +0200 | [diff] [blame] | 9 | snd-y += info.o |
| 10 | snd-$(CONFIG_SND_OSSEMUL) += info_oss.o |
| 11 | endif |
Takashi Iwai | 52a6db8 | 2007-07-26 19:10:47 +0200 | [diff] [blame] | 12 | snd-$(CONFIG_ISA_DMA_API) += isadma.o |
Takashi Iwai | 85d1431 | 2015-04-23 10:34:34 +0200 | [diff] [blame] | 13 | snd-$(CONFIG_SND_OSSEMUL) += sound_oss.o |
Takashi Iwai | e922b00 | 2008-02-18 13:03:13 +0100 | [diff] [blame] | 14 | snd-$(CONFIG_SND_VMASTER) += vmaster.o |
Jie Yang | 9058cbe | 2015-04-27 21:20:56 +0800 | [diff] [blame] | 15 | snd-$(CONFIG_SND_JACK) += ctljack.o jack.o |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 16 | |
Jie Yang | 90bbaf6 | 2015-10-16 17:57:46 +0800 | [diff] [blame] | 17 | snd-pcm-y := pcm.o pcm_native.o pcm_lib.o pcm_misc.o \ |
Takashi Iwai | 2d82ea2 | 2014-01-09 07:48:12 +0100 | [diff] [blame] | 18 | pcm_memory.o memalloc.o |
Jie Yang | 90bbaf6 | 2015-10-16 17:57:46 +0800 | [diff] [blame] | 19 | snd-pcm-$(CONFIG_SND_PCM_TIMER) += pcm_timer.o |
Russell King | 838d163 | 2015-05-09 11:26:42 +0100 | [diff] [blame] | 20 | snd-pcm-$(CONFIG_SND_PCM_ELD) += pcm_drm_eld.o |
Russell King | 9203dd0 | 2015-05-09 11:26:47 +0100 | [diff] [blame] | 21 | snd-pcm-$(CONFIG_SND_PCM_IEC958) += pcm_iec958.o |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 22 | |
Takashi Iwai | f591490 | 2014-11-04 12:45:59 +0100 | [diff] [blame] | 23 | # for trace-points |
| 24 | CFLAGS_pcm_lib.o := -I$(src) |
Takashi Sakamoto | be4e31d | 2017-06-07 08:46:43 +0900 | [diff] [blame] | 25 | CFLAGS_pcm_native.o := -I$(src) |
Takashi Iwai | f591490 | 2014-11-04 12:45:59 +0100 | [diff] [blame] | 26 | |
Daniel Mack | b7ae6f3 | 2013-08-12 10:42:37 +0200 | [diff] [blame] | 27 | snd-pcm-dmaengine-objs := pcm_dmaengine.o |
| 28 | |
Jaroslav Kysela | 22d8de6 | 2021-03-17 18:29:42 +0100 | [diff] [blame] | 29 | snd-ctl-led-objs := control_led.o |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 30 | snd-rawmidi-objs := rawmidi.o |
| 31 | snd-timer-objs := timer.o |
Takashi Iwai | bbaf5e9 | 2008-10-24 18:16:50 +0200 | [diff] [blame] | 32 | snd-hrtimer-objs := hrtimer.o |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 33 | snd-rtctimer-objs := rtctimer.o |
| 34 | snd-hwdep-objs := hwdep.o |
Takashi Iwai | 111b0cd | 2017-06-09 15:11:58 +0200 | [diff] [blame] | 35 | snd-seq-device-objs := seq_device.o |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 36 | |
Vinod Koul | 40741dd | 2011-12-23 10:36:40 +0530 | [diff] [blame] | 37 | snd-compress-objs := compress_offload.o |
| 38 | |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 39 | obj-$(CONFIG_SND) += snd.o |
Jaroslav Kysela | 22d8de6 | 2021-03-17 18:29:42 +0100 | [diff] [blame] | 40 | obj-$(CONFIG_SND_CTL_LED) += snd-ctl-led.o |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 41 | obj-$(CONFIG_SND_HWDEP) += snd-hwdep.o |
| 42 | obj-$(CONFIG_SND_TIMER) += snd-timer.o |
Takashi Iwai | bbaf5e9 | 2008-10-24 18:16:50 +0200 | [diff] [blame] | 43 | obj-$(CONFIG_SND_HRTIMER) += snd-hrtimer.o |
Takashi Iwai | 2d82ea2 | 2014-01-09 07:48:12 +0100 | [diff] [blame] | 44 | obj-$(CONFIG_SND_PCM) += snd-pcm.o |
Daniel Mack | b7ae6f3 | 2013-08-12 10:42:37 +0200 | [diff] [blame] | 45 | obj-$(CONFIG_SND_DMAENGINE_PCM) += snd-pcm-dmaengine.o |
Takashi Iwai | 111b0cd | 2017-06-09 15:11:58 +0200 | [diff] [blame] | 46 | obj-$(CONFIG_SND_SEQ_DEVICE) += snd-seq-device.o |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 47 | obj-$(CONFIG_SND_RAWMIDI) += snd-rawmidi.o |
| 48 | |
| 49 | obj-$(CONFIG_SND_OSSEMUL) += oss/ |
| 50 | obj-$(CONFIG_SND_SEQUENCER) += seq/ |
Vinod Koul | 40741dd | 2011-12-23 10:36:40 +0530 | [diff] [blame] | 51 | |
| 52 | obj-$(CONFIG_SND_COMPRESS_OFFLOAD) += snd-compress.o |