/*
* This file is auto - generated . Modifications will be lost .
*
* See https : //android.googlesource.com/platform/bionic/+/master/libc/kernel/
* for more information .
*/
#ifndef _UAPI__SOUND_EMU10K1_H
#define _UAPI__SOUND_EMU10K1_H
#ifdef __linux__
#include <linux/types.h>
#endif
#define EMU10K1_FX8010_PCM_COUNT 8
#define __EMU10K1_DECLARE_BITMAP(name,bits) unsigned long name[(bits) / (sizeof (unsigned long ) * 8 )]
#define iMAC0 0 x00
#define iMAC1 0 x01
#define iMAC2 0 x02
#define iMAC3 0 x03
#define iMACINT0 0 x04
#define iMACINT1 0 x05
#define iACC3 0 x06
#define iMACMV 0 x07
#define iANDXOR 0 x08
#define iTSTNEG 0 x09
#define iLIMITGE 0 x0a
#define iLIMITLT 0 x0b
#define iLOG 0 x0c
#define iEXP 0 x0d
#define iINTERP 0 x0e
#define iSKIP 0 x0f
#define LOWORD_OPX_MASK 0 x000ffc00
#define LOWORD_OPY_MASK 0 x000003ff
#define HIWORD_OPCODE_MASK 0 x00f00000
#define HIWORD_RESULT_MASK 0 x000ffc00
#define HIWORD_OPA_MASK 0 x000003ff
#define A_LOWORD_OPX_MASK 0 x007ff000
#define A_LOWORD_OPY_MASK 0 x000007ff
#define A_HIWORD_OPCODE_MASK 0 x0f000000
#define A_HIWORD_RESULT_MASK 0 x007ff000
#define A_HIWORD_OPA_MASK 0 x000007ff
#define FXBUS(x) (0 x00 + (x))
#define EXTIN(x) (0 x10 + (x))
#define EXTOUT(x) (0 x20 + (x))
#define FXBUS2(x) (0 x30 + (x))
#define A_FXBUS(x) (0 x00 + (x))
#define A_EXTIN(x) (0 x40 + (x))
#define A_P16VIN(x) (0 x50 + (x))
#define A_EXTOUT(x) (0 x60 + (x))
#define A_FXBUS2(x) (0 x80 + (x))
#define A_EMU32OUTH(x) (0 xa0 + (x))
#define A_EMU32OUTL(x) (0 xb0 + (x))
#define A3_EMU32IN(x) (0 x160 + (x))
#define A3_EMU32OUT(x) (0 x1E0 + (x))
#define C_00000000 0 x40
#define C_00000001 0 x41
#define C_00000002 0 x42
#define C_00000003 0 x43
#define C_00000004 0 x44
#define C_00000008 0 x45
#define C_00000010 0 x46
#define C_00000020 0 x47
#define C_00000100 0 x48
#define C_00010000 0 x49
#define C_00080000 0 x4a
#define C_10000000 0 x4b
#define C_20000000 0 x4c
#define C_40000000 0 x4d
#define C_80000000 0 x4e
#define C_7fffffff 0 x4f
#define C_ffffffff 0 x50
#define C_fffffffe 0 x51
#define C_c0000000 0 x52
#define C_4f1bbcdc 0 x53
#define C_5a7ef9db 0 x54
#define C_00100000 0 x55
#define GPR_ACCU 0 x56
#define GPR_COND 0 x57
#define GPR_NOISE0 0 x58
#define GPR_NOISE1 0 x59
#define GPR_IRQ 0 x5a
#define GPR_DBAC 0 x5b
#define A_C_00000000 0 xc0
#define A_C_00000001 0 xc1
#define A_C_00000002 0 xc2
#define A_C_00000003 0 xc3
#define A_C_00000004 0 xc4
#define A_C_00000008 0 xc5
#define A_C_00000010 0 xc6
#define A_C_00000020 0 xc7
#define A_C_00000100 0 xc8
#define A_C_00010000 0 xc9
#define A_C_00000800 0 xca
#define A_C_10000000 0 xcb
#define A_C_20000000 0 xcc
#define A_C_40000000 0 xcd
#define A_C_80000000 0 xce
#define A_C_7fffffff 0 xcf
#define A_C_ffffffff 0 xd0
#define A_C_fffffffe 0 xd1
#define A_C_c0000000 0 xd2
#define A_C_4f1bbcdc 0 xd3
#define A_C_5a7ef9db 0 xd4
#define A_C_00100000 0 xd5
#define A_GPR_ACCU 0 xd6
#define A_GPR_COND 0 xd7
#define A_GPR_NOISE0 0 xd8
#define A_GPR_NOISE1 0 xd9
#define A_GPR_IRQ 0 xda
#define A_GPR_DBAC 0 xdb
#define A_GPR_DBACE 0 xde
#define FXGPREGBASE 0 x100
#define A_FXGPREGBASE 0 x400
#define A_TANKMEMCTLREGBASE 0 x100
#define A_TANKMEMCTLREG_MASK 0 x1f
#define TANKMEMDATAREGBASE 0 x200
#define TANKMEMDATAREG_MASK 0 x000fffff
#define TANKMEMADDRREGBASE 0 x300
#define TANKMEMADDRREG_ADDR_MASK 0 x000fffff
#define TANKMEMADDRREG_CLEAR 0 x00800000
#define TANKMEMADDRREG_ALIGN 0 x00400000
#define TANKMEMADDRREG_WRITE 0 x00200000
#define TANKMEMADDRREG_READ 0 x00100000
#define GPR(x) (FXGPREGBASE + (x))
#define ITRAM_DATA(x) (TANKMEMDATAREGBASE + 0 x00 + (x))
#define ETRAM_DATA(x) (TANKMEMDATAREGBASE + 0 x80 + (x))
#define ITRAM_ADDR(x) (TANKMEMADDRREGBASE + 0 x00 + (x))
#define ETRAM_ADDR(x) (TANKMEMADDRREGBASE + 0 x80 + (x))
#define A_GPR(x) (A_FXGPREGBASE + (x))
#define A_ITRAM_DATA(x) (TANKMEMDATAREGBASE + 0 x00 + (x))
#define A_ETRAM_DATA(x) (TANKMEMDATAREGBASE + 0 xc0 + (x))
#define A_ITRAM_ADDR(x) (TANKMEMADDRREGBASE + 0 x00 + (x))
#define A_ETRAM_ADDR(x) (TANKMEMADDRREGBASE + 0 xc0 + (x))
#define A_ITRAM_CTL(x) (A_TANKMEMCTLREGBASE + 0 x00 + (x))
#define A_ETRAM_CTL(x) (A_TANKMEMCTLREGBASE + 0 xc0 + (x))
#define CC_REG_NORMALIZED C_00000001
#define CC_REG_BORROW C_00000002
#define CC_REG_MINUS C_00000004
#define CC_REG_ZERO C_00000008
#define CC_REG_SATURATE C_00000010
#define CC_REG_NONZERO C_00000100
#define A_CC_REG_NORMALIZED A_C_00000001
#define A_CC_REG_BORROW A_C_00000002
#define A_CC_REG_MINUS A_C_00000004
#define A_CC_REG_ZERO A_C_00000008
#define A_CC_REG_SATURATE A_C_00000010
#define A_CC_REG_NONZERO A_C_00000100
#define FXBUS_PCM_LEFT 0 x00
#define FXBUS_PCM_RIGHT 0 x01
#define FXBUS_PCM_LEFT_REAR 0 x02
#define FXBUS_PCM_RIGHT_REAR 0 x03
#define FXBUS_MIDI_LEFT 0 x04
#define FXBUS_MIDI_RIGHT 0 x05
#define FXBUS_PCM_CENTER 0 x06
#define FXBUS_PCM_LFE 0 x07
#define FXBUS_PCM_LEFT_FRONT 0 x08
#define FXBUS_PCM_RIGHT_FRONT 0 x09
#define FXBUS_MIDI_REVERB 0 x0c
#define FXBUS_MIDI_CHORUS 0 x0d
#define FXBUS_PCM_LEFT_SIDE 0 x0e
#define FXBUS_PCM_RIGHT_SIDE 0 x0f
#define FXBUS_PT_LEFT 0 x14
#define FXBUS_PT_RIGHT 0 x15
#define EXTIN_AC97_L 0 x00
#define EXTIN_AC97_R 0 x01
#define EXTIN_SPDIF_CD_L 0 x02
#define EXTIN_SPDIF_CD_R 0 x03
#define EXTIN_ZOOM_L 0 x04
#define EXTIN_ZOOM_R 0 x05
#define EXTIN_TOSLINK_L 0 x06
#define EXTIN_TOSLINK_R 0 x07
#define EXTIN_LINE1_L 0 x08
#define EXTIN_LINE1_R 0 x09
#define EXTIN_COAX_SPDIF_L 0 x0a
#define EXTIN_COAX_SPDIF_R 0 x0b
#define EXTIN_LINE2_L 0 x0c
#define EXTIN_LINE2_R 0 x0d
#define EXTOUT_AC97_L 0 x00
#define EXTOUT_AC97_R 0 x01
#define EXTOUT_TOSLINK_L 0 x02
#define EXTOUT_TOSLINK_R 0 x03
#define EXTOUT_AC97_CENTER 0 x04
#define EXTOUT_AC97_LFE 0 x05
#define EXTOUT_HEADPHONE_L 0 x06
#define EXTOUT_HEADPHONE_R 0 x07
#define EXTOUT_REAR_L 0 x08
#define EXTOUT_REAR_R 0 x09
#define EXTOUT_ADC_CAP_L 0 x0a
#define EXTOUT_ADC_CAP_R 0 x0b
#define EXTOUT_MIC_CAP 0 x0c
#define EXTOUT_AC97_REAR_L 0 x0d
#define EXTOUT_AC97_REAR_R 0 x0e
#define EXTOUT_ACENTER 0 x11
#define EXTOUT_ALFE 0 x12
#define A_EXTIN_AC97_L 0 x00
#define A_EXTIN_AC97_R 0 x01
#define A_EXTIN_SPDIF_CD_L 0 x02
#define A_EXTIN_SPDIF_CD_R 0 x03
#define A_EXTIN_OPT_SPDIF_L 0 x04
#define A_EXTIN_OPT_SPDIF_R 0 x05
#define A_EXTIN_LINE2_L 0 x08
#define A_EXTIN_LINE2_R 0 x09
#define A_EXTIN_ADC_L 0 x0a
#define A_EXTIN_ADC_R 0 x0b
#define A_EXTIN_AUX2_L 0 x0c
#define A_EXTIN_AUX2_R 0 x0d
#define A_EXTOUT_FRONT_L 0 x00
#define A_EXTOUT_FRONT_R 0 x01
#define A_EXTOUT_CENTER 0 x02
#define A_EXTOUT_LFE 0 x03
#define A_EXTOUT_HEADPHONE_L 0 x04
#define A_EXTOUT_HEADPHONE_R 0 x05
#define A_EXTOUT_REAR_L 0 x06
#define A_EXTOUT_REAR_R 0 x07
#define A_EXTOUT_AFRONT_L 0 x08
#define A_EXTOUT_AFRONT_R 0 x09
#define A_EXTOUT_ACENTER 0 x0a
#define A_EXTOUT_ALFE 0 x0b
#define A_EXTOUT_ASIDE_L 0 x0c
#define A_EXTOUT_ASIDE_R 0 x0d
#define A_EXTOUT_AREAR_L 0 x0e
#define A_EXTOUT_AREAR_R 0 x0f
#define A_EXTOUT_AC97_L 0 x10
#define A_EXTOUT_AC97_R 0 x11
#define A_EXTOUT_ADC_CAP_L 0 x16
#define A_EXTOUT_ADC_CAP_R 0 x17
#define A_EXTOUT_MIC_CAP 0 x18
#define EMU10K1_DBG_ZC 0 x80000000
#define EMU10K1_DBG_SATURATION_OCCURED 0 x02000000
#define EMU10K1_DBG_SATURATION_ADDR 0 x01ff0000
#define EMU10K1_DBG_SINGLE_STEP 0 x00008000
#define EMU10K1_DBG_STEP 0 x00004000
#define EMU10K1_DBG_CONDITION_CODE 0 x00003e00
#define EMU10K1_DBG_SINGLE_STEP_ADDR 0 x000001ff
#define A_DBG_ZC 0 x40000000
#define A_DBG_SATURATION_OCCURED 0 x20000000
#define A_DBG_SATURATION_ADDR 0 x0ffc0000
#define A_DBG_SINGLE_STEP 0 x00020000
#define A_DBG_STEP 0 x00010000
#define A_DBG_CONDITION_CODE 0 x0000f800
#define A_DBG_STEP_ADDR 0 x000003ff
struct snd_emu10k1_fx8010_info {
unsigned int internal_tram_size;
unsigned int external_tram_size;
char fxbus_names[16 ][32 ];
char extin_names[16 ][32 ];
char extout_names[32 ][32 ];
unsigned int gpr_controls;
};
#define EMU10K1_GPR_TRANSLATION_NONE 0
#define EMU10K1_GPR_TRANSLATION_TABLE100 1
#define EMU10K1_GPR_TRANSLATION_BASS 2
#define EMU10K1_GPR_TRANSLATION_TREBLE 3
#define EMU10K1_GPR_TRANSLATION_ONOFF 4
#define EMU10K1_GPR_TRANSLATION_NEGATE 5
#define EMU10K1_GPR_TRANSLATION_NEG_TABLE100 6
enum emu10k1_ctl_elem_iface {
EMU10K1_CTL_ELEM_IFACE_MIXER = 2 ,
EMU10K1_CTL_ELEM_IFACE_PCM = 3 ,
};
struct emu10k1_ctl_elem_id {
unsigned int pad;
int iface;
unsigned int device;
unsigned int subdevice;
unsigned char name[44 ];
unsigned int index;
};
struct snd_emu10k1_fx8010_control_gpr {
struct emu10k1_ctl_elem_id id;
unsigned int vcount;
unsigned int count;
unsigned short gpr[32 ];
int value[32 ];
int min;
int max;
unsigned int translation;
const unsigned int * tlv;
};
struct snd_emu10k1_fx8010_control_old_gpr {
struct emu10k1_ctl_elem_id id;
unsigned int vcount;
unsigned int count;
unsigned short gpr[32 ];
unsigned int value[32 ];
unsigned int min;
unsigned int max;
unsigned int translation;
};
struct snd_emu10k1_fx8010_code {
char name[128 ];
__EMU10K1_DECLARE_BITMAP(gpr_valid, 0 x200);
__u32 * gpr_map;
unsigned int gpr_add_control_count;
struct snd_emu10k1_fx8010_control_gpr * gpr_add_controls;
unsigned int gpr_del_control_count;
struct emu10k1_ctl_elem_id * gpr_del_controls;
unsigned int gpr_list_control_count;
unsigned int gpr_list_control_total;
struct snd_emu10k1_fx8010_control_gpr * gpr_list_controls;
__EMU10K1_DECLARE_BITMAP(tram_valid, 0 x100);
__u32 * tram_data_map;
__u32 * tram_addr_map;
__EMU10K1_DECLARE_BITMAP(code_valid, 1024 );
__u32 * code;
};
struct snd_emu10k1_fx8010_tram {
unsigned int address;
unsigned int size;
unsigned int * samples;
};
struct snd_emu10k1_fx8010_pcm_rec {
unsigned int substream;
unsigned int res1;
unsigned int channels;
unsigned int tram_start;
unsigned int buffer_size;
unsigned short gpr_size;
unsigned short gpr_ptr;
unsigned short gpr_count;
unsigned short gpr_tmpcount;
unsigned short gpr_trigger;
unsigned short gpr_running;
unsigned char pad;
unsigned char etram[32 ];
unsigned int res2;
};
#define SNDRV_EMU10K1_VERSION SNDRV_PROTOCOL_VERSION(1 , 0 , 1 )
#define SNDRV_EMU10K1_IOCTL_INFO _IOR('H' , 0 x10, struct snd_emu10k1_fx8010_info)
#define SNDRV_EMU10K1_IOCTL_CODE_POKE _IOW('H' , 0 x11, struct snd_emu10k1_fx8010_code)
#define SNDRV_EMU10K1_IOCTL_CODE_PEEK _IOWR('H' , 0 x12, struct snd_emu10k1_fx8010_code)
#define SNDRV_EMU10K1_IOCTL_TRAM_SETUP _IOW('H' , 0 x20, int )
#define SNDRV_EMU10K1_IOCTL_TRAM_POKE _IOW('H' , 0 x21, struct snd_emu10k1_fx8010_tram)
#define SNDRV_EMU10K1_IOCTL_TRAM_PEEK _IOWR('H' , 0 x22, struct snd_emu10k1_fx8010_tram)
#define SNDRV_EMU10K1_IOCTL_PCM_POKE _IOW('H' , 0 x30, struct snd_emu10k1_fx8010_pcm_rec)
#define SNDRV_EMU10K1_IOCTL_PCM_PEEK _IOWR('H' , 0 x31, struct snd_emu10k1_fx8010_pcm_rec)
#define SNDRV_EMU10K1_IOCTL_PVERSION _IOR('H' , 0 x40, int )
#define SNDRV_EMU10K1_IOCTL_STOP _IO('H' , 0 x80)
#define SNDRV_EMU10K1_IOCTL_CONTINUE _IO('H' , 0 x81)
#define SNDRV_EMU10K1_IOCTL_ZERO_TRAM_COUNTER _IO('H' , 0 x82)
#define SNDRV_EMU10K1_IOCTL_SINGLE_STEP _IOW('H' , 0 x83, int )
#define SNDRV_EMU10K1_IOCTL_DBG_READ _IOR('H' , 0 x84, int )
#endif
Messung V0.5 in Prozent C=94 H=95 G=94
¤ Dauer der Verarbeitung: 0.2 Sekunden
(vorverarbeitet am 2026-06-28)
¤
*© Formatika GbR, Deutschland