Lines Matching defs:snd_usb_endpoint

63 struct snd_usb_endpoint {  struct
86 struct snd_usb_endpoint *sync_source; argument
87 struct snd_usb_endpoint *sync_sink; argument
89 struct snd_urb_ctx urb[MAX_URBS];
91 struct snd_usb_packet_info {
94 } next_packet[MAX_URBS];
95 unsigned int next_packet_head; /* ring buffer offset to read */
96 unsigned int next_packet_queued; /* queued items in the ring buffer */
97 struct list_head ready_playback_urbs; /* playback URB FIFO for implicit fb */
99 unsigned int nurbs; /* # urbs */
100 unsigned long active_mask; /* bitmask of active urbs */
101 unsigned long unlink_mask; /* bitmask of unlinked urbs */
102 atomic_t submitted_urbs; /* currently submitted urbs */
103 char *syncbuf; /* sync buffer for all sync URBs */
104 dma_addr_t sync_dma; /* DMA address of syncbuf */
106 unsigned int pipe; /* the data i/o pipe */
107 unsigned int packsize[2]; /* small/large packet sizes in samples */
108 unsigned int sample_rem; /* remainder from division fs/pps */
109 unsigned int sample_accum; /* sample accumulator */
110 unsigned int pps; /* packets per second */
111 unsigned int freqn; /* nominal sampling rate in fs/fps in Q16.16 format */
112 unsigned int freqm; /* momentary sampling rate in fs/fps in Q16.16 format */
113 int freqshift; /* how much to shift the feedback value to get Q16.16 */
114 unsigned int freqmax; /* maximum sampling rate, used for buffer management */
115 unsigned int phase; /* phase accumulator */
116 unsigned int maxpacksize; /* max packet size in bytes */
117 unsigned int maxframesize; /* max packet size in frames */
118 unsigned int max_urb_frames; /* max URB size in frames */
119 unsigned int curpacksize; /* current packet size in bytes (for capture) */
120 unsigned int curframesize; /* current packet size in frames (for capture) */
121 unsigned int syncmaxsize; /* sync endpoint packet size */
122 unsigned int fill_max:1; /* fill max packet size always */
123 unsigned int tenor_fb_quirk:1; /* corrupted feedback data */
124 unsigned int datainterval; /* log_2 of data packet interval */
125 unsigned int syncinterval; /* P for adaptive mode, 0 otherwise */
126 unsigned char silence_value;
127 unsigned int stride;
128 int skip_packets; /* quirks for devices to ignore the first n packets
130 bool implicit_fb_sync; /* syncs with implicit feedback */
131 bool lowlatency_playback; /* low-latency playback mode */
132 bool need_setup; /* (re-)need for hw_params? */
133 bool need_prepare; /* (re-)need for prepare? */
134 bool fixed_rate; /* skip rate setup */
137 const struct audioformat *cur_audiofmt;
138 unsigned int cur_rate;
139 snd_pcm_format_t cur_format;
140 unsigned int cur_channels;
141 unsigned int cur_frame_bytes;
142 unsigned int cur_period_frames;
143 unsigned int cur_period_bytes;
144 unsigned int cur_buffer_periods;
146 spinlock_t lock;
147 struct list_head list;