Searched refs:playback_buf (Results 1 – 2 of 2) sorted by relevance
/external/adhd/cras/src/server/ |
D | cras_hfp_info.c | 105 struct byte_buffer *playback_buf; member 136 buf_reset(info->playback_buf); in hfp_info_add_iodev() 155 memset(info->playback_buf->bytes, 0, in hfp_info_rm_iodev() 156 info->playback_buf->used_size); in hfp_info_rm_iodev() 180 *buf = buf_write_pointer_size(info->playback_buf, &buf_avail); in hfp_buf_acquire() 197 return info->playback_buf->used_size / in hfp_buf_size() 209 buf_increment_write(info->playback_buf, in hfp_buf_release() 221 return buf_queued(info->playback_buf) / in hfp_buf_queued() 241 buf = buf_write_pointer_size(info->playback_buf, in hfp_fill_output_with_zeros() 247 buf_increment_write(info->playback_buf, buf_avail); in hfp_fill_output_with_zeros() [all …]
|
/external/adhd/cras/src/tests/ |
D | hfp_info_unittest.cc | 105 ASSERT_GE(info->playback_buf->used_size / 2, buffer_frames + queued); in TEST() 108 buf_increment_read(info->playback_buf, queued * 2); in TEST() 122 ASSERT_GE(info->playback_buf->used_size / 2, buffer_frames + buffer_frames2); in TEST() 215 buf = buf_write_pointer_size(info->playback_buf, &buffer_count); in TEST() 216 buf_increment_write(info->playback_buf, buffer_count); in TEST() 321 buf_increment_write(info->playback_buf, 1008); in TEST() 500 buf_increment_write(info->playback_buf, 240); in TEST()
|