Lines Matching refs:playback
92 /* FIFO to synchronize playback rate to capture rate */
121 } capture, playback;
191 ua->playback.substream->runtime->delay -=
193 ua->playback.frame_bytes;
245 if (*value >= ua->playback.queue_length)
246 *value -= ua->playback.queue_length;
262 * Synchronizing the playback rate to the capture rate is done by using
264 * Submitting a playback URB therefore requires both a ready URB and
265 * the size of the corresponding capture packet, i.e., both playback
267 * not guarantee that playback and capture complete callbacks are
269 * submitting playback URBs is possible as long as both FIFOs are
287 frames * ua->playback.frame_bytes;
289 do_period_elapsed |= copy_playback_data(&ua->playback,
306 ua->playback.substream->runtime->delay += frames;
310 snd_pcm_period_elapsed(ua->playback.substream);
387 if (ua->rate_feedback_count < ua->playback.queue_length) {
390 ua->playback.queue_length)
394 * Ring buffer overflow; this happens when the playback
396 * so that the playback stream, when it starts, sees
532 kill_stream_urbs(&ua->playback);
551 kill_stream_urbs(&ua->playback);
559 ua->playback.urbs[0]->urb.complete =
570 ua->rate_feedback_count >= ua->playback.queue_length ||
582 for (i = 0; i < ua->playback.queue_length; ++i) {
589 urb = &ua->playback.urbs[i]->urb;
591 frames * ua->playback.frame_bytes;
597 err = submit_stream_urbs(ua, &ua->playback);
612 snd_pcm_stop_xrun(ua->playback.substream);
674 ua->playback.substream = substream;
675 err = set_stream_hw(ua, substream, ua->playback.channels);
679 DIV_ROUND_CLOSEST(ua->rate * ua->playback.queue_length,
802 ua->playback.period_pos = 0;
803 ua->playback.buffer_pos = 0;
866 return ua101_pcm_pointer(ua, &ua->playback);
964 "playback/capture sample widths do not match\n");
978 "playback/capture rates do not match: %u/%u\n",
996 ua->playback.channels = fmt_playback->bNrChannels;
999 ua->playback.frame_bytes =
1000 fmt_playback->bSubframeSize * ua->playback.channels;
1012 dev_err(&ua->dev->dev, "invalid playback endpoint\n");
1015 ua->playback.usb_pipe = usb_sndisocpipe(ua->dev, usb_endpoint_num(epd));
1016 ua->playback.max_packet_bytes = usb_endpoint_maxp(epd);
1132 free_stream_urbs(&ua->playback);
1135 free_stream_buffers(ua, &ua->playback);
1260 err = alloc_stream_buffers(ua, &ua->playback);
1267 err = alloc_stream_urbs(ua, &ua->playback, playback_urb_complete);