diff options
author | Jaroslav Kysela <perex@perex.cz> | 2001-09-26 13:57:04 +0000 |
---|---|---|
committer | Jaroslav Kysela <perex@perex.cz> | 2001-09-26 13:57:04 +0000 |
commit | 3c59c6b11d8b0b50a8675a2c45983232e18d152b (patch) | |
tree | 9dda611c10432703165bd47a14f5bf17fd3e56b3 /aserver | |
parent | 23d8f9a0b0780b8298b421b775ad2b2e1fbf6a48 (diff) |
Added power management functions and defines.
Diffstat (limited to 'aserver')
-rw-r--r-- | aserver/aserver.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/aserver/aserver.c b/aserver/aserver.c index 72633a1f..6fccb8a2 100644 --- a/aserver/aserver.c +++ b/aserver/aserver.c @@ -469,6 +469,9 @@ static int pcm_shm_cmd(client_t *client) case SNDRV_PCM_IOCTL_UNLINK: ctrl->result = snd_pcm_unlink(pcm); break; + case SNDRV_PCM_IOCTL_RESUME: + ctrl->result = snd_pcm_resume(pcm); + break; case SND_PCM_IOCTL_MMAP: { ctrl->result = snd_pcm_mmap(pcm); @@ -669,6 +672,12 @@ static int ctl_shm_cmd(client_t *client) case SNDRV_CTL_IOCTL_RAWMIDI_PREFER_SUBDEVICE: ctrl->result = snd_ctl_rawmidi_prefer_subdevice(ctl, ctrl->u.rawmidi_prefer_subdevice); break; + case SNDRV_CTL_IOCTL_POWER: + ctrl->result = snd_ctl_set_power_state(ctl, ctrl->u.power_state); + break; + case SNDRV_CTL_IOCTL_POWER_STATE: + ctrl->result = snd_ctl_get_power_state(ctl, &ctrl->u.power_state); + break; case SND_CTL_IOCTL_READ: ctrl->result = snd_ctl_read(ctl, &ctrl->u.read); break; |