Lines Matching refs:busy
477 static void use_buffers(char *busy, audio_port_array *audio_ports) in use_buffers() argument
483 while (busy[k]) in use_buffers()
486 busy[k] = 1; in use_buffers()
490 static void unuse_buffers(char *busy, audio_port_array *audio_ports) in unuse_buffers() argument
496 busy[audio_port->buf_index] = 0; in unuse_buffers()
506 char *busy; in allocate_buffers() local
545 busy = calloc(peak_buf, sizeof(*busy)); in allocate_buffers()
582 use_buffers(busy, &instance->output_audio_ports); in allocate_buffers()
583 unuse_buffers(busy, &instance->input_audio_ports); in allocate_buffers()
585 unuse_buffers(busy, &instance->input_audio_ports); in allocate_buffers()
586 use_buffers(busy, &instance->output_audio_ports); in allocate_buffers()
589 free(busy); in allocate_buffers()