Lines Matching defs:port
33 * - send tempo /start/stop etc. events to this port to manipulate the
36 * - this port supports subscription. The received timer events are
39 * The modifier client/port is not send.
43 * - supports supscription. For each client or port attaching to or
63 /* port id numbers for this client */
68 /* fill standard header data, source port & channel are filled in */
69 static int setheader(struct snd_seq_event * ev, int client, int port)
80 ev->source.port = announce_port;
86 ev->data.addr.port = port;
93 void snd_seq_system_broadcast(int client, int port, int type)
97 if (setheader(&ev, client, port) < 0)
104 int snd_seq_system_notify(int client, int port, struct snd_seq_event *ev)
108 ev->source.port = announce_port;
110 ev->dest.port = port;
124 struct snd_seq_port_info *port;
126 port = kzalloc(sizeof(*port), GFP_KERNEL);
127 if (!port)
138 strcpy(port->name, "Timer");
139 port->capability = SNDRV_SEQ_PORT_CAP_WRITE; /* accept queue control */
140 port->capability |= SNDRV_SEQ_PORT_CAP_READ|SNDRV_SEQ_PORT_CAP_SUBS_READ; /* for broadcast */
141 port->kernel = &pcallbacks;
142 port->type = 0;
143 port->flags = SNDRV_SEQ_PORT_FLG_GIVEN_PORT;
144 port->addr.client = sysclient;
145 port->addr.port = SNDRV_SEQ_PORT_SYSTEM_TIMER;
146 snd_seq_kernel_client_ctl(sysclient, SNDRV_SEQ_IOCTL_CREATE_PORT, port);
148 /* register announcement port */
149 strcpy(port->name, "Announce");
150 port->capability = SNDRV_SEQ_PORT_CAP_READ|SNDRV_SEQ_PORT_CAP_SUBS_READ; /* for broadcast only */
151 port->kernel = NULL;
152 port->type = 0;
153 port->flags = SNDRV_SEQ_PORT_FLG_GIVEN_PORT;
154 port->addr.client = sysclient;
155 port->addr.port = SNDRV_SEQ_PORT_SYSTEM_ANNOUNCE;
156 snd_seq_kernel_client_ctl(sysclient, SNDRV_SEQ_IOCTL_CREATE_PORT, port);
157 announce_port = port->addr.port;
159 kfree(port);