blob: a02e6bc7493a5edef82fcc39ca049bb84ee8a4cb [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 _UAPI__SOUND_SB16_CSP_H
20#define _UAPI__SOUND_SB16_CSP_H
21#define SNDRV_SB_CSP_MODE_NONE 0x00
22#define SNDRV_SB_CSP_MODE_DSP_READ 0x01
23/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
24#define SNDRV_SB_CSP_MODE_DSP_WRITE 0x02
25#define SNDRV_SB_CSP_MODE_QSOUND 0x04
26#define SNDRV_SB_CSP_LOAD_FROMUSER 0x01
27#define SNDRV_SB_CSP_LOAD_INITBLOCK 0x02
28/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
29#define SNDRV_SB_CSP_SAMPLE_8BIT 0x01
30#define SNDRV_SB_CSP_SAMPLE_16BIT 0x02
31#define SNDRV_SB_CSP_MONO 0x01
32#define SNDRV_SB_CSP_STEREO 0x02
33/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
34#define SNDRV_SB_CSP_RATE_8000 0x01
35#define SNDRV_SB_CSP_RATE_11025 0x02
36#define SNDRV_SB_CSP_RATE_22050 0x04
37#define SNDRV_SB_CSP_RATE_44100 0x08
38/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
39#define SNDRV_SB_CSP_RATE_ALL 0x0f
40#define SNDRV_SB_CSP_ST_IDLE 0x00
41#define SNDRV_SB_CSP_ST_LOADED 0x01
42#define SNDRV_SB_CSP_ST_RUNNING 0x02
43/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
44#define SNDRV_SB_CSP_ST_PAUSED 0x04
45#define SNDRV_SB_CSP_ST_AUTO 0x08
46#define SNDRV_SB_CSP_ST_QSOUND 0x10
47#define SNDRV_SB_CSP_QSOUND_MAX_RIGHT 0x20
48/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
49#define SNDRV_SB_CSP_MAX_MICROCODE_FILE_SIZE 0x3000
50struct snd_sb_csp_mc_header {
Tao Baod7db5942015-01-28 10:07:51 -080051 char codec_name[16];
52 unsigned short func_req;
Ben Cheng655a7c02013-10-16 16:09:24 -070053/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
54};
55struct snd_sb_csp_microcode {
Tao Baod7db5942015-01-28 10:07:51 -080056 struct snd_sb_csp_mc_header info;
57 unsigned char data[SNDRV_SB_CSP_MAX_MICROCODE_FILE_SIZE];
Ben Cheng655a7c02013-10-16 16:09:24 -070058/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
59};
60struct snd_sb_csp_start {
Tao Baod7db5942015-01-28 10:07:51 -080061 int sample_width;
62 int channels;
Ben Cheng655a7c02013-10-16 16:09:24 -070063/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
64};
65struct snd_sb_csp_info {
Tao Baod7db5942015-01-28 10:07:51 -080066 char codec_name[16];
67 unsigned short func_nr;
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 int acc_format;
70 unsigned short acc_channels;
71 unsigned short acc_width;
72 unsigned short acc_rates;
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 csp_mode;
75 unsigned short run_channels;
76 unsigned short run_width;
77 unsigned short version;
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 state;
Ben Cheng655a7c02013-10-16 16:09:24 -070080};
81#define SNDRV_SB_CSP_IOCTL_INFO _IOR('H', 0x10, struct snd_sb_csp_info)
Tao Baod7db5942015-01-28 10:07:51 -080082#define SNDRV_SB_CSP_IOCTL_LOAD_CODE _IOC(_IOC_WRITE, 'H', 0x11, sizeof(struct snd_sb_csp_microcode))
Ben Cheng655a7c02013-10-16 16:09:24 -070083/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
84#define SNDRV_SB_CSP_IOCTL_UNLOAD_CODE _IO('H', 0x12)
85#define SNDRV_SB_CSP_IOCTL_START _IOW('H', 0x13, struct snd_sb_csp_start)
86#define SNDRV_SB_CSP_IOCTL_STOP _IO('H', 0x14)
87#define SNDRV_SB_CSP_IOCTL_PAUSE _IO('H', 0x15)
88/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
89#define SNDRV_SB_CSP_IOCTL_RESTART _IO('H', 0x16)
90#endif