~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~

TOMOYO Linux Cross Reference
Linux/sound/usb/usx2y/usb_stream.h

Version: ~ [ linux-6.11.5 ] ~ [ linux-6.10.14 ] ~ [ linux-6.9.12 ] ~ [ linux-6.8.12 ] ~ [ linux-6.7.12 ] ~ [ linux-6.6.58 ] ~ [ linux-6.5.13 ] ~ [ linux-6.4.16 ] ~ [ linux-6.3.13 ] ~ [ linux-6.2.16 ] ~ [ linux-6.1.114 ] ~ [ linux-6.0.19 ] ~ [ linux-5.19.17 ] ~ [ linux-5.18.19 ] ~ [ linux-5.17.15 ] ~ [ linux-5.16.20 ] ~ [ linux-5.15.169 ] ~ [ linux-5.14.21 ] ~ [ linux-5.13.19 ] ~ [ linux-5.12.19 ] ~ [ linux-5.11.22 ] ~ [ linux-5.10.228 ] ~ [ linux-5.9.16 ] ~ [ linux-5.8.18 ] ~ [ linux-5.7.19 ] ~ [ linux-5.6.19 ] ~ [ linux-5.5.19 ] ~ [ linux-5.4.284 ] ~ [ linux-5.3.18 ] ~ [ linux-5.2.21 ] ~ [ linux-5.1.21 ] ~ [ linux-5.0.21 ] ~ [ linux-4.20.17 ] ~ [ linux-4.19.322 ] ~ [ linux-4.18.20 ] ~ [ linux-4.17.19 ] ~ [ linux-4.16.18 ] ~ [ linux-4.15.18 ] ~ [ linux-4.14.336 ] ~ [ linux-4.13.16 ] ~ [ linux-4.12.14 ] ~ [ linux-4.11.12 ] ~ [ linux-4.10.17 ] ~ [ linux-4.9.337 ] ~ [ linux-4.4.302 ] ~ [ linux-3.10.108 ] ~ [ linux-2.6.32.71 ] ~ [ linux-2.6.0 ] ~ [ linux-2.4.37.11 ] ~ [ unix-v6-master ] ~ [ ccs-tools-1.8.9 ] ~ [ policy-sample ] ~
Architecture: ~ [ i386 ] ~ [ alpha ] ~ [ m68k ] ~ [ mips ] ~ [ ppc ] ~ [ sparc ] ~ [ sparc64 ] ~

  1 /* SPDX-License-Identifier: GPL-2.0 */
  2 #ifndef __USB_STREAM_H
  3 #define __USB_STREAM_H
  4 
  5 #include <uapi/sound/usb_stream.h>
  6 
  7 #define USB_STREAM_NURBS 4
  8 #define USB_STREAM_URBDEPTH 4
  9 
 10 struct usb_stream_kernel {
 11         struct usb_stream *s;
 12 
 13         void *write_page;
 14 
 15         unsigned int n_o_ps;
 16 
 17         struct urb *inurb[USB_STREAM_NURBS];
 18         struct urb *idle_inurb;
 19         struct urb *completed_inurb;
 20         struct urb *outurb[USB_STREAM_NURBS];
 21         struct urb *idle_outurb;
 22         struct urb *completed_outurb;
 23         struct urb *i_urb;
 24 
 25         int iso_frame_balance;
 26 
 27         wait_queue_head_t sleep;
 28 
 29         unsigned int out_phase;
 30         unsigned int out_phase_peeked;
 31         unsigned int freqn;
 32 };
 33 
 34 struct usb_stream *usb_stream_new(struct usb_stream_kernel *sk,
 35                                   struct usb_device *dev,
 36                                   unsigned int in_endpoint,
 37                                   unsigned int out_endpoint,
 38                                   unsigned int sample_rate,
 39                                   unsigned int use_packsize,
 40                                   unsigned int period_frames,
 41                                   unsigned int frame_size);
 42 void usb_stream_free(struct usb_stream_kernel *sk);
 43 int usb_stream_start(struct usb_stream_kernel *sk);
 44 void usb_stream_stop(struct usb_stream_kernel *sk);
 45 
 46 #endif /* __USB_STREAM_H */
 47 

~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~

kernel.org | git.kernel.org | LWN.net | Project Home | SVN repository | Mail admin

Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.

sflogo.php