mirror of
https://github.com/alsa-project/alsa-lib.git
synced 2025-11-06 13:29:59 -05:00
<atlka@pg.gda.pl>
- shm memory patch - optimized a bit sample mixing routines in c and x_86 asm
This commit is contained in:
parent
0f88788f8b
commit
b798d89c0f
5 changed files with 86 additions and 83 deletions
|
|
@ -368,6 +368,11 @@ int snd_pcm_mmap(snd_pcm_t *pcm)
|
|||
SYSERR("shmat failed");
|
||||
return -errno;
|
||||
}
|
||||
/* automatically remove segment if not used */
|
||||
if (shmctl(id, IPC_RMID, NULL) < 0){
|
||||
SYSERR("shmctl mark remove failed");
|
||||
return -errno;
|
||||
}
|
||||
i->u.shm.area = snd_shm_area_create(id, ptr);
|
||||
if (i->u.shm.area == NULL) {
|
||||
SYSERR("snd_shm_area_create failed");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue