1 /* SPDX-License-Identifier: GPL-2.0+ WITH Linux-syscall-note */
3 * Copyright (C) 2007, 2008 Karsten Wiese <fzu@wemgehoertderstaat.de>
6 #ifndef _UAPI__SOUND_USB_STREAM_H
7 #define _UAPI__SOUND_USB_STREAM_H
9 #define USB_STREAM_INTERFACE_VERSION 2
11 #define SNDRV_USB_STREAM_IOCTL_SET_PARAMS \
12 _IOW('H', 0x90, struct usb_stream_config)
14 struct usb_stream_packet {
20 struct usb_stream_config {
23 unsigned period_frames;
28 struct usb_stream_config cfg;
40 unsigned periods_done;
41 unsigned periods_polled;
43 struct usb_stream_packet outpacket[2];
45 unsigned inpacket_head;
46 unsigned inpacket_split;
47 unsigned inpacket_split_at;
48 unsigned next_inpacket_split;
49 unsigned next_inpacket_split_at;
50 struct usb_stream_packet inpacket[];
53 enum usb_stream_state {
63 #endif /* _UAPI__SOUND_USB_STREAM_H */