Home
last modified time | relevance | path

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

/linux-5.19.10/sound/usb/hiface/
Dpcm.c260 unsigned int pcm_buffer_size; in hiface_pcm_playback() local
264 pcm_buffer_size = snd_pcm_lib_buffer_bytes(sub->instance); in hiface_pcm_playback()
266 if (sub->dma_off + PCM_PACKET_SIZE <= pcm_buffer_size) { in hiface_pcm_playback()
268 (unsigned int) pcm_buffer_size, in hiface_pcm_playback()
278 (unsigned int) pcm_buffer_size, in hiface_pcm_playback()
281 len = pcm_buffer_size - sub->dma_off; in hiface_pcm_playback()
291 if (sub->dma_off >= pcm_buffer_size) in hiface_pcm_playback()
292 sub->dma_off -= pcm_buffer_size; in hiface_pcm_playback()
/linux-5.19.10/sound/drivers/
Daloop.c142 unsigned int pcm_buffer_size; member
474 dpcm->pcm_buffer_size = frames_to_bytes(runtime, runtime->buffer_size); in loopback_prepare()
477 dpcm->silent_size = dpcm->pcm_buffer_size; in loopback_prepare()
505 if (dpcm->silent_size >= dpcm->pcm_buffer_size) in clear_capture_buf()
507 if (dpcm->silent_size + bytes > dpcm->pcm_buffer_size) in clear_capture_buf()
508 bytes = dpcm->pcm_buffer_size - dpcm->silent_size; in clear_capture_buf()
512 if (dst_off + size > dpcm->pcm_buffer_size) in clear_capture_buf()
513 size = dpcm->pcm_buffer_size - dst_off; in clear_capture_buf()
555 if (src_off + size > play->pcm_buffer_size) in copy_play_buf()
556 size = play->pcm_buffer_size - src_off; in copy_play_buf()
[all …]