mirror of
https://github.com/alsa-project/alsa-lib.git
synced 2026-02-06 04:06:34 -05:00
control: Add UMP device query support
Add a function to query the next available UMP device via control interface, just like the existing one for rawmidi. As the UMP rawmidi is compatible with the standard rawmidi, no extra helper for the rawmidi_info is present. Ditto for the preferred subdevice, too. Signed-off-by: Takashi Iwai <tiwai@suse.de>
This commit is contained in:
parent
f47763d2c1
commit
8bc10c83b1
5 changed files with 26 additions and 0 deletions
|
|
@ -47,6 +47,7 @@ typedef struct _snd_ctl_ops {
|
|||
int (*rawmidi_next_device)(snd_ctl_t *handle, int *device);
|
||||
int (*rawmidi_info)(snd_ctl_t *handle, snd_rawmidi_info_t * info);
|
||||
int (*rawmidi_prefer_subdevice)(snd_ctl_t *handle, int subdev);
|
||||
int (*ump_next_device)(snd_ctl_t *handle, int *device);
|
||||
int (*set_power_state)(snd_ctl_t *handle, unsigned int state);
|
||||
int (*get_power_state)(snd_ctl_t *handle, unsigned int *state);
|
||||
int (*read)(snd_ctl_t *handle, snd_ctl_event_t *event);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue