Add snd_pcm_hw_params_get/set_export_buffer()

Add snd_pcm_hw_params_get/set_export_buffer() API functions.
They control to ensure the buffer export to other processes.
If this flag is set, the local buffer of a plugin is exported over IPC shm.
Otherwise the buffer can be handled only locally (no shm).

Also fixed Version file for 1.0.9.
This commit is contained in:
Takashi Iwai 2005-05-19 16:59:04 +00:00
parent 18053076e2
commit 4d7c53d280
7 changed files with 65 additions and 12 deletions

View file

@ -288,6 +288,7 @@ static int snd_pcm_shm_hw_params_slave(snd_pcm_t *pcm,
snd_pcm_shm_t *shm = pcm->private_data;
volatile snd_pcm_shm_ctrl_t *ctrl = shm->ctrl;
int err;
params->flags |= SND_PCM_HW_PARAMS_EXPORT_BUFFER;
ctrl->cmd = SNDRV_PCM_IOCTL_HW_PARAMS;
ctrl->u.hw_params = *params;
err = snd_pcm_shm_action(pcm);