Lines Matching refs:pinfo
122 struct snd_seq_port_info pinfo; in create_port() local
132 memset(&pinfo, 0, sizeof(pinfo)); in create_port()
133 pinfo.addr.client = my_client; in create_port()
135 sprintf(pinfo.name, "Midi Through Port-%d:%c", idx, in create_port()
138 sprintf(pinfo.name, "Midi Through Port-%d", idx); in create_port()
139 pinfo.capability = SNDRV_SEQ_PORT_CAP_READ | SNDRV_SEQ_PORT_CAP_SUBS_READ; in create_port()
140 pinfo.capability |= SNDRV_SEQ_PORT_CAP_WRITE | SNDRV_SEQ_PORT_CAP_SUBS_WRITE; in create_port()
142 pinfo.capability |= SNDRV_SEQ_PORT_CAP_DUPLEX; in create_port()
143 pinfo.type = SNDRV_SEQ_PORT_TYPE_MIDI_GENERIC in create_port()
151 pinfo.kernel = &pcb; in create_port()
152 if (snd_seq_kernel_client_ctl(my_client, SNDRV_SEQ_IOCTL_CREATE_PORT, &pinfo) < 0) { in create_port()
156 rec->port = pinfo.addr.port; in create_port()