hc
2024-09-20 a36159eec6ca17402b0e146b86efaf76568dc353
kernel/include/uapi/sound/firewire.h
....@@ -12,6 +12,7 @@
1212 #define SNDRV_FIREWIRE_EVENT_EFW_RESPONSE 0x4e617475
1313 #define SNDRV_FIREWIRE_EVENT_DIGI00X_MESSAGE 0x746e736c
1414 #define SNDRV_FIREWIRE_EVENT_MOTU_NOTIFICATION 0x64776479
15
+#define SNDRV_FIREWIRE_EVENT_TASCAM_CONTROL 0x7473636d
1516
1617 struct snd_firewire_event_common {
1718 unsigned int type; /* SNDRV_FIREWIRE_EVENT_xxx */
....@@ -53,12 +54,24 @@
5354 __u32 message; /* MOTU-specific bits. */
5455 };
5556
57
+struct snd_firewire_tascam_change {
58
+ unsigned int index;
59
+ __be32 before;
60
+ __be32 after;
61
+};
62
+
63
+struct snd_firewire_event_tascam_control {
64
+ unsigned int type;
65
+ struct snd_firewire_tascam_change changes[0];
66
+};
67
+
5668 union snd_firewire_event {
5769 struct snd_firewire_event_common common;
5870 struct snd_firewire_event_lock_status lock_status;
5971 struct snd_firewire_event_dice_notification dice_notification;
6072 struct snd_firewire_event_efw_response efw_response;
6173 struct snd_firewire_event_digi00x_message digi00x_message;
74
+ struct snd_firewire_event_tascam_control tascam_control;
6275 struct snd_firewire_event_motu_notification motu_notification;
6376 };
6477
....@@ -66,6 +79,7 @@
6679 #define SNDRV_FIREWIRE_IOCTL_GET_INFO _IOR('H', 0xf8, struct snd_firewire_get_info)
6780 #define SNDRV_FIREWIRE_IOCTL_LOCK _IO('H', 0xf9)
6881 #define SNDRV_FIREWIRE_IOCTL_UNLOCK _IO('H', 0xfa)
82
+#define SNDRV_FIREWIRE_IOCTL_TASCAM_STATE _IOR('H', 0xfb, struct snd_firewire_tascam_state)
6983
7084 #define SNDRV_FIREWIRE_TYPE_DICE 1
7185 #define SNDRV_FIREWIRE_TYPE_FIREWORKS 2
....@@ -88,4 +102,10 @@
88102 * Returns -EBUSY if the driver is already streaming.
89103 */
90104
105
+#define SNDRV_FIREWIRE_TASCAM_STATE_COUNT 64
106
+
107
+struct snd_firewire_tascam_state {
108
+ __be32 data[SNDRV_FIREWIRE_TASCAM_STATE_COUNT];
109
+};
110
+
91111 #endif /* _UAPI_SOUND_FIREWIRE_H_INCLUDED */