Lines Matching refs:frames
611 static long snd_pcm_oss_bytes(struct snd_pcm_substream *substream, long frames) in snd_pcm_oss_bytes() argument
615 long bytes = frames_to_bytes(runtime, frames); in snd_pcm_oss_bytes()
1015 snd_pcm_uframes_t frames; in snd_pcm_oss_change_params() local
1016 frames = runtime->period_size + 16; in snd_pcm_oss_change_params()
1017 if (frames > runtime->buffer_size) in snd_pcm_oss_change_params()
1018 frames = runtime->buffer_size; in snd_pcm_oss_change_params()
1019 sw_params->silence_threshold = frames; in snd_pcm_oss_change_params()
1020 sw_params->silence_size = frames; in snd_pcm_oss_change_params()
1154 snd_pcm_uframes_t frames; in snd_pcm_oss_capture_position_fixup() local
1166 frames = (*delay - runtime->buffer_size) + runtime->period_size - 1; in snd_pcm_oss_capture_position_fixup()
1167 frames /= runtime->period_size; in snd_pcm_oss_capture_position_fixup()
1168 frames *= runtime->period_size; in snd_pcm_oss_capture_position_fixup()
1169 err = snd_pcm_kernel_ioctl(substream, SNDRV_PCM_IOCTL_FORWARD, &frames); in snd_pcm_oss_capture_position_fixup()
1176 …ite3(struct snd_pcm_substream *substream, const char *ptr, snd_pcm_uframes_t frames, int in_kernel) in snd_pcm_oss_write3() argument
1196 ret = snd_pcm_lib_write(substream, (void __force __user *)ptr, frames); in snd_pcm_oss_write3()
1199 ret = snd_pcm_lib_write(substream, (void __force __user *)ptr, frames); in snd_pcm_oss_write3()
1211 …_oss_read3(struct snd_pcm_substream *substream, char *ptr, snd_pcm_uframes_t frames, int in_kernel) in snd_pcm_oss_read3() argument
1239 ret = snd_pcm_lib_read(substream, (void __force __user *)ptr, frames); in snd_pcm_oss_read3()
1242 ret = snd_pcm_lib_read(substream, (void __force __user *)ptr, frames); in snd_pcm_oss_read3()
1258 …_writev3(struct snd_pcm_substream *substream, void **bufs, snd_pcm_uframes_t frames, int in_kernel) in snd_pcm_oss_writev3() argument
1278 ret = snd_pcm_lib_writev(substream, (void __user **)bufs, frames); in snd_pcm_oss_writev3()
1281 ret = snd_pcm_lib_writev(substream, (void __user **)bufs, frames); in snd_pcm_oss_writev3()
1294 …s_readv3(struct snd_pcm_substream *substream, void **bufs, snd_pcm_uframes_t frames, int in_kernel) in snd_pcm_oss_readv3() argument
1318 ret = snd_pcm_lib_readv(substream, (void __user **)bufs, frames); in snd_pcm_oss_readv3()
1321 ret = snd_pcm_lib_readv(substream, (void __user **)bufs, frames); in snd_pcm_oss_readv3()
1332 snd_pcm_sframes_t frames, frames1; in snd_pcm_oss_write2() local
1342 frames = bytes / oss_frame_bytes; in snd_pcm_oss_write2()
1343 frames1 = snd_pcm_plug_client_channels_buf(substream, (char *)buf, frames, &channels); in snd_pcm_oss_write2()
1353 frames = bytes_to_frames(runtime, bytes); in snd_pcm_oss_write2()
1354 frames1 = snd_pcm_oss_write3(substream, buf, frames, in_kernel); in snd_pcm_oss_write2()
1432 snd_pcm_sframes_t frames, frames1; in snd_pcm_oss_read2() local
1440 frames = bytes / oss_frame_bytes; in snd_pcm_oss_read2()
1441 frames1 = snd_pcm_plug_client_channels_buf(substream, buf, frames, &channels); in snd_pcm_oss_read2()
1453 frames = bytes_to_frames(runtime, bytes); in snd_pcm_oss_read2()
1454 frames1 = snd_pcm_oss_read3(substream, buf, frames, in_kernel); in snd_pcm_oss_read2()