1
  2
  3
  4
  5
  6
  7
  8
  9
 10
 11
 12
 13
 14
 15
 16
 17
 18
 19
 20
 21
 22
 23
 24
 25
 26
 27
 28
 29
 30
 31
 32
 33
 34
 35
 36
 37
 38
 39
 40
 41
 42
 43
 44
 45
 46
 47
 48
 49
 50
 51
 52
 53
 54
 55
 56
 57
 58
 59
 60
 61
 62
 63
 64
 65
 66
 67
 68
 69
 70
 71
 72
 73
 74
 75
 76
 77
 78
 79
 80
 81
 82
 83
 84
 85
 86
 87
 88
 89
 90
 91
 92
 93
 94
 95
 96
 97
 98
 99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
pub const SNDRV_PCM_ACCESS_MMAP_INTERLEAVED: snd_pcm_access_t = 0;
pub const SNDRV_PCM_ACCESS_MMAP_NONINTERLEAVED: snd_pcm_access_t = 1;
pub const SNDRV_PCM_ACCESS_MMAP_COMPLEX: snd_pcm_access_t = 2;
pub const SNDRV_PCM_ACCESS_RW_INTERLEAVED: snd_pcm_access_t = 3;
pub const SNDRV_PCM_ACCESS_RW_NONINTERLEAVED: snd_pcm_access_t = 4;
pub const SNDRV_PCM_FORMAT_S8: snd_pcm_format_t = 0;
pub const SNDRV_PCM_FORMAT_U8: snd_pcm_format_t = 1;
pub const SNDRV_PCM_FORMAT_S16_LE: snd_pcm_format_t = 2;
pub const SNDRV_PCM_FORMAT_S16_BE: snd_pcm_format_t = 3;
pub const SNDRV_PCM_FORMAT_U16_LE: snd_pcm_format_t = 4;
pub const SNDRV_PCM_FORMAT_U16_BE: snd_pcm_format_t = 5;
pub const SNDRV_PCM_FORMAT_S24_LE: snd_pcm_format_t = 6;
pub const SNDRV_PCM_FORMAT_S24_BE: snd_pcm_format_t = 7;
pub const SNDRV_PCM_FORMAT_U24_LE: snd_pcm_format_t = 8;
pub const SNDRV_PCM_FORMAT_U24_BE: snd_pcm_format_t = 9;
pub const SNDRV_PCM_FORMAT_S32_LE: snd_pcm_format_t = 10;
pub const SNDRV_PCM_FORMAT_S32_BE: snd_pcm_format_t = 11;
pub const SNDRV_PCM_FORMAT_U32_LE: snd_pcm_format_t = 12;
pub const SNDRV_PCM_FORMAT_U32_BE: snd_pcm_format_t = 13;
pub const SNDRV_PCM_FORMAT_FLOAT_LE: snd_pcm_format_t = 14;
pub const SNDRV_PCM_FORMAT_FLOAT_BE: snd_pcm_format_t = 15;
pub const SNDRV_PCM_FORMAT_FLOAT64_LE: snd_pcm_format_t = 16;
pub const SNDRV_PCM_FORMAT_FLOAT64_BE: snd_pcm_format_t = 17;
pub const SNDRV_PCM_FORMAT_IEC958_SUBFRAME_LE: snd_pcm_format_t = 18;
pub const SNDRV_PCM_FORMAT_IEC958_SUBFRAME_BE: snd_pcm_format_t = 19;
pub const SNDRV_PCM_FORMAT_MU_LAW: snd_pcm_format_t = 20;
pub const SNDRV_PCM_FORMAT_A_LAW: snd_pcm_format_t = 21;
pub const SNDRV_PCM_FORMAT_IMA_ADPCM: snd_pcm_format_t = 22;
pub const SNDRV_PCM_FORMAT_MPEG: snd_pcm_format_t = 23;
pub const SNDRV_PCM_FORMAT_GSM: snd_pcm_format_t = 24;
pub const SNDRV_PCM_FORMAT_S20_LE: snd_pcm_format_t = 25;
pub const SNDRV_PCM_FORMAT_S20_BE: snd_pcm_format_t = 26;
pub const SNDRV_PCM_FORMAT_U20_LE: snd_pcm_format_t = 27;
pub const SNDRV_PCM_FORMAT_U20_BE: snd_pcm_format_t = 28;
pub const SNDRV_PCM_FORMAT_SPECIAL: snd_pcm_format_t = 31;
pub const SNDRV_PCM_FORMAT_S24_3LE: snd_pcm_format_t = 32;
pub const SNDRV_PCM_FORMAT_S24_3BE: snd_pcm_format_t = 33;
pub const SNDRV_PCM_FORMAT_U24_3LE: snd_pcm_format_t = 34;
pub const SNDRV_PCM_FORMAT_U24_3BE: snd_pcm_format_t = 35;
pub const SNDRV_PCM_FORMAT_S20_3LE: snd_pcm_format_t = 36;
pub const SNDRV_PCM_FORMAT_S20_3BE: snd_pcm_format_t = 37;
pub const SNDRV_PCM_FORMAT_U20_3LE: snd_pcm_format_t = 38;
pub const SNDRV_PCM_FORMAT_U20_3BE: snd_pcm_format_t = 39;
pub const SNDRV_PCM_FORMAT_S18_3LE: snd_pcm_format_t = 40;
pub const SNDRV_PCM_FORMAT_S18_3BE: snd_pcm_format_t = 41;
pub const SNDRV_PCM_FORMAT_U18_3LE: snd_pcm_format_t = 42;
pub const SNDRV_PCM_FORMAT_U18_3BE: snd_pcm_format_t = 43;
pub const SNDRV_PCM_FORMAT_G723_24: snd_pcm_format_t = 44;
pub const SNDRV_PCM_FORMAT_G723_24_1B: snd_pcm_format_t = 45;
pub const SNDRV_PCM_FORMAT_G723_40: snd_pcm_format_t = 46;
pub const SNDRV_PCM_FORMAT_G723_40_1B: snd_pcm_format_t = 47;
pub const SNDRV_PCM_FORMAT_DSD_U8: snd_pcm_format_t = 48;
pub const SNDRV_PCM_FORMAT_DSD_U16_LE: snd_pcm_format_t = 49;
pub const SNDRV_PCM_FORMAT_DSD_U32_LE: snd_pcm_format_t = 50;
pub const SNDRV_PCM_FORMAT_DSD_U16_BE: snd_pcm_format_t = 51;
pub const SNDRV_PCM_FORMAT_DSD_U32_BE: snd_pcm_format_t = 52;
pub const SNDRV_PCM_SUBFORMAT_STD: snd_pcm_subformat_t = 0;
pub const SNDRV_PCM_STATE_OPEN: snd_pcm_state_t = 0;
pub const SNDRV_PCM_STATE_SETUP: snd_pcm_state_t = 1;
pub const SNDRV_PCM_STATE_PREPARED: snd_pcm_state_t = 2;
pub const SNDRV_PCM_STATE_RUNNING: snd_pcm_state_t = 3;
pub const SNDRV_PCM_STATE_XRUN: snd_pcm_state_t = 4;
pub const SNDRV_PCM_STATE_DRAINING: snd_pcm_state_t = 5;
pub const SNDRV_PCM_STATE_PAUSED: snd_pcm_state_t = 6;
pub const SNDRV_PCM_STATE_SUSPENDED: snd_pcm_state_t = 7;
pub const SNDRV_PCM_STATE_DISCONNECTED: snd_pcm_state_t = 8;
pub const SNDRV_CTL_ELEM_TYPE_NONE: snd_ctl_elem_type_t = 0;
pub const SNDRV_CTL_ELEM_TYPE_BOOLEAN: snd_ctl_elem_type_t = 1;
pub const SNDRV_CTL_ELEM_TYPE_INTEGER: snd_ctl_elem_type_t = 2;
pub const SNDRV_CTL_ELEM_TYPE_ENUMERATED: snd_ctl_elem_type_t = 3;
pub const SNDRV_CTL_ELEM_TYPE_BYTES: snd_ctl_elem_type_t = 4;
pub const SNDRV_CTL_ELEM_TYPE_IEC958: snd_ctl_elem_type_t = 5;
pub const SNDRV_CTL_ELEM_TYPE_INTEGER64: snd_ctl_elem_type_t = 6;
pub const SNDRV_CTL_ELEM_IFACE_CARD: snd_ctl_elem_iface_t = 0;
pub const SNDRV_CTL_ELEM_IFACE_HWDEP: snd_ctl_elem_iface_t = 1;
pub const SNDRV_CTL_ELEM_IFACE_MIXER: snd_ctl_elem_iface_t = 2;
pub const SNDRV_CTL_ELEM_IFACE_PCM: snd_ctl_elem_iface_t = 3;
pub const SNDRV_CTL_ELEM_IFACE_RAWMIDI: snd_ctl_elem_iface_t = 4;
pub const SNDRV_CTL_ELEM_IFACE_TIMER: snd_ctl_elem_iface_t = 5;
pub const SNDRV_CTL_ELEM_IFACE_SEQUENCER: snd_ctl_elem_iface_t = 6;
nix::ioctl_read!(SNDRV_HWDEP_IOCTL_DSP_STATUS, 'H', 0x02, snd_hwdep_dsp_status);
nix::ioctl_write_ptr!(SNDRV_HWDEP_IOCTL_DSP_LOAD, 'H', 0x03, snd_hwdep_dsp_image);
nix::ioctl_read!(SNDRV_PCM_IOCTL_PVERSION, 'A', 0x00, std::os::raw::c_int);
nix::ioctl_read!(SNDRV_PCM_IOCTL_INFO, 'A', 0x01, snd_pcm_info);
nix::ioctl_write_int!(SNDRV_PCM_IOCTL_TSTAMP, 'A', 0x02);
nix::ioctl_write_int!(SNDRV_PCM_IOCTL_TTSTAMP, 'A', 0x03);
nix::ioctl_write_int!(SNDRV_PCM_IOCTL_USER_PVERSION, 'A', 0x04);
nix::ioctl_readwrite!(SNDRV_PCM_IOCTL_HW_REFINE, 'A', 0x10, snd_pcm_hw_params);
nix::ioctl_readwrite!(SNDRV_PCM_IOCTL_HW_PARAMS, 'A', 0x11, snd_pcm_hw_params);
nix::ioctl_none!(SNDRV_PCM_IOCTL_HW_FREE, 'A', 0x12);
nix::ioctl_readwrite!(SNDRV_PCM_IOCTL_SW_PARAMS, 'A', 0x13, snd_pcm_sw_params);
nix::ioctl_read!(SNDRV_PCM_IOCTL_STATUS, 'A', 0x20, snd_pcm_status);
nix::ioctl_read!(SNDRV_PCM_IOCTL_DELAY, 'A', 0x21, snd_pcm_sframes_t);
nix::ioctl_none!(SNDRV_PCM_IOCTL_HWSYNC, 'A', 0x22);
nix::ioctl_readwrite!(SNDRV_PCM_IOCTL_SYNC_PTR, 'A', 0x23, snd_pcm_sync_ptr);
nix::ioctl_readwrite!(SNDRV_PCM_IOCTL_STATUS_EXT, 'A', 0x24, snd_pcm_status);
nix::ioctl_read!(SNDRV_PCM_IOCTL_CHANNEL_INFO, 'A', 0x32, snd_pcm_channel_info);
nix::ioctl_none!(SNDRV_PCM_IOCTL_PREPARE, 'A', 0x40);
nix::ioctl_none!(SNDRV_PCM_IOCTL_RESET, 'A', 0x41);
nix::ioctl_none!(SNDRV_PCM_IOCTL_START, 'A', 0x42);
nix::ioctl_none!(SNDRV_PCM_IOCTL_DROP, 'A', 0x43);
nix::ioctl_none!(SNDRV_PCM_IOCTL_DRAIN, 'A', 0x44);
nix::ioctl_write_int!(SNDRV_PCM_IOCTL_PAUSE, 'A', 0x45);
nix::ioctl_write_ptr!(SNDRV_PCM_IOCTL_REWIND, 'A', 0x46, snd_pcm_uframes_t);
nix::ioctl_none!(SNDRV_PCM_IOCTL_RESUME, 'A', 0x47);
nix::ioctl_none!(SNDRV_PCM_IOCTL_XRUN, 'A', 0x48);
nix::ioctl_write_ptr!(SNDRV_PCM_IOCTL_FORWARD, 'A', 0x49, snd_pcm_uframes_t);
nix::ioctl_write_ptr!(SNDRV_PCM_IOCTL_WRITEI_FRAMES, 'A', 0x50, snd_xferi);
nix::ioctl_read!(SNDRV_PCM_IOCTL_READI_FRAMES, 'A', 0x51, snd_xferi);
nix::ioctl_write_ptr!(SNDRV_PCM_IOCTL_WRITEN_FRAMES, 'A', 0x52, snd_xfern);
nix::ioctl_read!(SNDRV_PCM_IOCTL_READN_FRAMES, 'A', 0x53, snd_xfern);
nix::ioctl_write_int!(SNDRV_PCM_IOCTL_LINK, 'A', 0x60);
nix::ioctl_none!(SNDRV_PCM_IOCTL_UNLINK, 'A', 0x61);
nix::ioctl_read!(SNDRV_RAWMIDI_IOCTL_PVERSION, 'W', 0x00, std::os::raw::c_int);
nix::ioctl_read!(SNDRV_RAWMIDI_IOCTL_INFO, 'W', 0x01, snd_rawmidi_info);
nix::ioctl_readwrite!(SNDRV_RAWMIDI_IOCTL_PARAMS, 'W', 0x10, snd_rawmidi_params);
nix::ioctl_readwrite!(SNDRV_RAWMIDI_IOCTL_STATUS, 'W', 0x20, snd_rawmidi_status);
nix::ioctl_write_int!(SNDRV_RAWMIDI_IOCTL_DROP, 'W', 0x30);
nix::ioctl_write_int!(SNDRV_RAWMIDI_IOCTL_DRAIN, 'W', 0x31);
nix::ioctl_read!(SNDRV_TIMER_IOCTL_PVERSION, 'T', 0x00, std::os::raw::c_int);
nix::ioctl_readwrite!(SNDRV_TIMER_IOCTL_NEXT_DEVICE, 'T', 0x01, snd_timer_id);
nix::ioctl_write_int!(SNDRV_TIMER_IOCTL_TREAD, 'T', 0x02);
nix::ioctl_readwrite!(SNDRV_TIMER_IOCTL_GINFO, 'T', 0x03, snd_timer_ginfo);
nix::ioctl_write_ptr!(SNDRV_TIMER_IOCTL_GPARAMS, 'T', 0x04, snd_timer_gparams);
nix::ioctl_readwrite!(SNDRV_TIMER_IOCTL_GSTATUS, 'T', 0x05, snd_timer_gstatus);
nix::ioctl_write_ptr!(SNDRV_TIMER_IOCTL_SELECT, 'T', 0x10, snd_timer_select);
nix::ioctl_read!(SNDRV_TIMER_IOCTL_INFO, 'T', 0x11, snd_timer_info);
nix::ioctl_write_ptr!(SNDRV_TIMER_IOCTL_PARAMS, 'T', 0x12, snd_timer_params);
nix::ioctl_read!(SNDRV_TIMER_IOCTL_STATUS, 'T', 0x14, snd_timer_status);
nix::ioctl_none!(SNDRV_TIMER_IOCTL_START, 'T', 0xa0);
nix::ioctl_none!(SNDRV_TIMER_IOCTL_STOP, 'T', 0xa1);
nix::ioctl_none!(SNDRV_TIMER_IOCTL_CONTINUE, 'T', 0xa2);
nix::ioctl_none!(SNDRV_TIMER_IOCTL_PAUSE, 'T', 0xa3);
nix::ioctl_read!(SNDRV_CTL_IOCTL_PVERSION, 'U', 0x00, std::os::raw::c_int);
nix::ioctl_read!(SNDRV_CTL_IOCTL_CARD_INFO, 'U', 0x01, snd_ctl_card_info);
nix::ioctl_readwrite!(SNDRV_CTL_IOCTL_ELEM_LIST, 'U', 0x10, snd_ctl_elem_list);
nix::ioctl_readwrite!(SNDRV_CTL_IOCTL_ELEM_INFO, 'U', 0x11, snd_ctl_elem_info);
nix::ioctl_readwrite!(SNDRV_CTL_IOCTL_ELEM_READ, 'U', 0x12, snd_ctl_elem_value);
nix::ioctl_readwrite!(SNDRV_CTL_IOCTL_ELEM_WRITE, 'U', 0x13, snd_ctl_elem_value);
nix::ioctl_write_ptr!(SNDRV_CTL_IOCTL_ELEM_LOCK, 'U', 0x14, snd_ctl_elem_id);
nix::ioctl_write_ptr!(SNDRV_CTL_IOCTL_ELEM_UNLOCK, 'U', 0x15, snd_ctl_elem_id);
nix::ioctl_readwrite!(SNDRV_CTL_IOCTL_SUBSCRIBE_EVENTS, 'U', 0x16, std::os::raw::c_int);
nix::ioctl_readwrite!(SNDRV_CTL_IOCTL_ELEM_ADD, 'U', 0x17, snd_ctl_elem_info);
nix::ioctl_readwrite!(SNDRV_CTL_IOCTL_ELEM_REPLACE, 'U', 0x18, snd_ctl_elem_info);
nix::ioctl_readwrite!(SNDRV_CTL_IOCTL_ELEM_REMOVE, 'U', 0x19, snd_ctl_elem_id);
nix::ioctl_readwrite!(SNDRV_CTL_IOCTL_TLV_READ, 'U', 0x1a, snd_ctl_tlv);
nix::ioctl_readwrite!(SNDRV_CTL_IOCTL_TLV_WRITE, 'U', 0x1b, snd_ctl_tlv);
nix::ioctl_readwrite!(SNDRV_CTL_IOCTL_TLV_COMMAND, 'U', 0x1c, snd_ctl_tlv);
nix::ioctl_readwrite!(SNDRV_CTL_IOCTL_HWDEP_NEXT_DEVICE, 'U', 0x20, std::os::raw::c_int);
nix::ioctl_read!(SNDRV_CTL_IOCTL_HWDEP_INFO, 'U', 0x21, snd_hwdep_info);
nix::ioctl_read!(SNDRV_CTL_IOCTL_PCM_NEXT_DEVICE, 'U', 0x30, std::os::raw::c_int);
nix::ioctl_readwrite!(SNDRV_CTL_IOCTL_PCM_INFO, 'U', 0x31, snd_pcm_info);
nix::ioctl_write_int!(SNDRV_CTL_IOCTL_PCM_PREFER_SUBDEVICE, 'U', 0x32);
nix::ioctl_readwrite!(SNDRV_CTL_IOCTL_RAWMIDI_NEXT_DEVICE, 'U', 0x40, std::os::raw::c_int);
nix::ioctl_readwrite!(SNDRV_CTL_IOCTL_RAWMIDI_INFO, 'U', 0x41, snd_rawmidi_info);
nix::ioctl_write_int!(SNDRV_CTL_IOCTL_RAWMIDI_PREFER_SUBDEVICE, 'U', 0x42);
nix::ioctl_readwrite!(SNDRV_CTL_IOCTL_POWER, 'U', 0xd0, std::os::raw::c_int);
nix::ioctl_read!(SNDRV_CTL_IOCTL_POWER_STATE, 'U', 0xd1, std::os::raw::c_int);