summaryrefslogtreecommitdiff
path: root/aserver
diff options
context:
space:
mode:
authorJaroslav Kysela <perex@perex.cz>2000-12-22 14:03:01 +0000
committerJaroslav Kysela <perex@perex.cz>2000-12-22 14:03:01 +0000
commit9acdef38c9953436801989a620fb6b705baf6855 (patch)
tree381d0c475675dc05fc3622717bab59289d55b504 /aserver
parentc268a4bf560790dff0b42dd77793d7e5adb9bd5f (diff)
Added snd_*_card() functions.
Diffstat (limited to 'aserver')
-rw-r--r--aserver/aserver.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/aserver/aserver.c b/aserver/aserver.c
index ebedb059..5752dfd9 100644
--- a/aserver/aserver.c
+++ b/aserver/aserver.c
@@ -373,6 +373,10 @@ int pcm_shm_cmd(client_t *client)
ctrl->cmd = 0;
pcm = client->device.pcm.handle;
switch (cmd) {
+ case SND_PCM_IOCTL_CARD:
+ ctrl->result = 0;
+ ctrl->u.card = snd_pcm_card(pcm);
+ break;
case SND_PCM_IOCTL_ASYNC:
ctrl->result = snd_pcm_async(pcm, ctrl->u.async.sig, ctrl->u.async.pid);
break;
@@ -627,6 +631,9 @@ int ctl_shm_cmd(client_t *client)
case SND_CTL_IOCTL_CLOSE:
client->ops->close(client);
break;
+ case SND_PCM_IOCTL_CARD:
+ ctrl->result = 0;
+ return shm_ack_fd(client, snd_ctl_card(ctl));
case SND_PCM_IOCTL_POLL_DESCRIPTOR:
ctrl->result = 0;
return shm_ack_fd(client, snd_ctl_poll_descriptor(ctl));