• Home
  • Raw
  • Download

Lines Matching refs:info

180 static int midisynth_subscribe(void *private_data, struct snd_seq_port_subscribe *info)  in midisynth_subscribe()  argument
211 static int midisynth_unsubscribe(void *private_data, struct snd_seq_port_subscribe *info) in midisynth_unsubscribe() argument
223 static int midisynth_use(void *private_data, struct snd_seq_port_subscribe *info) in midisynth_use() argument
250 static int midisynth_unuse(void *private_data, struct snd_seq_port_subscribe *info) in midisynth_unuse() argument
282 struct snd_rawmidi_info *info; in snd_seq_midisynth_probe() local
293 info = kmalloc(sizeof(*info), GFP_KERNEL); in snd_seq_midisynth_probe()
294 if (! info) in snd_seq_midisynth_probe()
296 info->device = device; in snd_seq_midisynth_probe()
297 info->stream = SNDRV_RAWMIDI_STREAM_OUTPUT; in snd_seq_midisynth_probe()
298 info->subdevice = 0; in snd_seq_midisynth_probe()
299 if (snd_rawmidi_info_select(card, info) >= 0) in snd_seq_midisynth_probe()
300 output_count = info->subdevices_count; in snd_seq_midisynth_probe()
301 info->stream = SNDRV_RAWMIDI_STREAM_INPUT; in snd_seq_midisynth_probe()
302 if (snd_rawmidi_info_select(card, info) >= 0) { in snd_seq_midisynth_probe()
303 input_count = info->subdevices_count; in snd_seq_midisynth_probe()
309 kfree(info); in snd_seq_midisynth_probe()
322 kfree(info); in snd_seq_midisynth_probe()
332 kfree(info); in snd_seq_midisynth_probe()
353 memset(info, 0, sizeof(*info)); in snd_seq_midisynth_probe()
354 info->device = device; in snd_seq_midisynth_probe()
356 info->stream = SNDRV_RAWMIDI_STREAM_OUTPUT; in snd_seq_midisynth_probe()
358 info->stream = SNDRV_RAWMIDI_STREAM_INPUT; in snd_seq_midisynth_probe()
359 info->subdevice = p; in snd_seq_midisynth_probe()
360 if (snd_rawmidi_info_select(card, info) >= 0) in snd_seq_midisynth_probe()
361 strcpy(port->name, info->subname); in snd_seq_midisynth_probe()
363 if (info->name[0]) { in snd_seq_midisynth_probe()
365 snprintf(port->name, sizeof(port->name), "%s-%u", info->name, p); in snd_seq_midisynth_probe()
367 snprintf(port->name, sizeof(port->name), "%s", info->name); in snd_seq_midisynth_probe()
376 if ((info->flags & SNDRV_RAWMIDI_INFO_OUTPUT) && p < output_count) in snd_seq_midisynth_probe()
378 if ((info->flags & SNDRV_RAWMIDI_INFO_INPUT) && p < input_count) in snd_seq_midisynth_probe()
381 info->flags & SNDRV_RAWMIDI_INFO_DUPLEX) in snd_seq_midisynth_probe()
409 kfree(info); in snd_seq_midisynth_probe()
423 kfree(info); in snd_seq_midisynth_probe()