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_FIREWIRE_H_INCLUDED 8 #define _UAPI_SOUND_FIREWIRE_H_INCLUDED 9 #include <linux/ioctl.h> 10 #include <linux/types.h> 11 #define SNDRV_FIREWIRE_EVENT_LOCK_STATUS 0x000010cc 12 #define SNDRV_FIREWIRE_EVENT_DICE_NOTIFICATION 0xd1ce004e 13 #define SNDRV_FIREWIRE_EVENT_EFW_RESPONSE 0x4e617475 14 #define SNDRV_FIREWIRE_EVENT_DIGI00X_MESSAGE 0x746e736c 15 #define SNDRV_FIREWIRE_EVENT_MOTU_NOTIFICATION 0x64776479 16 #define SNDRV_FIREWIRE_EVENT_TASCAM_CONTROL 0x7473636d 17 #define SNDRV_FIREWIRE_EVENT_MOTU_REGISTER_DSP_CHANGE 0x4d545244 18 #define SNDRV_FIREWIRE_EVENT_FF400_MESSAGE 0x4f6c6761 19 struct snd_firewire_event_common { 20 unsigned int type; 21 }; 22 struct snd_firewire_event_lock_status { 23 unsigned int type; 24 unsigned int status; 25 }; 26 struct snd_firewire_event_dice_notification { 27 unsigned int type; 28 unsigned int notification; 29 }; 30 #define SND_EFW_TRANSACTION_USER_SEQNUM_MAX ((__u32) ((__u16) ~0) - 1) 31 struct snd_efw_transaction { 32 __be32 length; 33 __be32 version; 34 __be32 seqnum; 35 __be32 category; 36 __be32 command; 37 __be32 status; 38 __be32 params[]; 39 }; 40 struct snd_firewire_event_efw_response { 41 unsigned int type; 42 __be32 response[]; 43 }; 44 struct snd_firewire_event_digi00x_message { 45 unsigned int type; 46 __u32 message; 47 }; 48 struct snd_firewire_event_motu_notification { 49 unsigned int type; 50 __u32 message; 51 }; 52 struct snd_firewire_tascam_change { 53 unsigned int index; 54 __be32 before; 55 __be32 after; 56 }; 57 struct snd_firewire_event_tascam_control { 58 unsigned int type; 59 struct snd_firewire_tascam_change changes[]; 60 }; 61 struct snd_firewire_event_motu_register_dsp_change { 62 unsigned int type; 63 __u32 count; 64 __u32 changes[]; 65 }; 66 struct snd_firewire_event_ff400_message { 67 unsigned int type; 68 unsigned int message_count; 69 struct { 70 __u32 message; 71 __u32 tstamp; 72 } messages[]; 73 }; 74 union snd_firewire_event { 75 struct snd_firewire_event_common common; 76 struct snd_firewire_event_lock_status lock_status; 77 struct snd_firewire_event_dice_notification dice_notification; 78 struct snd_firewire_event_efw_response efw_response; 79 struct snd_firewire_event_digi00x_message digi00x_message; 80 struct snd_firewire_event_tascam_control tascam_control; 81 struct snd_firewire_event_motu_notification motu_notification; 82 struct snd_firewire_event_motu_register_dsp_change motu_register_dsp_change; 83 struct snd_firewire_event_ff400_message ff400_message; 84 }; 85 #define SNDRV_FIREWIRE_IOCTL_GET_INFO _IOR('H', 0xf8, struct snd_firewire_get_info) 86 #define SNDRV_FIREWIRE_IOCTL_LOCK _IO('H', 0xf9) 87 #define SNDRV_FIREWIRE_IOCTL_UNLOCK _IO('H', 0xfa) 88 #define SNDRV_FIREWIRE_IOCTL_TASCAM_STATE _IOR('H', 0xfb, struct snd_firewire_tascam_state) 89 #define SNDRV_FIREWIRE_IOCTL_MOTU_REGISTER_DSP_METER _IOR('H', 0xfc, struct snd_firewire_motu_register_dsp_meter) 90 #define SNDRV_FIREWIRE_IOCTL_MOTU_COMMAND_DSP_METER _IOR('H', 0xfd, struct snd_firewire_motu_command_dsp_meter) 91 #define SNDRV_FIREWIRE_IOCTL_MOTU_REGISTER_DSP_PARAMETER _IOR('H', 0xfe, struct snd_firewire_motu_register_dsp_parameter) 92 #define SNDRV_FIREWIRE_TYPE_DICE 1 93 #define SNDRV_FIREWIRE_TYPE_FIREWORKS 2 94 #define SNDRV_FIREWIRE_TYPE_BEBOB 3 95 #define SNDRV_FIREWIRE_TYPE_OXFW 4 96 #define SNDRV_FIREWIRE_TYPE_DIGI00X 5 97 #define SNDRV_FIREWIRE_TYPE_TASCAM 6 98 #define SNDRV_FIREWIRE_TYPE_MOTU 7 99 #define SNDRV_FIREWIRE_TYPE_FIREFACE 8 100 struct snd_firewire_get_info { 101 unsigned int type; 102 unsigned int card; 103 unsigned char guid[8]; 104 char device_name[16]; 105 }; 106 #define SNDRV_FIREWIRE_TASCAM_STATE_COUNT 64 107 struct snd_firewire_tascam_state { 108 __be32 data[SNDRV_FIREWIRE_TASCAM_STATE_COUNT]; 109 }; 110 #define SNDRV_FIREWIRE_MOTU_REGISTER_DSP_METER_INPUT_COUNT 24 111 #define SNDRV_FIREWIRE_MOTU_REGISTER_DSP_METER_OUTPUT_COUNT 24 112 #define SNDRV_FIREWIRE_MOTU_REGISTER_DSP_METER_COUNT (SNDRV_FIREWIRE_MOTU_REGISTER_DSP_METER_INPUT_COUNT + SNDRV_FIREWIRE_MOTU_REGISTER_DSP_METER_OUTPUT_COUNT) 113 struct snd_firewire_motu_register_dsp_meter { 114 __u8 data[SNDRV_FIREWIRE_MOTU_REGISTER_DSP_METER_COUNT]; 115 }; 116 #define SNDRV_FIREWIRE_MOTU_REGISTER_DSP_MIXER_COUNT 4 117 #define SNDRV_FIREWIRE_MOTU_REGISTER_DSP_MIXER_SRC_COUNT 20 118 #define SNDRV_FIREWIRE_MOTU_REGISTER_DSP_INPUT_COUNT 10 119 #define SNDRV_FIREWIRE_MOTU_REGISTER_DSP_ALIGNED_INPUT_COUNT (SNDRV_FIREWIRE_MOTU_REGISTER_DSP_INPUT_COUNT + 2) 120 struct snd_firewire_motu_register_dsp_parameter { 121 struct { 122 struct { 123 __u8 gain[SNDRV_FIREWIRE_MOTU_REGISTER_DSP_MIXER_SRC_COUNT]; 124 __u8 pan[SNDRV_FIREWIRE_MOTU_REGISTER_DSP_MIXER_SRC_COUNT]; 125 __u8 flag[SNDRV_FIREWIRE_MOTU_REGISTER_DSP_MIXER_SRC_COUNT]; 126 __u8 paired_balance[SNDRV_FIREWIRE_MOTU_REGISTER_DSP_MIXER_SRC_COUNT]; 127 __u8 paired_width[SNDRV_FIREWIRE_MOTU_REGISTER_DSP_MIXER_SRC_COUNT]; 128 } source[SNDRV_FIREWIRE_MOTU_REGISTER_DSP_MIXER_COUNT]; 129 struct { 130 __u8 paired_volume[SNDRV_FIREWIRE_MOTU_REGISTER_DSP_MIXER_COUNT]; 131 __u8 paired_flag[SNDRV_FIREWIRE_MOTU_REGISTER_DSP_MIXER_COUNT]; 132 } output; 133 } mixer; 134 struct { 135 __u8 main_paired_volume; 136 __u8 hp_paired_volume; 137 __u8 hp_paired_assignment; 138 __u8 reserved[5]; 139 } output; 140 struct { 141 __u8 boost_flag; 142 __u8 nominal_level_flag; 143 __u8 reserved[6]; 144 } line_input; 145 struct { 146 __u8 gain_and_invert[SNDRV_FIREWIRE_MOTU_REGISTER_DSP_ALIGNED_INPUT_COUNT]; 147 __u8 flag[SNDRV_FIREWIRE_MOTU_REGISTER_DSP_ALIGNED_INPUT_COUNT]; 148 } input; 149 __u8 reserved[64]; 150 }; 151 #define SNDRV_FIREWIRE_MOTU_COMMAND_DSP_METER_COUNT 400 152 struct snd_firewire_motu_command_dsp_meter { 153 float data[SNDRV_FIREWIRE_MOTU_COMMAND_DSP_METER_COUNT]; 154 }; 155 #endif 156