1 /**************************************************************************** 2 **************************************************************************** 3 *** 4 *** This header was automatically generated from a Linux kernel header 5 *** of the same name, to make information necessary for userspace to 6 *** call into the kernel available to libc. It contains only constants, 7 *** structures, and macros generated from the original header, and thus, 8 *** contains no copyrightable information. 9 *** 10 *** To edit the content of this header, modify the corresponding 11 *** source file (e.g. under external/kernel-headers/original/) then 12 *** run bionic/libc/kernel/tools/update_all.py 13 *** 14 *** Any manual change here will be lost the next time this script will 15 *** be run. You've been warned! 16 *** 17 **************************************************************************** 18 ****************************************************************************/ 19 #ifndef __SOUND_SFNT_INFO_H 20 #define __SOUND_SFNT_INFO_H 21 #include <sound/asound.h> 22 #ifdef SNDRV_BIG_ENDIAN 23 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 24 #define SNDRV_OSS_PATCHKEY(id) (0xfd00 | id) 25 #else 26 #define SNDRV_OSS_PATCHKEY(id) ((id << 8) | 0xfd) 27 #endif 28 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 29 struct soundfont_patch_info { 30 unsigned short key; 31 #define SNDRV_OSS_SOUNDFONT_PATCH SNDRV_OSS_PATCHKEY(0x07) 32 short device_no; 33 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 34 unsigned short sf_id; 35 short optarg; 36 int len; 37 short type; 38 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 39 #define SNDRV_SFNT_LOAD_INFO 0 40 #define SNDRV_SFNT_LOAD_DATA 1 41 #define SNDRV_SFNT_OPEN_PATCH 2 42 #define SNDRV_SFNT_CLOSE_PATCH 3 43 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 44 #define SNDRV_SFNT_REPLACE_DATA 5 45 #define SNDRV_SFNT_MAP_PRESET 6 46 #define SNDRV_SFNT_PROBE_DATA 8 47 #define SNDRV_SFNT_REMOVE_INFO 9 48 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 49 short reserved; 50 }; 51 #define SNDRV_SFNT_PATCH_NAME_LEN 32 52 struct soundfont_open_parm { 53 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 54 unsigned short type; 55 #define SNDRV_SFNT_PAT_TYPE_MISC 0 56 #define SNDRV_SFNT_PAT_TYPE_GUS 6 57 #define SNDRV_SFNT_PAT_TYPE_MAP 7 58 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 59 #define SNDRV_SFNT_PAT_LOCKED 0x100 60 #define SNDRV_SFNT_PAT_SHARED 0x200 61 short reserved; 62 char name[SNDRV_SFNT_PATCH_NAME_LEN]; 63 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 64 }; 65 struct soundfont_voice_parm { 66 unsigned short moddelay; 67 unsigned short modatkhld; 68 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 69 unsigned short moddcysus; 70 unsigned short modrelease; 71 short modkeyhold, modkeydecay; 72 unsigned short voldelay; 73 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 74 unsigned short volatkhld; 75 unsigned short voldcysus; 76 unsigned short volrelease; 77 short volkeyhold, volkeydecay; 78 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 79 unsigned short lfo1delay; 80 unsigned short lfo2delay; 81 unsigned short pefe; 82 unsigned short fmmod; 83 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 84 unsigned short tremfrq; 85 unsigned short fm2frq2; 86 unsigned char cutoff; 87 unsigned char filterQ; 88 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 89 unsigned char chorus; 90 unsigned char reverb; 91 unsigned short reserved[4]; 92 }; 93 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 94 struct soundfont_voice_info { 95 unsigned short sf_id; 96 unsigned short sample; 97 int start, end; 98 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 99 int loopstart, loopend; 100 short rate_offset; 101 unsigned short mode; 102 #define SNDRV_SFNT_MODE_ROMSOUND 0x8000 103 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 104 #define SNDRV_SFNT_MODE_STEREO 1 105 #define SNDRV_SFNT_MODE_LOOPING 2 106 #define SNDRV_SFNT_MODE_NORELEASE 4 107 #define SNDRV_SFNT_MODE_INIT_PARM 8 108 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 109 short root; 110 short tune; 111 unsigned char low, high; 112 unsigned char vellow, velhigh; 113 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 114 signed char fixkey, fixvel; 115 signed char pan, fixpan; 116 short exclusiveClass; 117 unsigned char amplitude; 118 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 119 unsigned char attenuation; 120 short scaleTuning; 121 struct soundfont_voice_parm parm; 122 unsigned short sample_mode; 123 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 124 }; 125 struct soundfont_voice_rec_hdr { 126 unsigned char bank; 127 unsigned char instr; 128 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 129 char nvoices; 130 char write_mode; 131 #define SNDRV_SFNT_WR_APPEND 0 132 #define SNDRV_SFNT_WR_EXCLUSIVE 1 133 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 134 #define SNDRV_SFNT_WR_REPLACE 2 135 }; 136 struct soundfont_sample_info { 137 unsigned short sf_id; 138 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 139 unsigned short sample; 140 int start, end; 141 int loopstart, loopend; 142 int size; 143 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 144 short dummy; 145 unsigned short mode_flags; 146 #define SNDRV_SFNT_SAMPLE_8BITS 1 147 #define SNDRV_SFNT_SAMPLE_UNSIGNED 2 148 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 149 #define SNDRV_SFNT_SAMPLE_NO_BLANK 4 150 #define SNDRV_SFNT_SAMPLE_SINGLESHOT 8 151 #define SNDRV_SFNT_SAMPLE_BIDIR_LOOP 16 152 #define SNDRV_SFNT_SAMPLE_STEREO_LEFT 32 153 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 154 #define SNDRV_SFNT_SAMPLE_STEREO_RIGHT 64 155 #define SNDRV_SFNT_SAMPLE_REVERSE_LOOP 128 156 unsigned int truesize; 157 }; 158 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 159 struct soundfont_voice_map { 160 int map_bank, map_instr, map_key; 161 int src_bank, src_instr, src_key; 162 }; 163 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 164 #define SNDRV_EMUX_HWDEP_NAME "Emux WaveTable" 165 #define SNDRV_EMUX_VERSION ((1 << 16) | (0 << 8) | 0) 166 struct snd_emux_misc_mode { 167 int port; 168 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 169 int mode; 170 int value; 171 int value2; 172 }; 173 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 174 #define SNDRV_EMUX_IOCTL_VERSION _IOR('H', 0x80, unsigned int) 175 #define SNDRV_EMUX_IOCTL_LOAD_PATCH _IOWR('H', 0x81, struct soundfont_patch_info) 176 #define SNDRV_EMUX_IOCTL_RESET_SAMPLES _IO('H', 0x82) 177 #define SNDRV_EMUX_IOCTL_REMOVE_LAST_SAMPLES _IO('H', 0x83) 178 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 179 #define SNDRV_EMUX_IOCTL_MEM_AVAIL _IOW('H', 0x84, int) 180 #define SNDRV_EMUX_IOCTL_MISC_MODE _IOWR('H', 0x84, struct snd_emux_misc_mode) 181 #endif 182