[PATCH] fix semaphore handling in __unregister_chrdev_region
[linux/fpc-iii.git] / sound / oss / Makefile
blobdb9afb61d6ffb49e02ff3bf78c6dec67c664e618
1 # Makefile for the Linux sound card driver
3 # 18 Apr 1998, Michael Elizabeth Chastain, <mailto:mec@shout.net>
4 # Rewritten to use lists instead of if-statements.
6 # Each configuration option enables a list of files.
8 obj-$(CONFIG_SOUND_OSS) += sound.o
9 obj-$(CONFIG_SOUND_CS4232) += cs4232.o ad1848.o
11 # Please leave it as is, cause the link order is significant !
13 obj-$(CONFIG_SOUND_SH_DAC_AUDIO) += sh_dac_audio.o
14 obj-$(CONFIG_SOUND_HAL2) += hal2.o
15 obj-$(CONFIG_SOUND_AEDSP16) += aedsp16.o
16 obj-$(CONFIG_SOUND_PSS) += pss.o ad1848.o mpu401.o
17 obj-$(CONFIG_SOUND_TRIX) += trix.o ad1848.o sb_lib.o uart401.o
18 obj-$(CONFIG_SOUND_OPL3SA1) += opl3sa.o ad1848.o uart401.o
19 obj-$(CONFIG_SOUND_SSCAPE) += sscape.o ad1848.o mpu401.o
20 obj-$(CONFIG_SOUND_MAD16) += mad16.o ad1848.o sb_lib.o uart401.o
21 obj-$(CONFIG_SOUND_CS4232) += cs4232.o uart401.o
22 obj-$(CONFIG_SOUND_MSS) += ad1848.o
23 obj-$(CONFIG_SOUND_OPL3SA2) += opl3sa2.o ad1848.o mpu401.o
24 obj-$(CONFIG_SOUND_PAS) += pas2.o sb.o sb_lib.o uart401.o
25 obj-$(CONFIG_SOUND_SB) += sb.o sb_lib.o uart401.o
26 obj-$(CONFIG_SOUND_KAHLUA) += kahlua.o
27 obj-$(CONFIG_SOUND_WAVEFRONT) += wavefront.o
28 obj-$(CONFIG_SOUND_MAUI) += maui.o mpu401.o
29 obj-$(CONFIG_SOUND_MPU401) += mpu401.o
30 obj-$(CONFIG_SOUND_UART6850) += uart6850.o
31 obj-$(CONFIG_SOUND_GUS) += gus.o ad1848.o
32 obj-$(CONFIG_SOUND_ADLIB) += adlib_card.o opl3.o
33 obj-$(CONFIG_SOUND_YM3812) += opl3.o
34 obj-$(CONFIG_SOUND_VMIDI) += v_midi.o
35 obj-$(CONFIG_SOUND_VIDC) += vidc_mod.o
36 obj-$(CONFIG_SOUND_WAVEARTIST) += waveartist.o
37 obj-$(CONFIG_SOUND_SGALAXY) += sgalaxy.o ad1848.o
38 obj-$(CONFIG_SOUND_AD1816) += ad1816.o
39 obj-$(CONFIG_SOUND_AD1889) += ad1889.o ac97_codec.o
40 obj-$(CONFIG_SOUND_ACI_MIXER) += aci.o
41 obj-$(CONFIG_SOUND_AWE32_SYNTH) += awe_wave.o
43 obj-$(CONFIG_SOUND_VIA82CXXX) += via82cxxx_audio.o ac97_codec.o
44 ifeq ($(CONFIG_MIDI_VIA82CXXX),y)
45 obj-$(CONFIG_SOUND_VIA82CXXX) += sound.o uart401.o
46 endif
47 obj-$(CONFIG_SOUND_YMFPCI) += ymfpci.o ac97_codec.o
48 ifeq ($(CONFIG_SOUND_YMFPCI_LEGACY),y)
49 obj-$(CONFIG_SOUND_YMFPCI) += opl3.o uart401.o
50 endif
51 obj-$(CONFIG_SOUND_MSNDCLAS) += msnd.o msnd_classic.o
52 obj-$(CONFIG_SOUND_MSNDPIN) += msnd.o msnd_pinnacle.o
53 obj-$(CONFIG_SOUND_VWSND) += vwsnd.o
54 obj-$(CONFIG_SOUND_NM256) += nm256_audio.o ac97.o
55 obj-$(CONFIG_SOUND_ICH) += i810_audio.o ac97_codec.o
56 obj-$(CONFIG_SOUND_SONICVIBES) += sonicvibes.o
57 obj-$(CONFIG_SOUND_CMPCI) += cmpci.o
58 ifeq ($(CONFIG_SOUND_CMPCI_FM),y)
59 obj-$(CONFIG_SOUND_CMPCI) += sound.o opl3.o
60 endif
61 ifeq ($(CONFIG_SOUND_CMPCI_MIDI),y)
62 obj-$(CONFIG_SOUND_CMPCI) += sound.o mpu401.o
63 endif
64 obj-$(CONFIG_SOUND_ES1370) += es1370.o
65 obj-$(CONFIG_SOUND_ES1371) += es1371.o ac97_codec.o
66 obj-$(CONFIG_SOUND_VRC5477) += nec_vrc5477.o ac97_codec.o
67 obj-$(CONFIG_SOUND_AU1000) += au1000.o ac97_codec.o
68 obj-$(CONFIG_SOUND_AU1550_AC97) += au1550_ac97.o ac97_codec.o
69 obj-$(CONFIG_SOUND_ESSSOLO1) += esssolo1.o
70 obj-$(CONFIG_SOUND_FUSION) += cs46xx.o ac97_codec.o
71 obj-$(CONFIG_SOUND_MAESTRO) += maestro.o
72 obj-$(CONFIG_SOUND_MAESTRO3) += maestro3.o ac97_codec.o
73 obj-$(CONFIG_SOUND_TRIDENT) += trident.o ac97_codec.o
74 obj-$(CONFIG_SOUND_HARMONY) += harmony.o
75 obj-$(CONFIG_SOUND_EMU10K1) += ac97_codec.o
76 obj-$(CONFIG_SOUND_BCM_CS4297A) += swarm_cs4297a.o
77 obj-$(CONFIG_SOUND_RME96XX) += rme96xx.o
78 obj-$(CONFIG_SOUND_BT878) += btaudio.o
79 obj-$(CONFIG_SOUND_ALI5455) += ali5455.o ac97_codec.o
80 obj-$(CONFIG_SOUND_IT8172) += ite8172.o ac97_codec.o
81 obj-$(CONFIG_SOUND_FORTE) += forte.o ac97_codec.o
83 obj-$(CONFIG_SOUND_AD1980) += ac97_plugin_ad1980.o
84 obj-$(CONFIG_SOUND_WM97XX) += ac97_plugin_wm97xx.o
86 ifeq ($(CONFIG_MIDI_EMU10K1),y)
87 obj-$(CONFIG_SOUND_EMU10K1) += sound.o
88 endif
90 obj-$(CONFIG_SOUND_EMU10K1) += emu10k1/
91 obj-$(CONFIG_SOUND_CS4281) += cs4281/
92 obj-$(CONFIG_DMASOUND) += dmasound/
94 # Declare multi-part drivers.
96 sound-objs := \
97 dev_table.o soundcard.o sound_syms.o \
98 audio.o audio_syms.o dmabuf.o \
99 midi_syms.o midi_synth.o midibuf.o \
100 sequencer.o sequencer_syms.o sound_timer.o sys_timer.o
102 gus-objs := gus_card.o gus_midi.o gus_vol.o gus_wave.o ics2101.o
103 pas2-objs := pas2_card.o pas2_midi.o pas2_mixer.o pas2_pcm.o
104 sb-objs := sb_card.o
105 sb_lib-objs := sb_common.o sb_audio.o sb_midi.o sb_mixer.o sb_ess.o
106 vidc_mod-objs := vidc.o vidc_fill.o
107 wavefront-objs := wavfront.o wf_midi.o yss225.o
109 hostprogs-y := bin2hex hex2hex
111 # Files generated that shall be removed upon make clean
112 clean-files := maui_boot.h msndperm.c msndinit.c pndsperm.c pndspini.c \
113 pss_boot.h trix_boot.h
115 # Firmware files that need translation
117 # The translated files are protected by a file that keeps track
118 # of what name was used to build them. If the name changes, they
119 # will be forced to be remade.
122 # Turtle Beach Maui / Tropez
124 $(obj)/maui.o: $(obj)/maui_boot.h
126 ifeq ($(CONFIG_MAUI_HAVE_BOOT),y)
127 $(obj)/maui_boot.h: $(patsubst "%", %, $(CONFIG_MAUI_BOOT_FILE)) $(obj)/bin2hex
128 $(obj)/bin2hex -i maui_os < $< > $@
129 else
130 $(obj)/maui_boot.h:
132 echo 'static unsigned char * maui_os = NULL;'; \
133 echo 'static int maui_osLen = 0;'; \
134 ) > $@
135 endif
137 # Turtle Beach MultiSound
139 ifeq ($(CONFIG_MSNDCLAS_HAVE_BOOT),y)
140 $(obj)/msnd_classic.o: $(obj)/msndperm.c $(obj)/msndinit.c
142 $(obj)/msndperm.c: $(patsubst "%", %, $(CONFIG_MSNDCLAS_PERM_FILE)) $(obj)/bin2hex
143 $(obj)/bin2hex msndperm < $< > $@
145 $(obj)/msndinit.c: $(patsubst "%", %, $(CONFIG_MSNDCLAS_INIT_FILE)) $(obj)/bin2hex
146 $(obj)/bin2hex msndinit < $< > $@
147 endif
149 ifeq ($(CONFIG_MSNDPIN_HAVE_BOOT),y)
150 $(obj)/msnd_pinnacle.o: $(obj)/pndsperm.c $(obj)/pndspini.c
152 $(obj)/pndsperm.c: $(patsubst "%", %, $(CONFIG_MSNDPIN_PERM_FILE)) $(obj)/bin2hex
153 $(obj)/bin2hex pndsperm < $< > $@
155 $(obj)/pndspini.c: $(patsubst "%", %, $(CONFIG_MSNDPIN_INIT_FILE)) $(obj)/bin2hex
156 $(obj)/bin2hex pndspini < $< > $@
157 endif
159 # PSS (ECHO-ADI2111)
161 $(obj)/pss.o: $(obj)/pss_boot.h
163 ifeq ($(CONFIG_PSS_HAVE_BOOT),y)
164 $(obj)/pss_boot.h: $(patsubst "%", %, $(CONFIG_PSS_BOOT_FILE)) $(obj)/bin2hex
165 $(obj)/bin2hex pss_synth < $< > $@
166 else
167 $(obj)/pss_boot.h:
169 echo 'static unsigned char * pss_synth = NULL;'; \
170 echo 'static int pss_synthLen = 0;'; \
171 ) > $@
172 endif
174 # MediaTrix AudioTrix Pro
176 $(obj)/trix.o: $(obj)/trix_boot.h
178 ifeq ($(CONFIG_TRIX_HAVE_BOOT),y)
179 $(obj)/trix_boot.h: $(patsubst "%", %, $(CONFIG_TRIX_BOOT_FILE)) $(obj)/hex2hex
180 $(obj)/hex2hex -i trix_boot < $< > $@
181 else
182 $(obj)/trix_boot.h:
184 echo 'static unsigned char * trix_boot = NULL;'; \
185 echo 'static int trix_boot_len = 0;'; \
186 ) > $@
187 endif