1 /* SPDX-License-Identifier: GPL-2.0+ WITH Linux-syscall-note */
3 * Copyright (C) 2007, 2008 Karsten Wiese <fzu@wemgehoertderstaat.de>
5 * This program is free software; you can redistribute it and/or modify it
6 * under the terms of the GNU General Public License as published by the
7 * Free Software Foundation; either version 2 of the License, or (at your
8 * option) any later version.
10 * This program is distributed in the hope that it will be useful, but
11 * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
12 * or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
15 * You should have received a copy of the GNU General Public License
16 * along with this program; if not, write to the Free Software Foundation,
17 * Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
20 #ifndef _UAPI__SOUND_USB_STREAM_H
21 #define _UAPI__SOUND_USB_STREAM_H
23 #define USB_STREAM_INTERFACE_VERSION 2
25 #define SNDRV_USB_STREAM_IOCTL_SET_PARAMS \
26 _IOW('H', 0x90, struct usb_stream_config)
28 struct usb_stream_packet
{
34 struct usb_stream_config
{
37 unsigned period_frames
;
42 struct usb_stream_config cfg
;
54 unsigned periods_done
;
55 unsigned periods_polled
;
57 struct usb_stream_packet outpacket
[2];
59 unsigned inpacket_head
;
60 unsigned inpacket_split
;
61 unsigned inpacket_split_at
;
62 unsigned next_inpacket_split
;
63 unsigned next_inpacket_split_at
;
64 struct usb_stream_packet inpacket
[0];
67 enum usb_stream_state
{
77 #endif /* _UAPI__SOUND_USB_STREAM_H */