#
# Makefile for ALSA
#
ifeq ($(CONFIG_SYNO_LSP_RTD129X),y)
#ccflags-y := -std=gnu99 -Wno-declaration-after-statement
ccflags-y += -I$(srctree)/drivers/soc/realtek/rtd129x/rpc
#ccflags-y += -DAO_ON_SCPU
#ccflags-y += -DRTK_TRACE_ALSA_EN
ccflags-y += -Werror
endif # CONFIG_SYNO_LSP_RTD129X
ifeq ($(CONFIG_SYNO_LSP_RTD1619),y)
ccflags-y += -I$(srctree)/drivers/soc/realtek/common/rpc
ccflags-y += -Werror
endif # CONFIG_SYNO_LSP_RTD1619

obj-$(CONFIG_SND_ARMAACI)	+= snd-aaci.o
snd-aaci-objs			:= aaci.o

obj-$(CONFIG_SND_PXA2XX_PCM)	+= snd-pxa2xx-pcm.o
snd-pxa2xx-pcm-objs		:= pxa2xx-pcm.o

obj-$(CONFIG_SND_PXA2XX_LIB)	+= snd-pxa2xx-lib.o
snd-pxa2xx-lib-y		:= pxa2xx-pcm-lib.o
snd-pxa2xx-lib-$(CONFIG_SND_PXA2XX_LIB_AC97)	+= pxa2xx-ac97-lib.o

obj-$(CONFIG_SND_PXA2XX_AC97)	+= snd-pxa2xx-ac97.o
snd-pxa2xx-ac97-objs		:= pxa2xx-ac97.o

ifeq ($(CONFIG_SYNO_LSP_RTD129X),y)
obj-$(CONFIG_SND_REALTEK)      += snd-realtek-driver.o
snd-realtek-driver-objs     := snd-realtek.o snd-realtek-compress.o snd-realtek_RPC.o
endif # CONFIG_SYNO_LSP_RTD129X
ifeq ($(CONFIG_SYNO_LSP_RTD1619),y)
obj-$(CONFIG_SND_REALTEK)	+= snd-realtek-driver.o
obj-$(CONFIG_SND_REALTEK)	:= snd-realtek_1619.o snd-realtek_RPC_1619.o snd-realtek-notify.o
endif # CONFIG_SYNO_LSP_RTD1619
