Lines Matching refs:ev
70 static int setheader(struct snd_seq_event * ev, int client, int port) in setheader() argument
75 memset(ev, 0, sizeof(struct snd_seq_event)); in setheader()
77 ev->flags &= ~SNDRV_SEQ_EVENT_LENGTH_MASK; in setheader()
78 ev->flags |= SNDRV_SEQ_EVENT_LENGTH_FIXED; in setheader()
80 ev->source.client = sysclient; in setheader()
81 ev->source.port = announce_port; in setheader()
82 ev->dest.client = SNDRV_SEQ_ADDRESS_SUBSCRIBERS; in setheader()
86 ev->data.addr.client = client; in setheader()
87 ev->data.addr.port = port; in setheader()
96 struct snd_seq_event ev; in snd_seq_system_broadcast() local
98 if (setheader(&ev, client, port) < 0) in snd_seq_system_broadcast()
100 ev.type = type; in snd_seq_system_broadcast()
101 snd_seq_kernel_client_dispatch(sysclient, &ev, 0, 0); in snd_seq_system_broadcast()
105 int snd_seq_system_notify(int client, int port, struct snd_seq_event *ev) in snd_seq_system_notify() argument
107 ev->flags = SNDRV_SEQ_EVENT_LENGTH_FIXED; in snd_seq_system_notify()
108 ev->source.client = sysclient; in snd_seq_system_notify()
109 ev->source.port = announce_port; in snd_seq_system_notify()
110 ev->dest.client = client; in snd_seq_system_notify()
111 ev->dest.port = port; in snd_seq_system_notify()
112 return snd_seq_kernel_client_dispatch(sysclient, ev, 0, 0); in snd_seq_system_notify()
116 static int event_input_timer(struct snd_seq_event * ev, int direct, void *private_data, int atomic,… in event_input_timer() argument
118 return snd_seq_control_queue(ev, atomic, hop); in event_input_timer()