Go to the documentation of this file. 1 #ifndef __SOUND_SFNT_INFO_H
2 #define __SOUND_SFNT_INFO_H
31 #ifdef SNDRV_BIG_ENDIAN
32 #define SNDRV_OSS_PATCHKEY(id) (0xfd00|id)
34 #define SNDRV_OSS_PATCHKEY(id) ((id<<8)|0xfd)
40 #define SNDRV_OSS_SOUNDFONT_PATCH SNDRV_OSS_PATCHKEY(0x07)
48 #define SNDRV_SFNT_LOAD_INFO 0
49 #define SNDRV_SFNT_LOAD_DATA 1
50 #define SNDRV_SFNT_OPEN_PATCH 2
51 #define SNDRV_SFNT_CLOSE_PATCH 3
53 #define SNDRV_SFNT_REPLACE_DATA 5
54 #define SNDRV_SFNT_MAP_PRESET 6
56 #define SNDRV_SFNT_PROBE_DATA 8
57 #define SNDRV_SFNT_REMOVE_INFO 9
69 #define SNDRV_SFNT_PATCH_NAME_LEN 32
73 #define SNDRV_SFNT_PAT_TYPE_MISC 0
74 #define SNDRV_SFNT_PAT_TYPE_GUS 6
75 #define SNDRV_SFNT_PAT_TYPE_MAP 7
76 #define SNDRV_SFNT_PAT_LOCKED 0x100
77 #define SNDRV_SFNT_PAT_SHARED 0x200
122 #define SNDRV_SFNT_MODE_ROMSOUND 0x8000
123 #define SNDRV_SFNT_MODE_STEREO 1
124 #define SNDRV_SFNT_MODE_LOOPING 2
125 #define SNDRV_SFNT_MODE_NORELEASE 4
126 #define SNDRV_SFNT_MODE_INIT_PARM 8
149 #define SNDRV_SFNT_WR_APPEND 0
150 #define SNDRV_SFNT_WR_EXCLUSIVE 1
151 #define SNDRV_SFNT_WR_REPLACE 2
168 #define SNDRV_SFNT_SAMPLE_8BITS 1
169 #define SNDRV_SFNT_SAMPLE_UNSIGNED 2
170 #define SNDRV_SFNT_SAMPLE_NO_BLANK 4
171 #define SNDRV_SFNT_SAMPLE_SINGLESHOT 8
172 #define SNDRV_SFNT_SAMPLE_BIDIR_LOOP 16
173 #define SNDRV_SFNT_SAMPLE_STEREO_LEFT 32
174 #define SNDRV_SFNT_SAMPLE_STEREO_RIGHT 64
175 #define SNDRV_SFNT_SAMPLE_REVERSE_LOOP 128
194 #define SNDRV_EMUX_HWDEP_NAME "Emux WaveTable"
196 #define SNDRV_EMUX_VERSION ((1 << 16) | (0 << 8) | 0)
205 #define SNDRV_EMUX_IOCTL_VERSION _IOR('H', 0x80, unsigned int)
206 #define SNDRV_EMUX_IOCTL_LOAD_PATCH _IOWR('H', 0x81, struct soundfont_patch_info)
207 #define SNDRV_EMUX_IOCTL_RESET_SAMPLES _IO('H', 0x82)
208 #define SNDRV_EMUX_IOCTL_REMOVE_LAST_SAMPLES _IO('H', 0x83)
209 #define SNDRV_EMUX_IOCTL_MEM_AVAIL _IOW('H', 0x84, int)
210 #define SNDRV_EMUX_IOCTL_MISC_MODE _IOWR('H', 0x84, struct snd_emux_misc_mode)