ifndef SND_TOPDIR
SND_TOPDIR=..
endif

include $(SND_TOPDIR)/toplevel.config
include $(SND_TOPDIR)/Makefile.conf

#
# ALSA extra code
#

clean-files := cs4281.c es1968.c intel8x0.c maestro3.c

obj-$(CONFIG_SND) += pdplus/ mixart/ au88x0/

snd-intel8x0m-objs := intel8x0m.o
snd-hdspm-objs := hdspm.o
snd-atiixp-objs := atiixp.o

obj-$(CONFIG_SND_INTEL8X0M) += snd-intel8x0m.o
obj-$(CONFIG_SND_HDSPM) +=snd-hdspm.o
obj-$(CONFIG_SND_ATIIXP) += snd-atiixp.o

# Hack for FM801 && TEA575x
ifeq (m,$(CONFIG_SND_FM801))
ifeq (y,$(CONFIG_VIDEO_DEV))
EXTRA_CFLAGS += -DCONFIG_SND_FM801_TEA575X
endif
endif

#
#
#

include $(SND_TOPDIR)/alsa-kernel/pci/Makefile

include $(SND_TOPDIR)/Rules.make

cs4281.c: cs4281.patch $(SND_TOPDIR)/alsa-kernel/pci/cs4281.c
es1968.c: es1968.patch $(SND_TOPDIR)/alsa-kernel/pci/es1968.c
intel8x0.c: intel8x0.patch $(SND_TOPDIR)/alsa-kernel/pci/intel8x0.c
maestro3.c: maestro3.patch $(SND_TOPDIR)/alsa-kernel/pci/maestro3.c
