blob: e4d31c8068bc26338fb2df864fc3799ccc65e366 [file] [log] [blame]
Ben Cheng655a7c02013-10-16 16:09:24 -07001/****************************************************************************
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 Baod7db5942015-01-28 10:07:51 -080024#define SNDRV_OSS_PATCHKEY(id) (0xfd00 | id)
Ben Cheng655a7c02013-10-16 16:09:24 -070025#else
Tao Baod7db5942015-01-28 10:07:51 -080026#define SNDRV_OSS_PATCHKEY(id) ((id << 8) | 0xfd)
Ben Cheng655a7c02013-10-16 16:09:24 -070027#endif
28/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
29struct soundfont_patch_info {
Tao Baod7db5942015-01-28 10:07:51 -080030 unsigned short key;
Ben Cheng655a7c02013-10-16 16:09:24 -070031#define SNDRV_OSS_SOUNDFONT_PATCH SNDRV_OSS_PATCHKEY(0x07)
Tao Baod7db5942015-01-28 10:07:51 -080032 short device_no;
Ben Cheng655a7c02013-10-16 16:09:24 -070033/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -080034 unsigned short sf_id;
35 short optarg;
36 int len;
37 short type;
Ben Cheng655a7c02013-10-16 16:09:24 -070038/* 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 Baod7db5942015-01-28 10:07:51 -080049 short reserved;
Ben Cheng655a7c02013-10-16 16:09:24 -070050};
51#define SNDRV_SFNT_PATCH_NAME_LEN 32
52struct soundfont_open_parm {
53/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -080054 unsigned short type;
Ben Cheng655a7c02013-10-16 16:09:24 -070055#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 Baod7db5942015-01-28 10:07:51 -080061 short reserved;
62 char name[SNDRV_SFNT_PATCH_NAME_LEN];
Ben Cheng655a7c02013-10-16 16:09:24 -070063/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
64};
65struct soundfont_voice_parm {
Tao Baod7db5942015-01-28 10:07:51 -080066 unsigned short moddelay;
67 unsigned short modatkhld;
Ben Cheng655a7c02013-10-16 16:09:24 -070068/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -080069 unsigned short moddcysus;
70 unsigned short modrelease;
71 short modkeyhold, modkeydecay;
72 unsigned short voldelay;
Ben Cheng655a7c02013-10-16 16:09:24 -070073/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -080074 unsigned short volatkhld;
75 unsigned short voldcysus;
76 unsigned short volrelease;
77 short volkeyhold, volkeydecay;
Ben Cheng655a7c02013-10-16 16:09:24 -070078/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -080079 unsigned short lfo1delay;
80 unsigned short lfo2delay;
81 unsigned short pefe;
82 unsigned short fmmod;
Ben Cheng655a7c02013-10-16 16:09:24 -070083/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -080084 unsigned short tremfrq;
85 unsigned short fm2frq2;
86 unsigned char cutoff;
87 unsigned char filterQ;
Ben Cheng655a7c02013-10-16 16:09:24 -070088/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -080089 unsigned char chorus;
90 unsigned char reverb;
91 unsigned short reserved[4];
Ben Cheng655a7c02013-10-16 16:09:24 -070092};
93/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
94struct soundfont_voice_info {
Tao Baod7db5942015-01-28 10:07:51 -080095 unsigned short sf_id;
96 unsigned short sample;
97 int start, end;
Ben Cheng655a7c02013-10-16 16:09:24 -070098/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -080099 int loopstart, loopend;
100 short rate_offset;
101 unsigned short mode;
Ben Cheng655a7c02013-10-16 16:09:24 -0700102#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 Baod7db5942015-01-28 10:07:51 -0800109 short root;
110 short tune;
111 unsigned char low, high;
112 unsigned char vellow, velhigh;
Ben Cheng655a7c02013-10-16 16:09:24 -0700113/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800114 signed char fixkey, fixvel;
115 signed char pan, fixpan;
116 short exclusiveClass;
117 unsigned char amplitude;
Ben Cheng655a7c02013-10-16 16:09:24 -0700118/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800119 unsigned char attenuation;
120 short scaleTuning;
121 struct soundfont_voice_parm parm;
122 unsigned short sample_mode;
Ben Cheng655a7c02013-10-16 16:09:24 -0700123/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
124};
125struct soundfont_voice_rec_hdr {
Tao Baod7db5942015-01-28 10:07:51 -0800126 unsigned char bank;
127 unsigned char instr;
Ben Cheng655a7c02013-10-16 16:09:24 -0700128/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800129 char nvoices;
130 char write_mode;
Ben Cheng655a7c02013-10-16 16:09:24 -0700131#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};
136struct soundfont_sample_info {
Tao Baod7db5942015-01-28 10:07:51 -0800137 unsigned short sf_id;
Ben Cheng655a7c02013-10-16 16:09:24 -0700138/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800139 unsigned short sample;
140 int start, end;
141 int loopstart, loopend;
142 int size;
Ben Cheng655a7c02013-10-16 16:09:24 -0700143/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800144 short dummy;
145 unsigned short mode_flags;
Ben Cheng655a7c02013-10-16 16:09:24 -0700146#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 Baod7db5942015-01-28 10:07:51 -0800156 unsigned int truesize;
Ben Cheng655a7c02013-10-16 16:09:24 -0700157};
158/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
159struct soundfont_voice_map {
Tao Baod7db5942015-01-28 10:07:51 -0800160 int map_bank, map_instr, map_key;
161 int src_bank, src_instr, src_key;
Ben Cheng655a7c02013-10-16 16:09:24 -0700162};
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)
166struct snd_emux_misc_mode {
Tao Baod7db5942015-01-28 10:07:51 -0800167 int port;
Ben Cheng655a7c02013-10-16 16:09:24 -0700168/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800169 int mode;
170 int value;
171 int value2;
Ben Cheng655a7c02013-10-16 16:09:24 -0700172};
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