summaryrefslogtreecommitdiff
path: root/aserver
diff options
context:
space:
mode:
authorAbramo Bagnara <abramo@alsa-project.org>2001-04-13 15:40:53 +0000
committerAbramo Bagnara <abramo@alsa-project.org>2001-04-13 15:40:53 +0000
commit6a3b962d065fa9bb83209ed77afa414ec4280332 (patch)
tree0760e3e7e5fca034162571c6d5ac506b3fae6b99 /aserver
parentc4f95f48c3ff9fdc7d899a1f73941300aadfb4eb (diff)
Better PCM mmap API. Fixed pcm_multi
Diffstat (limited to 'aserver')
-rw-r--r--aserver/aserver.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/aserver/aserver.c b/aserver/aserver.c
index 8f05587b..59050c3d 100644
--- a/aserver/aserver.c
+++ b/aserver/aserver.c
@@ -455,8 +455,10 @@ static int pcm_shm_cmd(client_t *client)
ctrl->result = snd_pcm_munmap(pcm);
break;
}
- case SND_PCM_IOCTL_MMAP_FORWARD:
- ctrl->result = snd_pcm_mmap_forward(pcm, ctrl->u.mmap_forward.frames);
+ case SND_PCM_IOCTL_MMAP_COMMIT:
+ ctrl->result = snd_pcm_mmap_commit(pcm,
+ ctrl->u.mmap_commit.offset,
+ ctrl->u.mmap_commit.frames);
ctrl->appl_ptr = *pcm->appl_ptr;
break;
case SND_PCM_IOCTL_POLL_DESCRIPTOR:
@@ -610,7 +612,7 @@ static int ctl_shm_cmd(client_t *client)
ctrl->result = snd_ctl_pcm_next_device(ctl, &ctrl->u.device);
break;
case SND_CTL_IOCTL_PCM_SURROUND_NEXT_DEVICE:
- ctrl->result = snd_ctl_pcm_surround_next_device(ctl, &ctrl->u.surround.type, &ctrl->u.surround.device);
+ ctrl->result = snd_ctl_pcm_surround_next_device(ctl, ctrl->u.surround.type, &ctrl->u.surround.device);
break;
case SNDRV_CTL_IOCTL_PCM_INFO:
ctrl->result = snd_ctl_pcm_info(ctl, &ctrl->u.pcm_info);