1 /* 2 * This file is auto-generated. Modifications will be lost. 3 * 4 * See https://android.googlesource.com/platform/bionic/+/master/libc/kernel/ 5 * for more information. 6 */ 7 #ifndef _UAPI__SOUND_SB16_CSP_H 8 #define _UAPI__SOUND_SB16_CSP_H 9 #define SNDRV_SB_CSP_MODE_NONE 0x00 10 #define SNDRV_SB_CSP_MODE_DSP_READ 0x01 11 #define SNDRV_SB_CSP_MODE_DSP_WRITE 0x02 12 #define SNDRV_SB_CSP_MODE_QSOUND 0x04 13 #define SNDRV_SB_CSP_LOAD_FROMUSER 0x01 14 #define SNDRV_SB_CSP_LOAD_INITBLOCK 0x02 15 #define SNDRV_SB_CSP_SAMPLE_8BIT 0x01 16 #define SNDRV_SB_CSP_SAMPLE_16BIT 0x02 17 #define SNDRV_SB_CSP_MONO 0x01 18 #define SNDRV_SB_CSP_STEREO 0x02 19 #define SNDRV_SB_CSP_RATE_8000 0x01 20 #define SNDRV_SB_CSP_RATE_11025 0x02 21 #define SNDRV_SB_CSP_RATE_22050 0x04 22 #define SNDRV_SB_CSP_RATE_44100 0x08 23 #define SNDRV_SB_CSP_RATE_ALL 0x0f 24 #define SNDRV_SB_CSP_ST_IDLE 0x00 25 #define SNDRV_SB_CSP_ST_LOADED 0x01 26 #define SNDRV_SB_CSP_ST_RUNNING 0x02 27 #define SNDRV_SB_CSP_ST_PAUSED 0x04 28 #define SNDRV_SB_CSP_ST_AUTO 0x08 29 #define SNDRV_SB_CSP_ST_QSOUND 0x10 30 #define SNDRV_SB_CSP_QSOUND_MAX_RIGHT 0x20 31 #define SNDRV_SB_CSP_MAX_MICROCODE_FILE_SIZE 0x3000 32 struct snd_sb_csp_mc_header { 33 char codec_name[16]; 34 unsigned short func_req; 35 }; 36 struct snd_sb_csp_microcode { 37 struct snd_sb_csp_mc_header info; 38 unsigned char data[SNDRV_SB_CSP_MAX_MICROCODE_FILE_SIZE]; 39 }; 40 struct snd_sb_csp_start { 41 int sample_width; 42 int channels; 43 }; 44 struct snd_sb_csp_info { 45 char codec_name[16]; 46 unsigned short func_nr; 47 unsigned int acc_format; 48 unsigned short acc_channels; 49 unsigned short acc_width; 50 unsigned short acc_rates; 51 unsigned short csp_mode; 52 unsigned short run_channels; 53 unsigned short run_width; 54 unsigned short version; 55 unsigned short state; 56 }; 57 #define SNDRV_SB_CSP_IOCTL_INFO _IOR('H', 0x10, struct snd_sb_csp_info) 58 #define SNDRV_SB_CSP_IOCTL_LOAD_CODE _IOC(_IOC_WRITE, 'H', 0x11, sizeof(struct snd_sb_csp_microcode)) 59 #define SNDRV_SB_CSP_IOCTL_UNLOAD_CODE _IO('H', 0x12) 60 #define SNDRV_SB_CSP_IOCTL_START _IOW('H', 0x13, struct snd_sb_csp_start) 61 #define SNDRV_SB_CSP_IOCTL_STOP _IO('H', 0x14) 62 #define SNDRV_SB_CSP_IOCTL_PAUSE _IO('H', 0x15) 63 #define SNDRV_SB_CSP_IOCTL_RESTART _IO('H', 0x16) 64 #endif 65