mmap for tinyplay and tinycap

167 views
Skip to first unread message

Priyaranjan Das

unread,
Mar 3, 2017, 10:23:34 AM3/3/17
to android-porting
Hello All,

I have trying to use mmap for the audio buffer in my kernel from
user-space. The current tinyplay that I am using do not use the MMAP.

I couldn't find anywhere a version of tinyplay/tinycap using MMAP.
Is anyone aware of a tinyplay/tinycap supporting MMAP?

In my tinyalsa library, the following APIs are already present.

int pcm_mmap_write(struct pcm *pcm, const void *data, unsigned int count);
int pcm_mmap_read(struct pcm *pcm, void *data, unsigned int count);
int pcm_mmap_begin(struct pcm *pcm, void **areas, unsigned int *offset,
                   unsigned int *frames);
int pcm_mmap_commit(struct pcm *pcm, unsigned int offset, unsigned int frames);

Can anyone help me in this regard?

Regards,
Priyaranjan
Reply all
Reply to author
Forward
0 new messages