Lines Matching defs:snd_usb_substream

126 struct snd_usb_substream {  struct
127 struct snd_usb_stream *stream;
128 struct usb_device *dev;
129 struct snd_pcm_substream *pcm_substream;
130 int direction; /* playback or capture */
131 int interface; /* current interface */
132 int endpoint; /* assigned endpoint */
133 struct audioformat *cur_audiofmt; /* current audioformat pointer (for hw_params callback) */
134 struct snd_usb_power_domain *str_pd; /* UAC3 Power Domain for streaming path */
135 snd_pcm_format_t pcm_format; /* current audio format (for hw_params callback) */
136 unsigned int channels; /* current number of channels (for hw_params callback) */
137 unsigned int channels_max; /* max channels in the all audiofmts */
138 unsigned int cur_rate; /* current rate (for hw_params callback) */
139 unsigned int period_bytes; /* current period bytes (for hw_params callback) */
140 unsigned int period_frames; /* current frames per period */
141 unsigned int buffer_periods; /* current periods per buffer */
142 unsigned int altset_idx; /* USB data format: index of alternate setting */
143 unsigned int txfr_quirk:1; /* allow sub-frame alignment */
144 unsigned int tx_length_quirk:1; /* add length specifier to transfers */
145 unsigned int fmt_type; /* USB audio format type (1-3) */
146 …igned int pkt_offset_adj; /* Bytes to drop from beginning of packets (for non-compliant devices) */
147 …ned int stream_offset_adj; /* Bytes to drop from beginning of stream (for non-compliant devices) */
149 unsigned int running: 1; /* running status */
151 unsigned int hwptr_done; /* processed byte position in the buffer */
152 unsigned int transfer_done; /* processed frames since last period update */
153 unsigned int frame_limit; /* limits number of packets in URB */
156 unsigned int ep_num; /* the endpoint number */
157 struct snd_usb_endpoint *data_endpoint;
158 struct snd_usb_endpoint *sync_endpoint;
159 unsigned long flags;
160 bool need_setup_ep; /* (re)configure EP at prepare? */
161 bool need_setup_fmt; /* (re)configure fmt after resume? */
162 unsigned int speed; /* USB_SPEED_XXX */
164 u64 formats; /* format bitmasks (all or'ed) */
165 unsigned int num_formats; /* number of supported audio formats (list) */
166 struct list_head fmt_list; /* format list */
190 struct snd_usb_substream substream[2]; argument