Home
last modified time | relevance | path

Searched refs:pcm_buffer_size (Results 1 – 2 of 2) sorted by relevance

/Linux-v4.19/sound/usb/hiface/
Dpcm.c266 unsigned int pcm_buffer_size; in hiface_pcm_playback() local
270 pcm_buffer_size = snd_pcm_lib_buffer_bytes(sub->instance); in hiface_pcm_playback()
272 if (sub->dma_off + PCM_PACKET_SIZE <= pcm_buffer_size) { in hiface_pcm_playback()
274 (unsigned int) pcm_buffer_size, in hiface_pcm_playback()
284 (unsigned int) pcm_buffer_size, in hiface_pcm_playback()
287 len = pcm_buffer_size - sub->dma_off; in hiface_pcm_playback()
297 if (sub->dma_off >= pcm_buffer_size) in hiface_pcm_playback()
298 sub->dma_off -= pcm_buffer_size; in hiface_pcm_playback()
/Linux-v4.19/sound/drivers/
Daloop.c108 unsigned int pcm_buffer_size; member
347 dpcm->pcm_buffer_size = frames_to_bytes(runtime, runtime->buffer_size); in loopback_prepare()
350 dpcm->silent_size = dpcm->pcm_buffer_size; in loopback_prepare()
378 if (dpcm->silent_size >= dpcm->pcm_buffer_size) in clear_capture_buf()
380 if (dpcm->silent_size + bytes > dpcm->pcm_buffer_size) in clear_capture_buf()
381 bytes = dpcm->pcm_buffer_size - dpcm->silent_size; in clear_capture_buf()
385 if (dst_off + size > dpcm->pcm_buffer_size) in clear_capture_buf()
386 size = dpcm->pcm_buffer_size - dst_off; in clear_capture_buf()
428 if (src_off + size > play->pcm_buffer_size) in copy_play_buf()
429 size = play->pcm_buffer_size - src_off; in copy_play_buf()
[all …]