Lines Matching refs:playback

93 	/* FIFO to synchronize playback rate to capture rate */
122 } capture, playback;
192 ua->playback.substream->runtime->delay -=
194 ua->playback.frame_bytes;
246 if (*value >= ua->playback.queue_length)
247 *value -= ua->playback.queue_length;
263 * Synchronizing the playback rate to the capture rate is done by using
265 * Submitting a playback URB therefore requires both a ready URB and
266 * the size of the corresponding capture packet, i.e., both playback
268 * not guarantee that playback and capture complete callbacks are
270 * submitting playback URBs is possible as long as both FIFOs are
288 frames * ua->playback.frame_bytes;
290 do_period_elapsed |= copy_playback_data(&ua->playback,
307 ua->playback.substream->runtime->delay += frames;
311 snd_pcm_period_elapsed(ua->playback.substream);
388 if (ua->rate_feedback_count < ua->playback.queue_length) {
391 ua->playback.queue_length)
395 * Ring buffer overflow; this happens when the playback
397 * so that the playback stream, when it starts, sees
533 kill_stream_urbs(&ua->playback);
552 kill_stream_urbs(&ua->playback);
560 ua->playback.urbs[0]->urb.complete =
571 ua->rate_feedback_count >= ua->playback.queue_length ||
583 for (i = 0; i < ua->playback.queue_length; ++i) {
590 urb = &ua->playback.urbs[i]->urb;
592 frames * ua->playback.frame_bytes;
598 err = submit_stream_urbs(ua, &ua->playback);
613 snd_pcm_stop_xrun(ua->playback.substream);
675 ua->playback.substream = substream;
676 err = set_stream_hw(ua, substream, ua->playback.channels);
680 DIV_ROUND_CLOSEST(ua->rate * ua->playback.queue_length,
803 ua->playback.period_pos = 0;
804 ua->playback.buffer_pos = 0;
867 return ua101_pcm_pointer(ua, &ua->playback);
965 "playback/capture sample widths do not match\n");
979 "playback/capture rates do not match: %u/%u\n",
997 ua->playback.channels = fmt_playback->bNrChannels;
1000 ua->playback.frame_bytes =
1001 fmt_playback->bSubframeSize * ua->playback.channels;
1013 dev_err(&ua->dev->dev, "invalid playback endpoint\n");
1016 ua->playback.usb_pipe = usb_sndisocpipe(ua->dev, usb_endpoint_num(epd));
1017 ua->playback.max_packet_bytes = usb_endpoint_maxp(epd);
1133 free_stream_urbs(&ua->playback);
1136 free_stream_buffers(ua, &ua->playback);
1261 err = alloc_stream_buffers(ua, &ua->playback);
1268 err = alloc_stream_urbs(ua, &ua->playback, playback_urb_complete);