diff options
Diffstat (limited to 'include/sound/sfnt_info.h')
| -rw-r--r-- | include/sound/sfnt_info.h | 36 | 
1 files changed, 18 insertions, 18 deletions
| diff --git a/include/sound/sfnt_info.h b/include/sound/sfnt_info.h index 674585f88a31..5d1ab9c4950f 100644 --- a/include/sound/sfnt_info.h +++ b/include/sound/sfnt_info.h | |||
| @@ -35,7 +35,7 @@ | |||
| 35 | #endif | 35 | #endif | 
| 36 | 36 | ||
| 37 | /* patch interface header: 16 bytes */ | 37 | /* patch interface header: 16 bytes */ | 
| 38 | typedef struct soundfont_patch_info_t { | 38 | struct soundfont_patch_info { | 
| 39 | unsigned short key; /* use the key below */ | 39 | unsigned short key; /* use the key below */ | 
| 40 | #define SNDRV_OSS_SOUNDFONT_PATCH SNDRV_OSS_PATCHKEY(0x07) | 40 | #define SNDRV_OSS_SOUNDFONT_PATCH SNDRV_OSS_PATCHKEY(0x07) | 
| 41 | 41 | ||
| @@ -59,7 +59,7 @@ typedef struct soundfont_patch_info_t { | |||
| 59 | short reserved; /* word alignment data */ | 59 | short reserved; /* word alignment data */ | 
| 60 | 60 | ||
| 61 | /* the actual patch data begins after this */ | 61 | /* the actual patch data begins after this */ | 
| 62 | } soundfont_patch_info_t; | 62 | }; | 
| 63 | 63 | ||
| 64 | 64 | ||
| 65 | /* | 65 | /* | 
| @@ -68,7 +68,7 @@ typedef struct soundfont_patch_info_t { | |||
| 68 | 68 | ||
| 69 | #define SNDRV_SFNT_PATCH_NAME_LEN 32 | 69 | #define SNDRV_SFNT_PATCH_NAME_LEN 32 | 
| 70 | 70 | ||
| 71 | typedef struct soundfont_open_parm_t { | 71 | struct soundfont_open_parm { | 
| 72 | unsigned short type; /* sample type */ | 72 | unsigned short type; /* sample type */ | 
| 73 | #define SNDRV_SFNT_PAT_TYPE_MISC 0 | 73 | #define SNDRV_SFNT_PAT_TYPE_MISC 0 | 
| 74 | #define SNDRV_SFNT_PAT_TYPE_GUS 6 | 74 | #define SNDRV_SFNT_PAT_TYPE_GUS 6 | 
| @@ -78,7 +78,7 @@ typedef struct soundfont_open_parm_t { | |||
| 78 | 78 | ||
| 79 | short reserved; | 79 | short reserved; | 
| 80 | char name[SNDRV_SFNT_PATCH_NAME_LEN]; | 80 | char name[SNDRV_SFNT_PATCH_NAME_LEN]; | 
| 81 | } soundfont_open_parm_t; | 81 | }; | 
| 82 | 82 | ||
| 83 | 83 | ||
| 84 | /* | 84 | /* | 
| @@ -86,7 +86,7 @@ typedef struct soundfont_open_parm_t { | |||
| 86 | */ | 86 | */ | 
| 87 | 87 | ||
| 88 | /* wave table envelope & effect parameters to control EMU8000 */ | 88 | /* wave table envelope & effect parameters to control EMU8000 */ | 
| 89 | typedef struct soundfont_voice_parm_t { | 89 | struct soundfont_voice_parm { | 
| 90 | unsigned short moddelay; /* modulation delay (0x8000) */ | 90 | unsigned short moddelay; /* modulation delay (0x8000) */ | 
| 91 | unsigned short modatkhld; /* modulation attack & hold time (0x7f7f) */ | 91 | unsigned short modatkhld; /* modulation attack & hold time (0x7f7f) */ | 
| 92 | unsigned short moddcysus; /* modulation decay & sustain (0x7f7f) */ | 92 | unsigned short moddcysus; /* modulation decay & sustain (0x7f7f) */ | 
| @@ -108,11 +108,11 @@ typedef struct soundfont_voice_parm_t { | |||
| 108 | unsigned char chorus; /* chorus send (0x00) */ | 108 | unsigned char chorus; /* chorus send (0x00) */ | 
| 109 | unsigned char reverb; /* reverb send (0x00) */ | 109 | unsigned char reverb; /* reverb send (0x00) */ | 
| 110 | unsigned short reserved[4]; /* not used */ | 110 | unsigned short reserved[4]; /* not used */ | 
| 111 | } soundfont_voice_parm_t; | 111 | }; | 
| 112 | 112 | ||
| 113 | 113 | ||
| 114 | /* wave table parameters: 92 bytes */ | 114 | /* wave table parameters: 92 bytes */ | 
| 115 | typedef struct soundfont_voice_info_t { | 115 | struct soundfont_voice_info { | 
| 116 | unsigned short sf_id; /* file id (should be zero) */ | 116 | unsigned short sf_id; /* file id (should be zero) */ | 
| 117 | unsigned short sample; /* sample id */ | 117 | unsigned short sample; /* sample id */ | 
| 118 | int start, end; /* sample offset correction */ | 118 | int start, end; /* sample offset correction */ | 
| @@ -135,13 +135,13 @@ typedef struct soundfont_voice_info_t { | |||
| 135 | unsigned char amplitude; /* sample volume (127 max) */ | 135 | unsigned char amplitude; /* sample volume (127 max) */ | 
| 136 | unsigned char attenuation; /* attenuation (0.375dB) */ | 136 | unsigned char attenuation; /* attenuation (0.375dB) */ | 
| 137 | short scaleTuning; /* pitch scale tuning(%), normally 100 */ | 137 | short scaleTuning; /* pitch scale tuning(%), normally 100 */ | 
| 138 | soundfont_voice_parm_t parm; /* voice envelope parameters */ | 138 | struct soundfont_voice_parm parm; /* voice envelope parameters */ | 
| 139 | unsigned short sample_mode; /* sample mode_flag (set by driver) */ | 139 | unsigned short sample_mode; /* sample mode_flag (set by driver) */ | 
| 140 | } soundfont_voice_info_t; | 140 | }; | 
| 141 | 141 | ||
| 142 | 142 | ||
| 143 | /* instrument info header: 4 bytes */ | 143 | /* instrument info header: 4 bytes */ | 
| 144 | typedef struct soundfont_voice_rec_hdr_t { | 144 | struct soundfont_voice_rec_hdr { | 
| 145 | unsigned char bank; /* midi bank number */ | 145 | unsigned char bank; /* midi bank number */ | 
| 146 | unsigned char instr; /* midi preset number */ | 146 | unsigned char instr; /* midi preset number */ | 
| 147 | char nvoices; /* number of voices */ | 147 | char nvoices; /* number of voices */ | 
| @@ -149,7 +149,7 @@ typedef struct soundfont_voice_rec_hdr_t { | |||
| 149 | #define SNDRV_SFNT_WR_APPEND 0 /* append anyway */ | 149 | #define SNDRV_SFNT_WR_APPEND 0 /* append anyway */ | 
| 150 | #define SNDRV_SFNT_WR_EXCLUSIVE 1 /* skip if already exists */ | 150 | #define SNDRV_SFNT_WR_EXCLUSIVE 1 /* skip if already exists */ | 
| 151 | #define SNDRV_SFNT_WR_REPLACE 2 /* replace if already exists */ | 151 | #define SNDRV_SFNT_WR_REPLACE 2 /* replace if already exists */ | 
| 152 | } soundfont_voice_rec_hdr_t; | 152 | }; | 
| 153 | 153 | ||
| 154 | 154 | ||
| 155 | /* | 155 | /* | 
| @@ -157,7 +157,7 @@ typedef struct soundfont_voice_rec_hdr_t { | |||
| 157 | */ | 157 | */ | 
| 158 | 158 | ||
| 159 | /* wave table sample header: 32 bytes */ | 159 | /* wave table sample header: 32 bytes */ | 
| 160 | typedef struct soundfont_sample_info_t { | 160 | struct soundfont_sample_info { | 
| 161 | unsigned short sf_id; /* file id (should be zero) */ | 161 | unsigned short sf_id; /* file id (should be zero) */ | 
| 162 | unsigned short sample; /* sample id */ | 162 | unsigned short sample; /* sample id */ | 
| 163 | int start, end; /* start & end offset */ | 163 | int start, end; /* start & end offset */ | 
| @@ -174,17 +174,17 @@ typedef struct soundfont_sample_info_t { | |||
| 174 | #define SNDRV_SFNT_SAMPLE_STEREO_RIGHT 64 /* stereo right sound */ | 174 | #define SNDRV_SFNT_SAMPLE_STEREO_RIGHT 64 /* stereo right sound */ | 
| 175 | #define SNDRV_SFNT_SAMPLE_REVERSE_LOOP 128 /* reverse looping */ | 175 | #define SNDRV_SFNT_SAMPLE_REVERSE_LOOP 128 /* reverse looping */ | 
| 176 | unsigned int truesize; /* used memory size (set by driver) */ | 176 | unsigned int truesize; /* used memory size (set by driver) */ | 
| 177 | } soundfont_sample_info_t; | 177 | }; | 
| 178 | 178 | ||
| 179 | 179 | ||
| 180 | /* | 180 | /* | 
| 181 | * voice preset mapping (aliasing) | 181 | * voice preset mapping (aliasing) | 
| 182 | */ | 182 | */ | 
| 183 | 183 | ||
| 184 | typedef struct soundfont_voice_map_t { | 184 | struct soundfont_voice_map { | 
| 185 | int map_bank, map_instr, map_key; /* key = -1 means all keys */ | 185 | int map_bank, map_instr, map_key; /* key = -1 means all keys */ | 
| 186 | int src_bank, src_instr, src_key; | 186 | int src_bank, src_instr, src_key; | 
| 187 | } soundfont_voice_map_t; | 187 | }; | 
| 188 | 188 | ||
| 189 | 189 | ||
| 190 | /* | 190 | /* | 
| @@ -195,7 +195,7 @@ typedef struct soundfont_voice_map_t { | |||
| 195 | 195 | ||
| 196 | #define SNDRV_EMUX_VERSION ((1 << 16) | (0 << 8) | 0) /* 1.0.0 */ | 196 | #define SNDRV_EMUX_VERSION ((1 << 16) | (0 << 8) | 0) /* 1.0.0 */ | 
| 197 | 197 | ||
| 198 | struct sndrv_emux_misc_mode { | 198 | struct snd_emux_misc_mode { | 
| 199 | int port; /* -1 = all */ | 199 | int port; /* -1 = all */ | 
| 200 | int mode; | 200 | int mode; | 
| 201 | int value; | 201 | int value; | 
| @@ -204,11 +204,11 @@ struct sndrv_emux_misc_mode { | |||
| 204 | 204 | ||
| 205 | enum { | 205 | enum { | 
| 206 | SNDRV_EMUX_IOCTL_VERSION = _IOR('H', 0x80, unsigned int), | 206 | SNDRV_EMUX_IOCTL_VERSION = _IOR('H', 0x80, unsigned int), | 
| 207 | SNDRV_EMUX_IOCTL_LOAD_PATCH = _IOWR('H', 0x81, soundfont_patch_info_t), | 207 | SNDRV_EMUX_IOCTL_LOAD_PATCH = _IOWR('H', 0x81, struct soundfont_patch_info), | 
| 208 | SNDRV_EMUX_IOCTL_RESET_SAMPLES = _IO('H', 0x82), | 208 | SNDRV_EMUX_IOCTL_RESET_SAMPLES = _IO('H', 0x82), | 
| 209 | SNDRV_EMUX_IOCTL_REMOVE_LAST_SAMPLES = _IO('H', 0x83), | 209 | SNDRV_EMUX_IOCTL_REMOVE_LAST_SAMPLES = _IO('H', 0x83), | 
| 210 | SNDRV_EMUX_IOCTL_MEM_AVAIL = _IOW('H', 0x84, int), | 210 | SNDRV_EMUX_IOCTL_MEM_AVAIL = _IOW('H', 0x84, int), | 
| 211 | SNDRV_EMUX_IOCTL_MISC_MODE = _IOWR('H', 0x84, struct sndrv_emux_misc_mode), | 211 | SNDRV_EMUX_IOCTL_MISC_MODE = _IOWR('H', 0x84, struct snd_emux_misc_mode), | 
| 212 | }; | 212 | }; | 
| 213 | 213 | ||
| 214 | #endif /* __SOUND_SFNT_INFO_H */ | 214 | #endif /* __SOUND_SFNT_INFO_H */ | 
