Lines Matching defs:info
86 static int snd_seq_hw_system_info(snd_seq_t *seq, snd_seq_system_info_t * info)
89 if (ioctl(hw->fd, SNDRV_SEQ_IOCTL_SYSTEM_INFO, info) < 0) {
96 static void update_midi_version(snd_seq_t *seq, snd_seq_client_info_t *info)
101 seq->midi_version != (int)info->midi_version) {
102 seq->midi_version = info->midi_version;
103 if (info->midi_version > 0)
110 static int snd_seq_hw_get_client_info(snd_seq_t *seq, snd_seq_client_info_t * info)
113 if (ioctl(hw->fd, SNDRV_SEQ_IOCTL_GET_CLIENT_INFO, info) < 0) {
118 info->card = -1;
119 info->pid = -1;
124 static int snd_seq_hw_set_client_info(snd_seq_t *seq, snd_seq_client_info_t * info)
128 if (ioctl(hw->fd, SNDRV_SEQ_IOCTL_SET_CLIENT_INFO, info) < 0) {
132 update_midi_version(seq, info);
136 static int snd_seq_hw_get_ump_info(snd_seq_t *seq, int client, int type, void *info)
154 memcpy(info, buf.info, size);
158 static int snd_seq_hw_set_ump_info(snd_seq_t *seq, int type, const void *info)
174 memcpy(buf.info, info, size);
175 *(int *)buf.info = -1; /* invalidate the card number */
201 static int snd_seq_hw_get_port_info(snd_seq_t *seq, snd_seq_port_info_t * info)
204 if (ioctl(hw->fd, SNDRV_SEQ_IOCTL_GET_PORT_INFO, info) < 0) {
211 static int snd_seq_hw_set_port_info(snd_seq_t *seq, snd_seq_port_info_t * info)
214 if (ioctl(hw->fd, SNDRV_SEQ_IOCTL_SET_PORT_INFO, info) < 0) {
311 static int snd_seq_hw_get_queue_client(snd_seq_t *seq, snd_seq_queue_client_t * info)
314 if (ioctl(hw->fd, SNDRV_SEQ_IOCTL_GET_QUEUE_CLIENT, info) < 0) {
321 static int snd_seq_hw_set_queue_client(snd_seq_t *seq, snd_seq_queue_client_t * info)
324 if (ioctl(hw->fd, SNDRV_SEQ_IOCTL_SET_QUEUE_CLIENT, info) < 0) {
331 static int snd_seq_hw_create_queue(snd_seq_t *seq, snd_seq_queue_info_t *info)
334 if (ioctl(hw->fd, SNDRV_SEQ_IOCTL_CREATE_QUEUE, info) < 0) {
341 static int snd_seq_hw_delete_queue(snd_seq_t *seq, snd_seq_queue_info_t *info)
344 if (ioctl(hw->fd, SNDRV_SEQ_IOCTL_DELETE_QUEUE, info) < 0) {
351 static int snd_seq_hw_get_queue_info(snd_seq_t *seq, snd_seq_queue_info_t *info)
354 if (ioctl(hw->fd, SNDRV_SEQ_IOCTL_GET_QUEUE_INFO, info) < 0) {
361 static int snd_seq_hw_set_queue_info(snd_seq_t *seq, snd_seq_queue_info_t *info)
364 if (ioctl(hw->fd, SNDRV_SEQ_IOCTL_SET_QUEUE_INFO, info) < 0) {
371 static int snd_seq_hw_get_named_queue(snd_seq_t *seq, snd_seq_queue_info_t *info)
374 if (ioctl(hw->fd, SNDRV_SEQ_IOCTL_GET_NAMED_QUEUE, info) < 0) {
409 static int snd_seq_hw_get_client_pool(snd_seq_t *seq, snd_seq_client_pool_t *info)
412 if (ioctl(hw->fd, SNDRV_SEQ_IOCTL_GET_CLIENT_POOL, info) < 0) {
419 static int snd_seq_hw_set_client_pool(snd_seq_t *seq, snd_seq_client_pool_t *info)
422 if (ioctl(hw->fd, SNDRV_SEQ_IOCTL_SET_CLIENT_POOL, info) < 0) {
429 static int snd_seq_hw_query_next_client(snd_seq_t *seq, snd_seq_client_info_t *info)
432 if (ioctl(hw->fd, SNDRV_SEQ_IOCTL_QUERY_NEXT_CLIENT, info) < 0) {
437 info->card = -1;
438 info->pid = -1;
443 static int snd_seq_hw_query_next_port(snd_seq_t *seq, snd_seq_port_info_t *info)
446 if (ioctl(hw->fd, SNDRV_SEQ_IOCTL_QUERY_NEXT_PORT, info) < 0) {