Lines Matching refs:port

19  *      - send tempo /start/stop etc. events to this port to manipulate the 
22 * - this port supports subscription. The received timer events are
25 * The modifier client/port is not send.
29 * - supports supscription. For each client or port attaching to or
49 /* port id numbers for this client */
54 /* fill standard header data, source port & channel are filled in */
55 static int setheader(struct snd_seq_event * ev, int client, int port)
66 ev->source.port = announce_port;
72 ev->data.addr.port = port;
79 void snd_seq_system_broadcast(int client, int port, int type)
83 if (setheader(&ev, client, port) < 0)
91 int snd_seq_system_notify(int client, int port, struct snd_seq_event *ev)
95 ev->source.port = announce_port;
97 ev->dest.port = port;
111 struct snd_seq_port_info *port;
114 port = kzalloc(sizeof(*port), GFP_KERNEL);
115 if (!port)
125 kfree(port);
130 strcpy(port->name, "Timer");
131 port->capability = SNDRV_SEQ_PORT_CAP_WRITE; /* accept queue control */
132 port->capability |= SNDRV_SEQ_PORT_CAP_READ|SNDRV_SEQ_PORT_CAP_SUBS_READ; /* for broadcast */
133 port->kernel = &pcallbacks;
134 port->type = 0;
135 port->flags = SNDRV_SEQ_PORT_FLG_GIVEN_PORT;
136 port->addr.client = sysclient;
137 port->addr.port = SNDRV_SEQ_PORT_SYSTEM_TIMER;
139 port);
143 /* register announcement port */
144 strcpy(port->name, "Announce");
145 port->capability = SNDRV_SEQ_PORT_CAP_READ|SNDRV_SEQ_PORT_CAP_SUBS_READ; /* for broadcast only */
146 port->kernel = NULL;
147 port->type = 0;
148 port->flags = SNDRV_SEQ_PORT_FLG_GIVEN_PORT;
149 port->addr.client = sysclient;
150 port->addr.port = SNDRV_SEQ_PORT_SYSTEM_ANNOUNCE;
152 port);
155 announce_port = port->addr.port;
157 kfree(port);
162 kfree(port);