• Home
  • Raw
  • Download

Lines Matching refs:device

41 	int device;  member
156 int device, in snd_seq_midisynth_new() argument
162 msynth->device = device; in snd_seq_midisynth_new()
176 if ((err = snd_rawmidi_kernel_open(msynth->card, msynth->device, in midisynth_subscribe()
218 if ((err = snd_rawmidi_kernel_open(msynth->card, msynth->device, in midisynth_use()
264 snd_seq_midisynth_probe(struct device *_dev) in snd_seq_midisynth_probe()
276 int device = dev->device; in snd_seq_midisynth_probe() local
279 if (snd_BUG_ON(!card || device < 0 || device >= SNDRV_RAWMIDI_DEVICES)) in snd_seq_midisynth_probe()
284 info->device = device; in snd_seq_midisynth_probe()
333 if (snd_seq_midisynth_new(ms, card, device, p) < 0) in snd_seq_midisynth_probe()
339 port->addr.port = device * (256 / SNDRV_RAWMIDI_DEVICES) + p; in snd_seq_midisynth_probe()
342 info->device = device; in snd_seq_midisynth_probe()
359 sprintf(port->name, "MIDI %d-%d-%u", card->number, device, p); in snd_seq_midisynth_probe()
361 sprintf(port->name, "MIDI %d-%d", card->number, device); in snd_seq_midisynth_probe()
391 client->ports_per_device[device] = ports; in snd_seq_midisynth_probe()
392 client->ports[device] = msynth; in snd_seq_midisynth_probe()
419 snd_seq_midisynth_remove(struct device *_dev) in snd_seq_midisynth_remove()
425 int device = dev->device, p, ports; in snd_seq_midisynth_remove() local
429 if (client == NULL || client->ports[device] == NULL) { in snd_seq_midisynth_remove()
433 ports = client->ports_per_device[device]; in snd_seq_midisynth_remove()
434 client->ports_per_device[device] = 0; in snd_seq_midisynth_remove()
435 msynth = client->ports[device]; in snd_seq_midisynth_remove()
436 client->ports[device] = NULL; in snd_seq_midisynth_remove()