diff options
Diffstat (limited to 'include')
| -rw-r--r-- | include/linux/Kbuild | 1 | ||||
| -rw-r--r-- | include/linux/awe_voice.h | 525 |
2 files changed, 0 insertions, 526 deletions
diff --git a/include/linux/Kbuild b/include/linux/Kbuild index 9f05279e7dd3..2c2b6fc91e30 100644 --- a/include/linux/Kbuild +++ b/include/linux/Kbuild | |||
| @@ -33,7 +33,6 @@ header-y += atmsvc.h | |||
| 33 | header-y += atm_zatm.h | 33 | header-y += atm_zatm.h |
| 34 | header-y += auto_fs4.h | 34 | header-y += auto_fs4.h |
| 35 | header-y += auxvec.h | 35 | header-y += auxvec.h |
| 36 | header-y += awe_voice.h | ||
| 37 | header-y += ax25.h | 36 | header-y += ax25.h |
| 38 | header-y += b1lli.h | 37 | header-y += b1lli.h |
| 39 | header-y += baycom.h | 38 | header-y += baycom.h |
diff --git a/include/linux/awe_voice.h b/include/linux/awe_voice.h deleted file mode 100644 index bf33f17bea99..000000000000 --- a/include/linux/awe_voice.h +++ /dev/null | |||
| @@ -1,525 +0,0 @@ | |||
| 1 | /* | ||
| 2 | * include/linux/awe_voice.h | ||
| 3 | * | ||
| 4 | * Voice information definitions for the low level driver for the | ||
| 5 | * AWE32/SB32/AWE64 wave table synth. | ||
| 6 | * version 0.4.4; Jan. 4, 2000 | ||
| 7 | * | ||
| 8 | * Copyright (C) 1996-2000 Takashi Iwai | ||
| 9 | * | ||
| 10 | * This program is free software; you can redistribute it and/or modify | ||
| 11 | * it under the terms of the GNU General Public License as published by | ||
| 12 | * the Free Software Foundation; either version 2 of the License, or | ||
| 13 | * (at your option) any later version. | ||
| 14 | * | ||
| 15 | * This program is distributed in the hope that it will be useful, | ||
| 16 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
| 17 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
| 18 | * GNU General Public License for more details. | ||
| 19 | * | ||
| 20 | * You should have received a copy of the GNU General Public License | ||
| 21 | * along with this program; if not, write to the Free Software | ||
| 22 | * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. | ||
| 23 | */ | ||
| 24 | |||
| 25 | #ifndef AWE_VOICE_H | ||
| 26 | #define AWE_VOICE_H | ||
| 27 | |||
| 28 | #ifndef SAMPLE_TYPE_AWE32 | ||
| 29 | #define SAMPLE_TYPE_AWE32 0x20 | ||
| 30 | #endif | ||
| 31 | |||
| 32 | #define _LINUX_PATCHKEY_H_INDIRECT | ||
| 33 | #include <linux/patchkey.h> | ||
| 34 | #undef _LINUX_PATCHKEY_H_INDIRECT | ||
| 35 | |||
| 36 | /*---------------------------------------------------------------- | ||
| 37 | * patch information record | ||
| 38 | *----------------------------------------------------------------*/ | ||
| 39 | |||
| 40 | /* patch interface header: 16 bytes */ | ||
| 41 | typedef struct awe_patch_info { | ||
| 42 | short key; /* use AWE_PATCH here */ | ||
| 43 | #define AWE_PATCH _PATCHKEY(0x07) | ||
| 44 | |||
| 45 | short device_no; /* synthesizer number */ | ||
| 46 | unsigned short sf_id; /* file id (should be zero) */ | ||
| 47 | short optarg; /* optional argument */ | ||
| 48 | int len; /* data length (without this header) */ | ||
| 49 | |||
| 50 | short type; /* patch operation type */ | ||
| 51 | #define AWE_LOAD_INFO 0 /* awe_voice_rec */ | ||
| 52 | #define AWE_LOAD_DATA 1 /* awe_sample_info */ | ||
| 53 | #define AWE_OPEN_PATCH 2 /* awe_open_parm */ | ||
| 54 | #define AWE_CLOSE_PATCH 3 /* none */ | ||
| 55 | #define AWE_UNLOAD_PATCH 4 /* none */ | ||
| 56 | #define AWE_REPLACE_DATA 5 /* awe_sample_info (optarg=#channels)*/ | ||
| 57 | #define AWE_MAP_PRESET 6 /* awe_voice_map */ | ||
| 58 | /*#define AWE_PROBE_INFO 7*/ /* awe_voice_map (pat only) */ | ||
| 59 | #define AWE_PROBE_DATA 8 /* optarg=sample */ | ||
| 60 | #define AWE_REMOVE_INFO 9 /* optarg=(bank<<8)|instr */ | ||
| 61 | #define AWE_LOAD_CHORUS_FX 0x10 /* awe_chorus_fx_rec (optarg=mode) */ | ||
| 62 | #define AWE_LOAD_REVERB_FX 0x11 /* awe_reverb_fx_rec (optarg=mode) */ | ||
| 63 | |||
| 64 | short reserved; /* word alignment data */ | ||
| 65 | |||
| 66 | /* the actual patch data begins after this */ | ||
| 67 | #if defined(AWE_COMPAT_030) && AWE_COMPAT_030 | ||
| 68 | char data[0]; | ||
| 69 | #endif | ||
| 70 | } awe_patch_info; | ||
| 71 | |||
| 72 | /*#define AWE_PATCH_INFO_SIZE 16*/ | ||
| 73 | #define AWE_PATCH_INFO_SIZE sizeof(awe_patch_info) | ||
| 74 | |||
| 75 | |||
| 76 | /*---------------------------------------------------------------- | ||
| 77 | * open patch | ||
| 78 | *----------------------------------------------------------------*/ | ||
| 79 | |||
| 80 | #define AWE_PATCH_NAME_LEN 32 | ||
| 81 | |||
| 82 | typedef struct _awe_open_parm { | ||
| 83 | unsigned short type; /* sample type */ | ||
| 84 | #define AWE_PAT_TYPE_MISC 0 | ||
| 85 | #define AWE_PAT_TYPE_GM 1 | ||
| 86 | #define AWE_PAT_TYPE_GS 2 | ||
| 87 | #define AWE_PAT_TYPE_MT32 3 | ||
| 88 | #define AWE_PAT_TYPE_XG 4 | ||
| 89 | #define AWE_PAT_TYPE_SFX 5 | ||
| 90 | #define AWE_PAT_TYPE_GUS 6 | ||
| 91 | #define AWE_PAT_TYPE_MAP 7 | ||
| 92 | |||
| 93 | #define AWE_PAT_LOCKED 0x100 /* lock the samples */ | ||
| 94 | #define AWE_PAT_SHARED 0x200 /* sample is shared */ | ||
| 95 | |||
| 96 | short reserved; | ||
| 97 | char name[AWE_PATCH_NAME_LEN]; | ||
| 98 | } awe_open_parm; | ||
| 99 | |||
| 100 | /*#define AWE_OPEN_PARM_SIZE 28*/ | ||
| 101 | #define AWE_OPEN_PARM_SIZE sizeof(awe_open_parm) | ||
| 102 | |||
| 103 | |||
| 104 | /*---------------------------------------------------------------- | ||
| 105 | * raw voice information record | ||
| 106 | *----------------------------------------------------------------*/ | ||
| 107 | |||
| 108 | /* wave table envelope & effect parameters to control EMU8000 */ | ||
| 109 | typedef struct _awe_voice_parm { | ||
| 110 | unsigned short moddelay; /* modulation delay (0x8000) */ | ||
| 111 | unsigned short modatkhld; /* modulation attack & hold time (0x7f7f) */ | ||
| 112 | unsigned short moddcysus; /* modulation decay & sustain (0x7f7f) */ | ||
| 113 | unsigned short modrelease; /* modulation release time (0x807f) */ | ||
| 114 | short modkeyhold, modkeydecay; /* envelope change per key (not used) */ | ||
| 115 | unsigned short voldelay; /* volume delay (0x8000) */ | ||
| 116 | unsigned short volatkhld; /* volume attack & hold time (0x7f7f) */ | ||
| 117 | unsigned short voldcysus; /* volume decay & sustain (0x7f7f) */ | ||
| 118 | unsigned short volrelease; /* volume release time (0x807f) */ | ||
| 119 | short volkeyhold, volkeydecay; /* envelope change per key (not used) */ | ||
| 120 | unsigned short lfo1delay; /* LFO1 delay (0x8000) */ | ||
| 121 | unsigned short lfo2delay; /* LFO2 delay (0x8000) */ | ||
| 122 | unsigned short pefe; /* modulation pitch & cutoff (0x0000) */ | ||
| 123 | unsigned short fmmod; /* LFO1 pitch & cutoff (0x0000) */ | ||
| 124 | unsigned short tremfrq; /* LFO1 volume & freq (0x0000) */ | ||
| 125 | unsigned short fm2frq2; /* LFO2 pitch & freq (0x0000) */ | ||
| 126 | unsigned char cutoff; /* initial cutoff (0xff) */ | ||
| 127 | unsigned char filterQ; /* initial filter Q [0-15] (0x0) */ | ||
| 128 | unsigned char chorus; /* chorus send (0x00) */ | ||
| 129 | unsigned char reverb; /* reverb send (0x00) */ | ||
| 130 | unsigned short reserved[4]; /* not used */ | ||
| 131 | } awe_voice_parm; | ||
| 132 | |||
| 133 | typedef struct _awe_voice_parm_block { | ||
| 134 | unsigned short moddelay; /* modulation delay (0x8000) */ | ||
| 135 | unsigned char modatk, modhld; | ||
| 136 | unsigned char moddcy, modsus; | ||
| 137 | unsigned char modrel, moddummy; | ||
| 138 | short modkeyhold, modkeydecay; /* envelope change per key (not used) */ | ||
| 139 | unsigned short voldelay; /* volume delay (0x8000) */ | ||
| 140 | unsigned char volatk, volhld; | ||
| 141 | unsigned char voldcy, volsus; | ||
| 142 | unsigned char volrel, voldummy; | ||
| 143 | short volkeyhold, volkeydecay; /* envelope change per key (not used) */ | ||
| 144 | unsigned short lfo1delay; /* LFO1 delay (0x8000) */ | ||
| 145 | unsigned short lfo2delay; /* LFO2 delay (0x8000) */ | ||
| 146 | unsigned char env1fc, env1pit; | ||
| 147 | unsigned char lfo1fc, lfo1pit; | ||
| 148 | unsigned char lfo1freq, lfo1vol; | ||
| 149 | unsigned char lfo2freq, lfo2pit; | ||
| 150 | unsigned char cutoff; /* initial cutoff (0xff) */ | ||
| 151 | unsigned char filterQ; /* initial filter Q [0-15] (0x0) */ | ||
| 152 | unsigned char chorus; /* chorus send (0x00) */ | ||
| 153 | unsigned char reverb; /* reverb send (0x00) */ | ||
| 154 | unsigned short reserved[4]; /* not used */ | ||
| 155 | } awe_voice_parm_block; | ||
| 156 | |||
| 157 | #define AWE_VOICE_PARM_SIZE 48 | ||
| 158 | |||
| 159 | |||
| 160 | /* wave table parameters: 92 bytes */ | ||
| 161 | typedef struct _awe_voice_info { | ||
| 162 | unsigned short sf_id; /* file id (should be zero) */ | ||
| 163 | unsigned short sample; /* sample id */ | ||
| 164 | int start, end; /* sample offset correction */ | ||
| 165 | int loopstart, loopend; /* loop offset correction */ | ||
| 166 | short rate_offset; /* sample rate pitch offset */ | ||
| 167 | unsigned short mode; /* sample mode */ | ||
| 168 | #define AWE_MODE_ROMSOUND 0x8000 | ||
| 169 | #define AWE_MODE_STEREO 1 | ||
| 170 | #define AWE_MODE_LOOPING 2 | ||
| 171 | #define AWE_MODE_NORELEASE 4 /* obsolete */ | ||
| 172 | #define AWE_MODE_INIT_PARM 8 | ||
| 173 | |||
| 174 | short root; /* midi root key */ | ||
| 175 | short tune; /* pitch tuning (in cents) */ | ||
| 176 | signed char low, high; /* key note range */ | ||
| 177 | signed char vellow, velhigh; /* velocity range */ | ||
| 178 | signed char fixkey, fixvel; /* fixed key, velocity */ | ||
| 179 | signed char pan, fixpan; /* panning, fixed panning */ | ||
| 180 | short exclusiveClass; /* exclusive class (0 = none) */ | ||
| 181 | unsigned char amplitude; /* sample volume (127 max) */ | ||
