Re: [alsa-devel] Using MMAP feature
23 Jul
2012
23 Jul
'12
4:46 p.m.
(please don't drop the mailing list) (please configure your mailer to wrap lines)
alberto Villa wrote:
Il 23/07/2012 12:38, Clemens Ladisch ha scritto:
alberto Villa wrote:
Hello, I'm going to use the MMAP feature of ALSA.
Why do you need to do this?
I need to use MMAP because we are running on an embedded system and we want to optimize its operations.
What exactly do you want to optimize? In most cases, mmap is no faster than snd_pcm_write; using mmap make sense only if the samples are generated dynamically without storing them in a userspace buffer.
It was necessary to use snd_pcm_wait() before snd_pcm_begin(), may be this the reason?
If you never wait, the buffer will be filled eventually.
Regards, Clemens
4535
Age (days ago)
4535
Last active (days ago)
0 comments
1 participants
participants (1)
-
Clemens Ladisch