Home
last modified time | relevance | path

Searched refs:CRAS_NUM_SHM_BUFFERS (Results 1 – 4 of 4) sorted by relevance

/external/adhd/cras/src/common/
Dcras_shm.h17 #define CRAS_NUM_SHM_BUFFERS 2U /* double buffer */ macro
18 #define CRAS_SHM_BUFFERS_MASK (CRAS_NUM_SHM_BUFFERS - 1)
54 uint32_t read_offset[CRAS_NUM_SHM_BUFFERS];
55 uint32_t write_offset[CRAS_NUM_SHM_BUFFERS];
56 int32_t write_in_progress[CRAS_NUM_SHM_BUFFERS];
62 uint32_t buffer_offset[CRAS_NUM_SHM_BUFFERS];
75 return used_size * CRAS_NUM_SHM_BUFFERS; in cras_shm_calculate_samples_size()
175 assert_on_compile_is_power_of_2(CRAS_NUM_SHM_BUFFERS); in cras_shm_buff_for_idx()
294 assert_on_compile_is_power_of_2(CRAS_NUM_SHM_BUFFERS); in cras_shm_get_readable_frames()
314 for (i = 0; i < CRAS_NUM_SHM_BUFFERS; i++) { in cras_shm_get_bytes_queued()
[all …]
/external/adhd/cras/src/tests/
Dshm_unittest.cc133 uint32_t buf_idx = CRAS_NUM_SHM_BUFFERS - 1; in TEST_F()
330 first_offset + used_size * (CRAS_NUM_SHM_BUFFERS + 1); in TEST_F()
337 for (unsigned int i = 0; i < CRAS_NUM_SHM_BUFFERS; i++) { in TEST_F()
363 for (unsigned int i = 0; i < CRAS_NUM_SHM_BUFFERS / 2; i++) { in TEST_F()
385 for (unsigned int i = CRAS_NUM_SHM_BUFFERS / 2; i < CRAS_NUM_SHM_BUFFERS; in TEST_F()
415 for (unsigned int i = 0; i < CRAS_NUM_SHM_BUFFERS; i++) { in TEST_F()
454 for (unsigned int i = 0; i < CRAS_NUM_SHM_BUFFERS; i++) { in TEST_F()
511 for (unsigned int i = 0; i < CRAS_NUM_SHM_BUFFERS; i++) { in TEST_F()
/external/adhd/cras/client/libcras/src/
Dcras_shm.rs14 cras_audio_shm_header, cras_server_state, CRAS_NUM_SHM_BUFFERS, CRAS_SHM_BUFFERS_MASK,
57 read_offset: [VolatileRef<'a, u32>; CRAS_NUM_SHM_BUFFERS as usize],
58 write_offset: [VolatileRef<'a, u32>; CRAS_NUM_SHM_BUFFERS as usize],
59 buffer_offset: [VolatileRef<'a, u32>; CRAS_NUM_SHM_BUFFERS as usize],
/external/adhd/cras/client/cras-sys/src/
Dgen.rs35 pub const CRAS_NUM_SHM_BUFFERS: u32 = 2; constant