• Home
  • Raw
  • Download

Lines Matching refs:device

55 	int device;  member
168 int device, in snd_seq_midisynth_new() argument
174 msynth->device = device; in snd_seq_midisynth_new()
188 if ((err = snd_rawmidi_kernel_open(msynth->card, msynth->device, in midisynth_subscribe()
230 if ((err = snd_rawmidi_kernel_open(msynth->card, msynth->device, in midisynth_use()
276 snd_seq_midisynth_probe(struct device *_dev) in snd_seq_midisynth_probe()
288 int device = dev->device; in snd_seq_midisynth_probe() local
291 if (snd_BUG_ON(!card || device < 0 || device >= SNDRV_RAWMIDI_DEVICES)) in snd_seq_midisynth_probe()
296 info->device = device; in snd_seq_midisynth_probe()
345 if (snd_seq_midisynth_new(ms, card, device, p) < 0) in snd_seq_midisynth_probe()
351 port->addr.port = device * (256 / SNDRV_RAWMIDI_DEVICES) + p; in snd_seq_midisynth_probe()
354 info->device = device; in snd_seq_midisynth_probe()
371 sprintf(port->name, "MIDI %d-%d-%u", card->number, device, p); in snd_seq_midisynth_probe()
373 sprintf(port->name, "MIDI %d-%d", card->number, device); in snd_seq_midisynth_probe()
403 client->ports_per_device[device] = ports; in snd_seq_midisynth_probe()
404 client->ports[device] = msynth; in snd_seq_midisynth_probe()
431 snd_seq_midisynth_remove(struct device *_dev) in snd_seq_midisynth_remove()
437 int device = dev->device, p, ports; in snd_seq_midisynth_remove() local
441 if (client == NULL || client->ports[device] == NULL) { in snd_seq_midisynth_remove()
445 ports = client->ports_per_device[device]; in snd_seq_midisynth_remove()
446 client->ports_per_device[device] = 0; in snd_seq_midisynth_remove()
447 msynth = client->ports[device]; in snd_seq_midisynth_remove()
448 client->ports[device] = NULL; in snd_seq_midisynth_remove()