soundcheck wrote: 
> Hi Triode.
> 
> Got a question:  What is mmap=0/1 doing exactly?  You map certain stuff
> into memory or not. OK. Why do you have that option in place??
> 
> 
> Thx a lot.

mmap relates to how alsa opens the output device.  By default it will
use mmap if available and fallback to non mmap.  The option is only to
try to force non mmap case which is necessary for a few users if mmap
can be requested but doesn't work in some way.

Mmap should be lower cpu as it has one less memory copy of the samples.

In mmap mode snd_pcm_hw_params_set_access is called with
SND_PCM_ACCESS_MMAP_INTERLEAVED, in non mmap mode, it is called with
SND_PCM_ACCESS_RW_INTERLEAVED.


------------------------------------------------------------------------
Triode's Profile: http://forums.slimdevices.com/member.php?userid=17
View this thread: http://forums.slimdevices.com/showthread.php?t=97046

_______________________________________________
unix mailing list
[email protected]
http://lists.slimdevices.com/mailman/listinfo/unix

Reply via email to