blob: 7a2f9ae7b7c5818d13331eaadb2db6dd9e35ca89 [file] [log] [blame]
Linus Torvalds1da177e2005-04-16 15:20:36 -07001# Makefile for the Linux sound card driver
2#
3# 18 Apr 1998, Michael Elizabeth Chastain, <mailto:mec@shout.net>
4# Rewritten to use lists instead of if-statements.
5
6# Each configuration option enables a list of files.
7
8obj-$(CONFIG_SOUND_OSS) += sound.o
9obj-$(CONFIG_SOUND_CS4232) += cs4232.o ad1848.o
10
11# Please leave it as is, cause the link order is significant !
12
13obj-$(CONFIG_SOUND_SH_DAC_AUDIO) += sh_dac_audio.o
14obj-$(CONFIG_SOUND_HAL2) += hal2.o
15obj-$(CONFIG_SOUND_AEDSP16) += aedsp16.o
16obj-$(CONFIG_SOUND_PSS) += pss.o ad1848.o mpu401.o
17obj-$(CONFIG_SOUND_TRIX) += trix.o ad1848.o sb_lib.o uart401.o
Linus Torvalds1da177e2005-04-16 15:20:36 -070018obj-$(CONFIG_SOUND_SSCAPE) += sscape.o ad1848.o mpu401.o
Linus Torvalds1da177e2005-04-16 15:20:36 -070019obj-$(CONFIG_SOUND_CS4232) += cs4232.o uart401.o
20obj-$(CONFIG_SOUND_MSS) += ad1848.o
Linus Torvalds1da177e2005-04-16 15:20:36 -070021obj-$(CONFIG_SOUND_PAS) += pas2.o sb.o sb_lib.o uart401.o
22obj-$(CONFIG_SOUND_SB) += sb.o sb_lib.o uart401.o
23obj-$(CONFIG_SOUND_KAHLUA) += kahlua.o
Linus Torvalds1da177e2005-04-16 15:20:36 -070024obj-$(CONFIG_SOUND_MPU401) += mpu401.o
25obj-$(CONFIG_SOUND_UART6850) += uart6850.o
Linus Torvalds1da177e2005-04-16 15:20:36 -070026obj-$(CONFIG_SOUND_YM3812) += opl3.o
27obj-$(CONFIG_SOUND_VMIDI) += v_midi.o
28obj-$(CONFIG_SOUND_VIDC) += vidc_mod.o
29obj-$(CONFIG_SOUND_WAVEARTIST) += waveartist.o
Linus Torvalds1da177e2005-04-16 15:20:36 -070030
31obj-$(CONFIG_SOUND_VIA82CXXX) += via82cxxx_audio.o ac97_codec.o
32ifeq ($(CONFIG_MIDI_VIA82CXXX),y)
33 obj-$(CONFIG_SOUND_VIA82CXXX) += sound.o uart401.o
34endif
Linus Torvalds1da177e2005-04-16 15:20:36 -070035obj-$(CONFIG_SOUND_MSNDCLAS) += msnd.o msnd_classic.o
36obj-$(CONFIG_SOUND_MSNDPIN) += msnd.o msnd_pinnacle.o
37obj-$(CONFIG_SOUND_VWSND) += vwsnd.o
Linus Torvalds1da177e2005-04-16 15:20:36 -070038obj-$(CONFIG_SOUND_ICH) += i810_audio.o ac97_codec.o
Linus Torvalds1da177e2005-04-16 15:20:36 -070039obj-$(CONFIG_SOUND_ES1371) += es1371.o ac97_codec.o
40obj-$(CONFIG_SOUND_VRC5477) += nec_vrc5477.o ac97_codec.o
Linus Torvalds1da177e2005-04-16 15:20:36 -070041obj-$(CONFIG_SOUND_AU1550_AC97) += au1550_ac97.o ac97_codec.o
Linus Torvalds1da177e2005-04-16 15:20:36 -070042obj-$(CONFIG_SOUND_TRIDENT) += trident.o ac97_codec.o
Linus Torvalds1da177e2005-04-16 15:20:36 -070043obj-$(CONFIG_SOUND_BCM_CS4297A) += swarm_cs4297a.o
Linus Torvalds1da177e2005-04-16 15:20:36 -070044obj-$(CONFIG_SOUND_BT878) += btaudio.o
Linus Torvalds1da177e2005-04-16 15:20:36 -070045
Linus Torvalds1da177e2005-04-16 15:20:36 -070046obj-$(CONFIG_SOUND_WM97XX) += ac97_plugin_wm97xx.o
47
Linus Torvalds1da177e2005-04-16 15:20:36 -070048obj-$(CONFIG_DMASOUND) += dmasound/
49
50# Declare multi-part drivers.
51
52sound-objs := \
Adrian Bunkece7f772006-10-04 02:17:31 -070053 dev_table.o soundcard.o \
54 audio.o dmabuf.o \
55 midi_synth.o midibuf.o \
56 sequencer.o sound_timer.o sys_timer.o
Linus Torvalds1da177e2005-04-16 15:20:36 -070057
Linus Torvalds1da177e2005-04-16 15:20:36 -070058pas2-objs := pas2_card.o pas2_midi.o pas2_mixer.o pas2_pcm.o
59sb-objs := sb_card.o
60sb_lib-objs := sb_common.o sb_audio.o sb_midi.o sb_mixer.o sb_ess.o
61vidc_mod-objs := vidc.o vidc_fill.o
Linus Torvalds1da177e2005-04-16 15:20:36 -070062
63hostprogs-y := bin2hex hex2hex
64
65# Files generated that shall be removed upon make clean
Adrian Bunkd56b9b92006-10-04 02:17:22 -070066clean-files := msndperm.c msndinit.c pndsperm.c pndspini.c \
Linus Torvalds1da177e2005-04-16 15:20:36 -070067 pss_boot.h trix_boot.h
68
69# Firmware files that need translation
70#
71# The translated files are protected by a file that keeps track
72# of what name was used to build them. If the name changes, they
73# will be forced to be remade.
74#
75
Linus Torvalds1da177e2005-04-16 15:20:36 -070076# Turtle Beach MultiSound
77
78ifeq ($(CONFIG_MSNDCLAS_HAVE_BOOT),y)
79 $(obj)/msnd_classic.o: $(obj)/msndperm.c $(obj)/msndinit.c
80
81 $(obj)/msndperm.c: $(patsubst "%", %, $(CONFIG_MSNDCLAS_PERM_FILE)) $(obj)/bin2hex
82 $(obj)/bin2hex msndperm < $< > $@
83
84 $(obj)/msndinit.c: $(patsubst "%", %, $(CONFIG_MSNDCLAS_INIT_FILE)) $(obj)/bin2hex
85 $(obj)/bin2hex msndinit < $< > $@
86endif
87
88ifeq ($(CONFIG_MSNDPIN_HAVE_BOOT),y)
89 $(obj)/msnd_pinnacle.o: $(obj)/pndsperm.c $(obj)/pndspini.c
90
91 $(obj)/pndsperm.c: $(patsubst "%", %, $(CONFIG_MSNDPIN_PERM_FILE)) $(obj)/bin2hex
92 $(obj)/bin2hex pndsperm < $< > $@
93
94 $(obj)/pndspini.c: $(patsubst "%", %, $(CONFIG_MSNDPIN_INIT_FILE)) $(obj)/bin2hex
95 $(obj)/bin2hex pndspini < $< > $@
96endif
97
98# PSS (ECHO-ADI2111)
99
100$(obj)/pss.o: $(obj)/pss_boot.h
101
102ifeq ($(CONFIG_PSS_HAVE_BOOT),y)
103 $(obj)/pss_boot.h: $(patsubst "%", %, $(CONFIG_PSS_BOOT_FILE)) $(obj)/bin2hex
104 $(obj)/bin2hex pss_synth < $< > $@
105else
106 $(obj)/pss_boot.h:
107 ( \
108 echo 'static unsigned char * pss_synth = NULL;'; \
109 echo 'static int pss_synthLen = 0;'; \
110 ) > $@
111endif
112
113# MediaTrix AudioTrix Pro
114
115$(obj)/trix.o: $(obj)/trix_boot.h
116
117ifeq ($(CONFIG_TRIX_HAVE_BOOT),y)
118 $(obj)/trix_boot.h: $(patsubst "%", %, $(CONFIG_TRIX_BOOT_FILE)) $(obj)/hex2hex
119 $(obj)/hex2hex -i trix_boot < $< > $@
120else
121 $(obj)/trix_boot.h:
122 ( \
123 echo 'static unsigned char * trix_boot = NULL;'; \
124 echo 'static int trix_boot_len = 0;'; \
125 ) > $@
126endif