diff options
author | Jaroslav Kysela <perex@perex.cz> | 2000-12-22 14:03:01 +0000 |
---|---|---|
committer | Jaroslav Kysela <perex@perex.cz> | 2000-12-22 14:03:01 +0000 |
commit | 9acdef38c9953436801989a620fb6b705baf6855 (patch) | |
tree | 381d0c475675dc05fc3622717bab59289d55b504 /aserver | |
parent | c268a4bf560790dff0b42dd77793d7e5adb9bd5f (diff) |
Added snd_*_card() functions.
Diffstat (limited to 'aserver')
-rw-r--r-- | aserver/aserver.c | 7 |
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)); |