mirror of
https://github.com/alsa-project/alsa-lib.git
synced 2025-10-29 05:40:25 -04:00
Added power management functions and defines.
This commit is contained in:
parent
23d8f9a0b0
commit
3c59c6b11d
19 changed files with 195 additions and 0 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue