Lines Matching refs:pinfo
348 struct snd_seq_port_info *pinfo; in snd_virmidi_dev_attach_seq() local
354 pinfo = kzalloc(sizeof(*pinfo), GFP_KERNEL); in snd_virmidi_dev_attach_seq()
355 if (!pinfo) { in snd_virmidi_dev_attach_seq()
371 pinfo->addr.client = client; in snd_virmidi_dev_attach_seq()
372 sprintf(pinfo->name, "VirMIDI %d-%d", rdev->card->number, rdev->device); in snd_virmidi_dev_attach_seq()
374 …pinfo->capability |= SNDRV_SEQ_PORT_CAP_WRITE | SNDRV_SEQ_PORT_CAP_SYNC_WRITE | SNDRV_SEQ_PORT_CAP… in snd_virmidi_dev_attach_seq()
375 …pinfo->capability |= SNDRV_SEQ_PORT_CAP_READ | SNDRV_SEQ_PORT_CAP_SYNC_READ | SNDRV_SEQ_PORT_CAP_S… in snd_virmidi_dev_attach_seq()
376 pinfo->capability |= SNDRV_SEQ_PORT_CAP_DUPLEX; in snd_virmidi_dev_attach_seq()
377 pinfo->type = SNDRV_SEQ_PORT_TYPE_MIDI_GENERIC in snd_virmidi_dev_attach_seq()
380 pinfo->midi_channels = 16; in snd_virmidi_dev_attach_seq()
389 pinfo->kernel = &pcallbacks; in snd_virmidi_dev_attach_seq()
390 err = snd_seq_kernel_client_ctl(client, SNDRV_SEQ_IOCTL_CREATE_PORT, pinfo); in snd_virmidi_dev_attach_seq()
397 rdev->port = pinfo->addr.port; in snd_virmidi_dev_attach_seq()
401 kfree(pinfo); in snd_virmidi_dev_attach_seq()