4 #include <uapi/sound/usb_stream.h>
6 #define USB_STREAM_NURBS 4
7 #define USB_STREAM_URBDEPTH 4
9 struct usb_stream_kernel {
16 struct urb *inurb[USB_STREAM_NURBS];
17 struct urb *idle_inurb;
18 struct urb *completed_inurb;
19 struct urb *outurb[USB_STREAM_NURBS];
20 struct urb *idle_outurb;
21 struct urb *completed_outurb;
24 int iso_frame_balance;
26 wait_queue_head_t sleep;
29 unsigned out_phase_peeked;
33 struct usb_stream *usb_stream_new(struct usb_stream_kernel *sk,
34 struct usb_device *dev,
35 unsigned in_endpoint, unsigned out_endpoint,
36 unsigned sample_rate, unsigned use_packsize,
37 unsigned period_frames, unsigned frame_size);
38 void usb_stream_free(struct usb_stream_kernel *);
39 int usb_stream_start(struct usb_stream_kernel *);
40 void usb_stream_stop(struct usb_stream_kernel *);
42 #endif /* __USB_STREAM_H */