Lines Matching refs:pinfo
381 struct snd_seq_port_info *pinfo; in snd_virmidi_dev_attach_seq() local
387 pinfo = kzalloc(sizeof(*pinfo), GFP_KERNEL); in snd_virmidi_dev_attach_seq()
388 if (!pinfo) { in snd_virmidi_dev_attach_seq()
404 pinfo->addr.client = client; in snd_virmidi_dev_attach_seq()
405 sprintf(pinfo->name, "VirMIDI %d-%d", rdev->card->number, rdev->device); in snd_virmidi_dev_attach_seq()
407 …pinfo->capability |= SNDRV_SEQ_PORT_CAP_WRITE | SNDRV_SEQ_PORT_CAP_SYNC_WRITE | SNDRV_SEQ_PORT_CAP… in snd_virmidi_dev_attach_seq()
408 …pinfo->capability |= SNDRV_SEQ_PORT_CAP_READ | SNDRV_SEQ_PORT_CAP_SYNC_READ | SNDRV_SEQ_PORT_CAP_S… in snd_virmidi_dev_attach_seq()
409 pinfo->capability |= SNDRV_SEQ_PORT_CAP_DUPLEX; in snd_virmidi_dev_attach_seq()
410 pinfo->type = SNDRV_SEQ_PORT_TYPE_MIDI_GENERIC in snd_virmidi_dev_attach_seq()
413 pinfo->midi_channels = 16; in snd_virmidi_dev_attach_seq()
422 pinfo->kernel = &pcallbacks; in snd_virmidi_dev_attach_seq()
423 err = snd_seq_kernel_client_ctl(client, SNDRV_SEQ_IOCTL_CREATE_PORT, pinfo); in snd_virmidi_dev_attach_seq()
430 rdev->port = pinfo->addr.port; in snd_virmidi_dev_attach_seq()
434 kfree(pinfo); in snd_virmidi_dev_attach_seq()