Lines Matching refs:pinfo
108 struct snd_seq_port_info pinfo; in create_port() local
118 memset(&pinfo, 0, sizeof(pinfo)); in create_port()
119 pinfo.addr.client = my_client; in create_port()
121 sprintf(pinfo.name, "Midi Through Port-%d:%c", idx, in create_port()
124 sprintf(pinfo.name, "Midi Through Port-%d", idx); in create_port()
125 pinfo.capability = SNDRV_SEQ_PORT_CAP_READ | SNDRV_SEQ_PORT_CAP_SUBS_READ; in create_port()
126 pinfo.capability |= SNDRV_SEQ_PORT_CAP_WRITE | SNDRV_SEQ_PORT_CAP_SUBS_WRITE; in create_port()
128 pinfo.capability |= SNDRV_SEQ_PORT_CAP_DUPLEX; in create_port()
129 pinfo.type = SNDRV_SEQ_PORT_TYPE_MIDI_GENERIC in create_port()
137 pinfo.kernel = &pcb; in create_port()
138 if (snd_seq_kernel_client_ctl(my_client, SNDRV_SEQ_IOCTL_CREATE_PORT, &pinfo) < 0) { in create_port()
142 rec->port = pinfo.addr.port; in create_port()