• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-R7000-V1.0.7.12_1.2.5/components/opensource/linux/linux-2.6.36/sound/usb/misc/

Lines Matching refs:playback

103 	/* FIFO to synchronize playback rate to capture rate */
132 } capture, playback;
202 ua->playback.substream->runtime->delay -=
204 ua->playback.frame_bytes;
256 if (*value >= ua->playback.queue_length)
257 *value -= ua->playback.queue_length;
273 * Synchronizing the playback rate to the capture rate is done by using
275 * Submitting a playback URB therefore requires both a ready URB and
276 * the size of the corresponding capture packet, i.e., both playback
278 * not guarantee that playback and capture complete callbacks are
280 * submitting playback URBs is possible as long as both FIFOs are
298 frames * ua->playback.frame_bytes;
300 do_period_elapsed |= copy_playback_data(&ua->playback,
317 ua->playback.substream->runtime->delay += frames;
321 snd_pcm_period_elapsed(ua->playback.substream);
398 if (ua->rate_feedback_count < ua->playback.queue_length) {
401 ua->playback.queue_length)
405 * Ring buffer overflow; this happens when the playback
407 * so that the playback stream, when it starts, sees
539 kill_stream_urbs(&ua->playback);
558 kill_stream_urbs(&ua->playback);
566 ua->playback.urbs[0]->urb.complete =
577 ua->rate_feedback_count >= ua->playback.queue_length ||
589 for (i = 0; i < ua->playback.queue_length; ++i) {
596 urb = &ua->playback.urbs[i]->urb;
598 frames * ua->playback.frame_bytes;
604 err = submit_stream_urbs(ua, &ua->playback);
619 snd_pcm_stop(ua->playback.substream, SNDRV_PCM_STATE_XRUN);
681 ua->playback.substream = substream;
682 err = set_stream_hw(ua, substream, ua->playback.channels);
686 DIV_ROUND_CLOSEST(ua->rate * ua->playback.queue_length,
822 ua->playback.period_pos = 0;
823 ua->playback.buffer_pos = 0;
886 return ua101_pcm_pointer(ua, &ua->playback);
992 "playback/capture sample widths do not match\n");
1006 "playback/capture rates do not match: %u/%u\n",
1024 ua->playback.channels = fmt_playback->bNrChannels;
1027 ua->playback.frame_bytes =
1028 fmt_playback->bSubframeSize * ua->playback.channels;
1040 dev_err(&ua->dev->dev, "invalid playback endpoint\n");
1043 ua->playback.usb_pipe = usb_sndisocpipe(ua->dev, usb_endpoint_num(epd));
1044 ua->playback.max_packet_bytes = le16_to_cpu(epd->wMaxPacketSize);
1157 free_stream_urbs(&ua->playback);
1159 free_stream_buffers(ua, &ua->playback);
1281 err = alloc_stream_buffers(ua, &ua->playback);
1288 err = alloc_stream_urbs(ua, &ua->playback, playback_urb_complete);