summaryrefslogtreecommitdiff
path: root/aserver
diff options
context:
space:
mode:
authorJaroslav Kysela <perex@perex.cz>2001-09-26 13:57:04 +0000
committerJaroslav Kysela <perex@perex.cz>2001-09-26 13:57:04 +0000
commit3c59c6b11d8b0b50a8675a2c45983232e18d152b (patch)
tree9dda611c10432703165bd47a14f5bf17fd3e56b3 /aserver
parent23d8f9a0b0780b8298b421b775ad2b2e1fbf6a48 (diff)
Added power management functions and defines.
Diffstat (limited to 'aserver')
-rw-r--r--aserver/aserver.c9
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;