Fixed snd_*_card() wrt aserver

This commit is contained in:
Abramo Bagnara 2000-12-23 16:13:38 +00:00
parent 80c3adaace
commit c1ad051636
7 changed files with 38 additions and 48 deletions

View file

@ -374,8 +374,7 @@ int pcm_shm_cmd(client_t *client)
pcm = client->device.pcm.handle;
switch (cmd) {
case SND_PCM_IOCTL_CARD:
ctrl->result = 0;
ctrl->u.card = snd_pcm_card(pcm);
ctrl->result = snd_pcm_card(pcm);
break;
case SND_PCM_IOCTL_ASYNC:
ctrl->result = snd_pcm_async(pcm, ctrl->u.async.sig, ctrl->u.async.pid);
@ -631,10 +630,10 @@ 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:
case SND_CTL_IOCTL_CARD:
ctrl->result = snd_ctl_card(ctl);
break;
case SND_CTL_IOCTL_POLL_DESCRIPTOR:
ctrl->result = 0;
return shm_ack_fd(client, snd_ctl_poll_descriptor(ctl));
default: