]> pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - sound/core/Makefile
[ALSA] Fix build error without CONFIG_HAS_DMA
[linux-2.6-omap-h63xx.git] / sound / core / Makefile
index 969d75528bdeb9189f5ff9fdc8aaddac165bf1f5..05f5cdca655c7b9211d25adabd630f30f9e68721 100644 (file)
@@ -3,8 +3,7 @@
 # Copyright (c) 1999,2001 by Jaroslav Kysela <perex@suse.cz>
 #
 
-snd-objs     := sound.o init.o memory.o info.o control.o misc.o \
-                device.o wrappers.o
+snd-objs     := sound.o init.o memory.o info.o control.o misc.o device.o
 ifeq ($(CONFIG_ISA_DMA_API),y)
 snd-objs     += isadma.o
 endif
@@ -15,7 +14,8 @@ endif
 snd-pcm-objs := pcm.o pcm_native.o pcm_lib.o pcm_timer.o pcm_misc.o \
                pcm_memory.o
 
-snd-page-alloc-objs := memalloc.o sgbuf.o
+snd-page-alloc-y := memalloc.o
+snd-page-alloc-$(CONFIG_HAS_DMA) += sgbuf.o
 
 snd-rawmidi-objs  := rawmidi.o
 snd-timer-objs    := timer.o