Lines Matching refs:areas
291 const snd_pcm_channel_area_t *areas, in snd_pcm_file_areas_read_infile() argument
320 …snd_pcm_areas_copy(areas, offset, areas_if, 0, pcm->channels, snd_pcm_bytes_to_frames(pcm, bytes),… in snd_pcm_file_areas_read_infile()
459 const snd_pcm_channel_area_t *areas, in snd_pcm_file_add_frames() argument
474 areas, offset, in snd_pcm_file_add_frames()
610 snd_pcm_channel_area_t areas[pcm->channels]; in snd_pcm_file_writei() local
613 snd_pcm_areas_from_buf(pcm, areas, (void*) buffer); in snd_pcm_file_writei()
615 if (snd_pcm_file_add_frames(pcm, areas, 0, n) < 0) { in snd_pcm_file_writei()
628 snd_pcm_channel_area_t areas[pcm->channels]; in snd_pcm_file_writen() local
631 snd_pcm_areas_from_bufs(pcm, areas, bufs); in snd_pcm_file_writen()
633 if (snd_pcm_file_add_frames(pcm, areas, 0, n) < 0) { in snd_pcm_file_writen()
646 snd_pcm_channel_area_t areas[pcm->channels]; in snd_pcm_file_readi() local
653 snd_pcm_areas_from_buf(pcm, areas, buffer); in snd_pcm_file_readi()
654 snd_pcm_file_areas_read_infile(pcm, areas, 0, frames); in snd_pcm_file_readi()
656 if (snd_pcm_file_add_frames(pcm, areas, 0, frames) < 0) { in snd_pcm_file_readi()
670 snd_pcm_channel_area_t areas[pcm->channels]; in snd_pcm_file_readn() local
677 snd_pcm_areas_from_bufs(pcm, areas, bufs); in snd_pcm_file_readn()
678 snd_pcm_file_areas_read_infile(pcm, areas, 0, frames); in snd_pcm_file_readn()
680 if (snd_pcm_file_add_frames(pcm, areas, 0, frames) < 0) { in snd_pcm_file_readn()
697 const snd_pcm_channel_area_t *areas; in snd_pcm_file_mmap_commit() local
702 result = snd_pcm_mmap_begin(file->gen.slave, &areas, &ofs, &siz); in snd_pcm_file_mmap_commit()
707 if (snd_pcm_file_add_frames(pcm, areas, ofs, result) < 0) in snd_pcm_file_mmap_commit()
714 static int snd_pcm_file_mmap_begin(snd_pcm_t *pcm, const snd_pcm_channel_area_t **areas, in snd_pcm_file_mmap_begin() argument
720 result = snd_pcm_mmap_begin(file->gen.slave, areas, offset, frames); in snd_pcm_file_mmap_begin()
732 snd_pcm_file_areas_read_infile(pcm, *areas, *offset, *frames); in snd_pcm_file_mmap_begin()