Searched refs:period_bytes (Results 1 – 3 of 3) sorted by relevance
48 unsigned int frame_size, period_bytes, left_bytes; in pb_thread_loop() local72 period_bytes = frame_size * PB_TIMER_INTERVAL_MS * pcm_dev->params.rate / 1000; in pb_thread_loop()74 if(left_bytes > period_bytes) { in pb_thread_loop()75 … pcm_dev->ops->write(pcm_dev->hdl, data_buf->data + data_buf->wOffset, period_bytes); in pb_thread_loop()76 data_buf->wOffset += period_bytes; in pb_thread_loop()81 sleepCntUs = left_bytes * PB_TIMER_INTERVAL_MS * 1000 / period_bytes; in pb_thread_loop()
60 unsigned int frame_size, period_bytes; in cap_thread_loop() local71 period_bytes = frame_size * cap_interval_ms * pcm_dev->params.rate / 1000; in cap_thread_loop()74 databuf->data = malloc(period_bytes); in cap_thread_loop()76 memset(databuf->data, 0, period_bytes); in cap_thread_loop()77 … databuf->size = pcm_dev->ops->read(pcm_dev->hdl, databuf->data, period_bytes); in cap_thread_loop()
96 unsigned int period_bytes; member
Completed in 5 milliseconds