Lines Matching defs:delay
1083 static int snd_pcm_oss_capture_position_fixup(struct snd_pcm_substream *substream, snd_pcm_sframes_t *delay)
1090 err = snd_pcm_kernel_ioctl(substream, SNDRV_PCM_IOCTL_DELAY, delay);
1094 if (*delay <= (snd_pcm_sframes_t)runtime->buffer_size)
1097 /* until avail(delay) <= buffer_size */
1098 frames = (*delay - runtime->buffer_size) + runtime->period_size - 1;
1146 snd_pcm_sframes_t delay;
1165 ret = snd_pcm_oss_capture_position_fixup(substream, &delay);
1976 snd_pcm_sframes_t delay;
1987 err = snd_pcm_kernel_ioctl(substream, SNDRV_PCM_IOCTL_DELAY, &delay);
1989 delay = 0; /* hack for broken OSS applications */
1992 return snd_pcm_oss_bytes(substream, delay);
1999 snd_pcm_sframes_t delay;
2019 err = snd_pcm_kernel_ioctl(substream, SNDRV_PCM_IOCTL_DELAY, &delay);
2020 if (err == -EPIPE || err == -ESTRPIPE || (! err && delay < 0)) {
2022 delay = 0;
2028 err = snd_pcm_oss_capture_position_fixup(substream, &delay);
2036 n = (delay = runtime->hw_ptr_interrupt) - runtime->oss.prev_hw_ptr_interrupt;
2040 runtime->oss.prev_hw_ptr_interrupt = delay;
2042 snd_pcm_oss_simulate_fill(substream, delay);
2045 delay = snd_pcm_oss_bytes(substream, delay);
2048 info.blocks = (runtime->oss.buffer_bytes - delay - fixup) / runtime->oss.period_bytes;
2050 info.blocks = (delay + fixup) / runtime->oss.period_bytes;
2051 info.bytes = (runtime->oss.bytes - delay) & INT_MAX;
2053 delay += fixup;
2054 info.blocks = delay / runtime->oss.period_bytes;
2055 info.bytes = (runtime->oss.bytes + delay) & INT_MAX;