Lines Matching defs:snd_usb_substream

49 struct snd_usb_substream {  struct
50 struct snd_usb_stream *stream;
51 struct usb_device *dev;
52 struct snd_pcm_substream *pcm_substream;
53 int direction; /* playback or capture */
54 int interface; /* current interface */
55 int endpoint; /* assigned endpoint */
56 struct audioformat *cur_audiofmt; /* current audioformat pointer (for hw_params callback) */
57 unsigned int cur_rate; /* current rate (for hw_params callback) */
58 unsigned int period_bytes; /* current period bytes (for hw_params callback) */
59 unsigned int altset_idx; /* USB data format: index of alternate setting */
60 unsigned int datapipe; /* the data i/o pipe */
61 unsigned int syncpipe; /* 1 - async out or adaptive in */
62 unsigned int datainterval; /* log_2 of data packet interval */
63 unsigned int syncinterval; /* P for adaptive mode, 0 otherwise */
64 unsigned int freqn; /* nominal sampling rate in fs/fps in Q16.16 format */
65 unsigned int freqm; /* momentary sampling rate in fs/fps in Q16.16 format */
66 int freqshift; /* how much to shift the feedback value to get Q16.16 */
67 unsigned int freqmax; /* maximum sampling rate, used for buffer management */
68 unsigned int phase; /* phase accumulator */
69 unsigned int maxpacksize; /* max packet size in bytes */
70 unsigned int maxframesize; /* max packet size in frames */
71 unsigned int curpacksize; /* current packet size in bytes (for capture) */
72 unsigned int curframesize; /* current packet size in frames (for capture) */
73 unsigned int syncmaxsize; /* sync endpoint packet size */
74 unsigned int fill_max: 1; /* fill max packet size always */
75 unsigned int txfr_quirk:1; /* allow sub-frame alignment */
76 unsigned int fmt_type; /* USB audio format type (1-3) */
78 unsigned int running: 1; /* running status */
80 unsigned int hwptr_done; /* processed byte position in the buffer */
81 unsigned int transfer_done; /* processed frames since last period update */
82 unsigned long active_mask; /* bitmask of active urbs */
83 unsigned long unlink_mask; /* bitmask of unlinked urbs */
107 struct snd_usb_substream substream[2]; argument