Lines Matching defs:capture
92 /* FIFO to synchronize playback rate to capture rate */
121 } capture, playback;
262 * Synchronizing the playback rate to the capture rate is done by using
265 * the size of the corresponding capture packet, i.e., both playback
266 * and capture URBs must have been completed. Since the USB core does
267 * not guarantee that playback and capture complete callbacks are
349 struct ua101_stream *stream = &ua->capture;
495 kill_stream_urbs(&ua->capture);
510 kill_stream_urbs(&ua->capture);
517 ua->capture.urbs[0]->urb.complete = first_capture_urb_complete;
522 err = submit_stream_urbs(ua, &ua->capture);
606 snd_pcm_stop_xrun(ua->capture.substream);
653 ua->capture.substream = substream;
654 err = set_stream_hw(ua, substream, ua->capture.channels);
774 ua->capture.period_pos = 0;
775 ua->capture.buffer_pos = 0;
859 return ua101_pcm_pointer(ua, &ua->capture);
964 "playback/capture sample widths do not match\n");
978 "playback/capture rates do not match: %u/%u\n",
995 ua->capture.channels = fmt_capture->bNrChannels;
997 ua->capture.frame_bytes =
998 fmt_capture->bSubframeSize * ua->capture.channels;
1004 dev_err(&ua->dev->dev, "invalid capture endpoint\n");
1007 ua->capture.usb_pipe = usb_rcvisocpipe(ua->dev, usb_endpoint_num(epd));
1008 ua->capture.max_packet_bytes = usb_endpoint_maxp(epd);
1131 free_stream_urbs(&ua->capture);
1134 free_stream_buffers(ua, &ua->capture);
1257 err = alloc_stream_buffers(ua, &ua->capture);
1264 err = alloc_stream_urbs(ua, &ua->capture, capture_urb_complete);