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