]> git.alsa-project.org Git - alsa-lib.git/commit
pcm: file: add support for infile reading in non interleaved mode
authorAdam Miartus <amiartus@de.adit-jv.com>
Tue, 21 May 2019 13:32:47 +0000 (15:32 +0200)
committerTakashi Iwai <tiwai@suse.de>
Wed, 22 May 2019 14:19:31 +0000 (16:19 +0200)
commit5f2e5af61b0b8cfbf310e8b1e08a034d993e432f
tree4ef12d3dfd42e3f3e607314f1b93c4c4ab65a6d7
parent3ab798004733ce65bd5c7a48d650de3465825210
pcm: file: add support for infile reading in non interleaved mode

add helper function to copy input file data to buffer mapped by areas,
in case of an error, do not fill the areas, allowing device read buffer
to be provided to api caller

previously unused rbuf variable is reused for this purpose

Signed-off-by: Adam Miartus <amiartus@de.adit-jv.com>
Reviewed-by: Timo Wischer <twischer@de.adit-jv.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
src/pcm/pcm_file.c