Lines Matching refs:audio_area
78 static struct cras_audio_area* audio_area; variable
164 if (audio_area) { in ResetStubData()
165 free(audio_area); in ResetStubData()
166 audio_area = NULL; in ResetStubData()
493 size_t sz = sizeof(*audio_area) + sizeof(struct cras_channel_area) * 2; in get_buffer()
495 audio_area = (cras_audio_area*)calloc(1, sz); in get_buffer()
496 audio_area->frames = *num; in get_buffer()
497 audio_area->num_channels = 2; in get_buffer()
498 audio_area->channels[0].buf = audio_buffer; in get_buffer()
499 channel_area_set_channel(&audio_area->channels[0], CRAS_CH_FL); in get_buffer()
500 audio_area->channels[0].step_bytes = 4; in get_buffer()
501 audio_area->channels[1].buf = audio_buffer + 2; in get_buffer()
502 channel_area_set_channel(&audio_area->channels[1], CRAS_CH_FR); in get_buffer()
503 audio_area->channels[1].step_bytes = 4; in get_buffer()
505 *area = audio_area; in get_buffer()
511 if (audio_area) { in put_buffer()
512 free(audio_area); in put_buffer()
513 audio_area = NULL; in put_buffer()