Lines Matching refs:frames

577 static long snd_pcm_oss_bytes(struct snd_pcm_substream *substream, long frames)  in snd_pcm_oss_bytes()  argument
581 long bytes = frames_to_bytes(runtime, frames); in snd_pcm_oss_bytes()
1019 snd_pcm_uframes_t frames; in snd_pcm_oss_change_params_locked() local
1020 frames = runtime->period_size + 16; in snd_pcm_oss_change_params_locked()
1021 if (frames > runtime->buffer_size) in snd_pcm_oss_change_params_locked()
1022 frames = runtime->buffer_size; in snd_pcm_oss_change_params_locked()
1023 sw_params->silence_threshold = frames; in snd_pcm_oss_change_params_locked()
1024 sw_params->silence_size = frames; in snd_pcm_oss_change_params_locked()
1201 snd_pcm_uframes_t frames; in snd_pcm_oss_capture_position_fixup() local
1213 frames = (*delay - runtime->buffer_size) + runtime->period_size - 1; in snd_pcm_oss_capture_position_fixup()
1214 frames /= runtime->period_size; in snd_pcm_oss_capture_position_fixup()
1215 frames *= runtime->period_size; in snd_pcm_oss_capture_position_fixup()
1216 err = snd_pcm_kernel_ioctl(substream, SNDRV_PCM_IOCTL_FORWARD, &frames); in snd_pcm_oss_capture_position_fixup()
1223 …ite3(struct snd_pcm_substream *substream, const char *ptr, snd_pcm_uframes_t frames, int in_kernel) in snd_pcm_oss_write3() argument
1242 frames, in_kernel); in snd_pcm_oss_write3()
1254 …_oss_read3(struct snd_pcm_substream *substream, char *ptr, snd_pcm_uframes_t frames, int in_kernel) in snd_pcm_oss_read3() argument
1281 frames, in_kernel); in snd_pcm_oss_read3()
1298 …s_t snd_pcm_oss_writev3(struct snd_pcm_substream *substream, void **bufs, snd_pcm_uframes_t frames) in snd_pcm_oss_writev3() argument
1315 ret = snd_pcm_kernel_writev(substream, bufs, frames); in snd_pcm_oss_writev3()
1327 …es_t snd_pcm_oss_readv3(struct snd_pcm_substream *substream, void **bufs, snd_pcm_uframes_t frames) in snd_pcm_oss_readv3() argument
1348 ret = snd_pcm_kernel_readv(substream, bufs, frames); in snd_pcm_oss_readv3()
1359 snd_pcm_sframes_t frames, frames1; in snd_pcm_oss_write2() local
1369 frames = bytes / oss_frame_bytes; in snd_pcm_oss_write2()
1370 frames1 = snd_pcm_plug_client_channels_buf(substream, (char *)buf, frames, &channels); in snd_pcm_oss_write2()
1380 frames = bytes_to_frames(runtime, bytes); in snd_pcm_oss_write2()
1381 frames1 = snd_pcm_oss_write3(substream, buf, frames, in_kernel); in snd_pcm_oss_write2()
1469 snd_pcm_sframes_t frames, frames1; in snd_pcm_oss_read2() local
1477 frames = bytes / oss_frame_bytes; in snd_pcm_oss_read2()
1478 frames1 = snd_pcm_plug_client_channels_buf(substream, buf, frames, &channels); in snd_pcm_oss_read2()
1490 frames = bytes_to_frames(runtime, bytes); in snd_pcm_oss_read2()
1491 frames1 = snd_pcm_oss_read3(substream, buf, frames, in_kernel); in snd_pcm_oss_read2()