usb_stream.h revision 05d08e9716b5974d6ed08973f44930804890b902
105d08e9716b5974d6ed08973f44930804890b902Christopher Ferris/**************************************************************************** 205d08e9716b5974d6ed08973f44930804890b902Christopher Ferris **************************************************************************** 305d08e9716b5974d6ed08973f44930804890b902Christopher Ferris *** 405d08e9716b5974d6ed08973f44930804890b902Christopher Ferris *** This header was automatically generated from a Linux kernel header 505d08e9716b5974d6ed08973f44930804890b902Christopher Ferris *** of the same name, to make information necessary for userspace to 605d08e9716b5974d6ed08973f44930804890b902Christopher Ferris *** call into the kernel available to libc. It contains only constants, 705d08e9716b5974d6ed08973f44930804890b902Christopher Ferris *** structures, and macros generated from the original header, and thus, 805d08e9716b5974d6ed08973f44930804890b902Christopher Ferris *** contains no copyrightable information. 905d08e9716b5974d6ed08973f44930804890b902Christopher Ferris *** 1005d08e9716b5974d6ed08973f44930804890b902Christopher Ferris *** To edit the content of this header, modify the corresponding 1105d08e9716b5974d6ed08973f44930804890b902Christopher Ferris *** source file (e.g. under external/kernel-headers/original/) then 1205d08e9716b5974d6ed08973f44930804890b902Christopher Ferris *** run bionic/libc/kernel/tools/update_all.py 1305d08e9716b5974d6ed08973f44930804890b902Christopher Ferris *** 1405d08e9716b5974d6ed08973f44930804890b902Christopher Ferris *** Any manual change here will be lost the next time this script will 1505d08e9716b5974d6ed08973f44930804890b902Christopher Ferris *** be run. You've been warned! 1605d08e9716b5974d6ed08973f44930804890b902Christopher Ferris *** 1705d08e9716b5974d6ed08973f44930804890b902Christopher Ferris **************************************************************************** 1805d08e9716b5974d6ed08973f44930804890b902Christopher Ferris ****************************************************************************/ 1905d08e9716b5974d6ed08973f44930804890b902Christopher Ferris#ifndef _UAPI__SOUND_USB_STREAM_H 2005d08e9716b5974d6ed08973f44930804890b902Christopher Ferris#define _UAPI__SOUND_USB_STREAM_H 2105d08e9716b5974d6ed08973f44930804890b902Christopher Ferris#define USB_STREAM_INTERFACE_VERSION 2 2205d08e9716b5974d6ed08973f44930804890b902Christopher Ferris#define SNDRV_USB_STREAM_IOCTL_SET_PARAMS _IOW('H', 0x90, struct usb_stream_config) 2305d08e9716b5974d6ed08973f44930804890b902Christopher Ferris/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 2405d08e9716b5974d6ed08973f44930804890b902Christopher Ferrisstruct usb_stream_packet { 2505d08e9716b5974d6ed08973f44930804890b902Christopher Ferris unsigned offset; 2605d08e9716b5974d6ed08973f44930804890b902Christopher Ferris unsigned length; 2705d08e9716b5974d6ed08973f44930804890b902Christopher Ferris}; 2805d08e9716b5974d6ed08973f44930804890b902Christopher Ferris/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 2905d08e9716b5974d6ed08973f44930804890b902Christopher Ferrisstruct usb_stream_config { 3005d08e9716b5974d6ed08973f44930804890b902Christopher Ferris unsigned version; 3105d08e9716b5974d6ed08973f44930804890b902Christopher Ferris unsigned sample_rate; 3205d08e9716b5974d6ed08973f44930804890b902Christopher Ferris unsigned period_frames; 3305d08e9716b5974d6ed08973f44930804890b902Christopher Ferris/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 3405d08e9716b5974d6ed08973f44930804890b902Christopher Ferris unsigned frame_size; 3505d08e9716b5974d6ed08973f44930804890b902Christopher Ferris}; 3605d08e9716b5974d6ed08973f44930804890b902Christopher Ferrisstruct usb_stream { 3705d08e9716b5974d6ed08973f44930804890b902Christopher Ferris struct usb_stream_config cfg; 3805d08e9716b5974d6ed08973f44930804890b902Christopher Ferris/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 3905d08e9716b5974d6ed08973f44930804890b902Christopher Ferris unsigned read_size; 4005d08e9716b5974d6ed08973f44930804890b902Christopher Ferris unsigned write_size; 4105d08e9716b5974d6ed08973f44930804890b902Christopher Ferris int period_size; 4205d08e9716b5974d6ed08973f44930804890b902Christopher Ferris unsigned state; 4305d08e9716b5974d6ed08973f44930804890b902Christopher Ferris/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 4405d08e9716b5974d6ed08973f44930804890b902Christopher Ferris int idle_insize; 4505d08e9716b5974d6ed08973f44930804890b902Christopher Ferris int idle_outsize; 4605d08e9716b5974d6ed08973f44930804890b902Christopher Ferris int sync_packet; 4705d08e9716b5974d6ed08973f44930804890b902Christopher Ferris unsigned insize_done; 4805d08e9716b5974d6ed08973f44930804890b902Christopher Ferris/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 4905d08e9716b5974d6ed08973f44930804890b902Christopher Ferris unsigned periods_done; 5005d08e9716b5974d6ed08973f44930804890b902Christopher Ferris unsigned periods_polled; 5105d08e9716b5974d6ed08973f44930804890b902Christopher Ferris struct usb_stream_packet outpacket[2]; 5205d08e9716b5974d6ed08973f44930804890b902Christopher Ferris unsigned inpackets; 5305d08e9716b5974d6ed08973f44930804890b902Christopher Ferris/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 5405d08e9716b5974d6ed08973f44930804890b902Christopher Ferris unsigned inpacket_head; 5505d08e9716b5974d6ed08973f44930804890b902Christopher Ferris unsigned inpacket_split; 5605d08e9716b5974d6ed08973f44930804890b902Christopher Ferris unsigned inpacket_split_at; 5705d08e9716b5974d6ed08973f44930804890b902Christopher Ferris unsigned next_inpacket_split; 5805d08e9716b5974d6ed08973f44930804890b902Christopher Ferris/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 5905d08e9716b5974d6ed08973f44930804890b902Christopher Ferris unsigned next_inpacket_split_at; 6005d08e9716b5974d6ed08973f44930804890b902Christopher Ferris struct usb_stream_packet inpacket[0]; 6105d08e9716b5974d6ed08973f44930804890b902Christopher Ferris}; 6205d08e9716b5974d6ed08973f44930804890b902Christopher Ferrisenum usb_stream_state { 6305d08e9716b5974d6ed08973f44930804890b902Christopher Ferris/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 6405d08e9716b5974d6ed08973f44930804890b902Christopher Ferris usb_stream_invalid, 6505d08e9716b5974d6ed08973f44930804890b902Christopher Ferris usb_stream_stopped, 6605d08e9716b5974d6ed08973f44930804890b902Christopher Ferris usb_stream_sync0, 6705d08e9716b5974d6ed08973f44930804890b902Christopher Ferris usb_stream_sync1, 6805d08e9716b5974d6ed08973f44930804890b902Christopher Ferris/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 6905d08e9716b5974d6ed08973f44930804890b902Christopher Ferris usb_stream_ready, 7005d08e9716b5974d6ed08973f44930804890b902Christopher Ferris usb_stream_running, 7105d08e9716b5974d6ed08973f44930804890b902Christopher Ferris usb_stream_xrun, 7205d08e9716b5974d6ed08973f44930804890b902Christopher Ferris}; 7305d08e9716b5974d6ed08973f44930804890b902Christopher Ferris/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 7405d08e9716b5974d6ed08973f44930804890b902Christopher Ferris#endif 75