[alsa-devel] snd_pcm_mmap_writei

Jaroslav Kysela perex at perex.cz
Thu Nov 18 08:43:21 CET 2010


On Thu, 18 Nov 2010, Irfan Shaikh wrote:

> Hello All,
>
> Replacing  snd_pcm_writei with snd_pcm__mmap_writei gives SEGFAULT in My code.
> Works fine with pcm.c. Can ANyone help me on FINDING OUT WHAT MAY BE CAUSE OF SEGFAULT ?
> Is any thing specific required for MMAP Write ????

Set SND_PCM_ACCESS_MMAP_INTERLEAVED instead SND_PCM_ACCESS_RW_INTERLEAVED.

 						Jaroslav

-----
Jaroslav Kysela <perex at perex.cz>
Linux Kernel Sound Maintainer
ALSA Project, Red Hat, Inc.



More information about the Alsa-devel mailing list