| Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 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 */ | 
| Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 24 | #define SNDRV_OSS_PATCHKEY(id) (0xfd00 | id) | 
| Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 25 | #else | 
| Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 26 | #define SNDRV_OSS_PATCHKEY(id) ((id << 8) | 0xfd) | 
| Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 27 | #endif | 
|  | 28 | /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ | 
|  | 29 | struct soundfont_patch_info { | 
| Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 30 | unsigned short key; | 
| Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 31 | #define SNDRV_OSS_SOUNDFONT_PATCH SNDRV_OSS_PATCHKEY(0x07) | 
| Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 32 | short device_no; | 
| Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 33 | /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ | 
| Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 34 | unsigned short sf_id; | 
|  | 35 | short optarg; | 
|  | 36 | int len; | 
|  | 37 | short type; | 
| Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 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 */ | 
| Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 49 | short reserved; | 
| Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 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 */ | 
| Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 54 | unsigned short type; | 
| Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 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 | 
| Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 61 | short reserved; | 
|  | 62 | char name[SNDRV_SFNT_PATCH_NAME_LEN]; | 
| Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 63 | /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ | 
|  | 64 | }; | 
|  | 65 | struct soundfont_voice_parm { | 
| Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 66 | unsigned short moddelay; | 
|  | 67 | unsigned short modatkhld; | 
| Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 68 | /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ | 
| Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 69 | unsigned short moddcysus; | 
|  | 70 | unsigned short modrelease; | 
|  | 71 | short modkeyhold, modkeydecay; | 
|  | 72 | unsigned short voldelay; | 
| Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 73 | /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ | 
| Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 74 | unsigned short volatkhld; | 
|  | 75 | unsigned short voldcysus; | 
|  | 76 | unsigned short volrelease; | 
|  | 77 | short volkeyhold, volkeydecay; | 
| Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 78 | /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ | 
| Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 79 | unsigned short lfo1delay; | 
|  | 80 | unsigned short lfo2delay; | 
|  | 81 | unsigned short pefe; | 
|  | 82 | unsigned short fmmod; | 
| Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 83 | /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ | 
| Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 84 | unsigned short tremfrq; | 
|  | 85 | unsigned short fm2frq2; | 
|  | 86 | unsigned char cutoff; | 
|  | 87 | unsigned char filterQ; | 
| Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 88 | /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ | 
| Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 89 | unsigned char chorus; | 
|  | 90 | unsigned char reverb; | 
|  | 91 | unsigned short reserved[4]; | 
| Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 92 | }; | 
|  | 93 | /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ | 
|  | 94 | struct soundfont_voice_info { | 
| Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 95 | unsigned short sf_id; | 
|  | 96 | unsigned short sample; | 
|  | 97 | int start, end; | 
| Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 98 | /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ | 
| Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 99 | int loopstart, loopend; | 
|  | 100 | short rate_offset; | 
|  | 101 | unsigned short mode; | 
| Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 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 */ | 
| Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 109 | short root; | 
|  | 110 | short tune; | 
|  | 111 | unsigned char low, high; | 
|  | 112 | unsigned char vellow, velhigh; | 
| Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 113 | /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ | 
| Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 114 | signed char fixkey, fixvel; | 
|  | 115 | signed char pan, fixpan; | 
|  | 116 | short exclusiveClass; | 
|  | 117 | unsigned char amplitude; | 
| Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 118 | /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ | 
| Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 119 | unsigned char attenuation; | 
|  | 120 | short scaleTuning; | 
|  | 121 | struct soundfont_voice_parm parm; | 
|  | 122 | unsigned short sample_mode; | 
| Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 123 | /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ | 
|  | 124 | }; | 
|  | 125 | struct soundfont_voice_rec_hdr { | 
| Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 126 | unsigned char bank; | 
|  | 127 | unsigned char instr; | 
| Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 128 | /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ | 
| Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 129 | char nvoices; | 
|  | 130 | char write_mode; | 
| Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 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 { | 
| Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 137 | unsigned short sf_id; | 
| Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 138 | /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ | 
| Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 139 | unsigned short sample; | 
|  | 140 | int start, end; | 
|  | 141 | int loopstart, loopend; | 
|  | 142 | int size; | 
| Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 143 | /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ | 
| Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 144 | short dummy; | 
|  | 145 | unsigned short mode_flags; | 
| Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 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 | 
| Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 156 | unsigned int truesize; | 
| Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 157 | }; | 
|  | 158 | /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ | 
|  | 159 | struct soundfont_voice_map { | 
| Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 160 | int map_bank, map_instr, map_key; | 
|  | 161 | int src_bank, src_instr, src_key; | 
| Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 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 { | 
| Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 167 | int port; | 
| Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 168 | /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ | 
| Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 169 | int mode; | 
|  | 170 | int value; | 
|  | 171 | int value2; | 
| Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 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 |