Re: [ALSA patch] [PATCH - alsa-lib 4/4] pcm_file: add infile read support for mmap mode

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Mon, 20 May 2019 18:51:06 +0200,
Miartus, Adam (Arion Recruitment; ADITG/ESM) wrote:
> 
> From: Adam Miartus <amiartus@xxxxxxxxxxxxxx>
> 
> mmap_begin callback is used to copy data from input file to mmaped buffer
> 
> guard for corner use of api (multiple mmap_begin calls by user) is introduced to check if next continuous buffer was already overwritten
> 
> buffer is overwritten with input file data only in case of stream capture
> 
> Signed-off-by: Adam Miartus <amiartus@xxxxxxxxxxxxxx>
> Reviewed-by: Timo Wischer <twischer@xxxxxxxxxxxxxx>

Can't we copy the data in snd_pcm_file_mmap_commit() just like the
playback case?


thanks,

Takashi
_______________________________________________
Alsa-devel mailing list
Alsa-devel@xxxxxxxxxxxxxxxx
https://mailman.alsa-project.org/mailman/listinfo/alsa-devel



[Index of Archives]     [ALSA User]     [Linux Audio Users]     [Pulse Audio]     [Kernel Archive]     [Asterisk PBX]     [Photo Sharing]     [Linux Sound]     [Video 4 Linux]     [Gimp]     [Yosemite News]

  Powered by Linux