Home
last modified time | relevance | path

Searched refs:client (Results 1 – 25 of 121) sorted by relevance

12345

/sound/core/seq/
Dseq_clientmgr.c81 static int bounce_error_event(struct snd_seq_client *client,
84 static int snd_seq_deliver_single_event(struct snd_seq_client *client,
117 static inline int snd_seq_write_pool_allocated(struct snd_seq_client *client) in snd_seq_write_pool_allocated() argument
119 return snd_seq_total_cells(client->pool) > 0; in snd_seq_write_pool_allocated()
136 struct snd_seq_client *client; in snd_seq_client_use_ptr() local
144 client = clientptr(clientid); in snd_seq_client_use_ptr()
145 if (client) in snd_seq_client_use_ptr()
183 client = clientptr(clientid); in snd_seq_client_use_ptr()
184 if (client) in snd_seq_client_use_ptr()
192 snd_use_lock_use(&client->use_lock); in snd_seq_client_use_ptr()
[all …]
Dseq_ports.c59 struct snd_seq_client_port *snd_seq_port_use_ptr(struct snd_seq_client *client, in snd_seq_port_use_ptr() argument
64 if (client == NULL) in snd_seq_port_use_ptr()
66 read_lock(&client->ports_lock); in snd_seq_port_use_ptr()
67 list_for_each_entry(port, &client->ports_list_head, list) { in snd_seq_port_use_ptr()
72 read_unlock(&client->ports_lock); in snd_seq_port_use_ptr()
76 read_unlock(&client->ports_lock); in snd_seq_port_use_ptr()
82 struct snd_seq_client_port *snd_seq_port_query_nearest(struct snd_seq_client *client, in snd_seq_port_query_nearest() argument
90 read_lock(&client->ports_lock); in snd_seq_port_query_nearest()
91 list_for_each_entry(port, &client->ports_list_head, list) { in snd_seq_port_query_nearest()
107 read_unlock(&client->ports_lock); in snd_seq_port_query_nearest()
[all …]
Dseq_system.h28 void snd_seq_system_broadcast(int client, int port, int type);
30 #define snd_seq_system_client_ev_client_start(client) snd_seq_system_broadcast(client, 0, SNDRV_SEQ… argument
31 #define snd_seq_system_client_ev_client_exit(client) snd_seq_system_broadcast(client, 0, SNDRV_SEQ_… argument
32 #define snd_seq_system_client_ev_client_change(client) snd_seq_system_broadcast(client, 0, SNDRV_SE… argument
33 #define snd_seq_system_client_ev_port_start(client, port) snd_seq_system_broadcast(client, port, SN… argument
34 #define snd_seq_system_client_ev_port_exit(client, port) snd_seq_system_broadcast(client, port, SND… argument
35 #define snd_seq_system_client_ev_port_change(client, port) snd_seq_system_broadcast(client, port, S… argument
37 int snd_seq_system_notify(int client, int port, struct snd_seq_event *ev);
Dseq_queue.c82 static struct snd_seq_queue *queue_list_remove(int id, int client) in queue_list_remove() argument
91 if (q->owner == client) { in queue_list_remove()
187 int snd_seq_queue_alloc(int client, int locked, unsigned int info_flags) in snd_seq_queue_alloc() argument
191 q = queue_new(client, locked); in snd_seq_queue_alloc()
199 snd_seq_queue_use(q->queue, client, 1); /* use this queue */ in snd_seq_queue_alloc()
204 int snd_seq_queue_delete(int client, int queueid) in snd_seq_queue_delete() argument
210 q = queue_list_remove(queueid, client); in snd_seq_queue_delete()
367 static inline int check_access(struct snd_seq_queue *q, int client) in check_access() argument
369 return (q->owner == client) || (!q->locked && !q->klocked); in check_access()
375 static int queue_access_lock(struct snd_seq_queue *q, int client) in queue_access_lock() argument
[all …]
Dseq_midi.c105 ev.dest.client = SNDRV_SEQ_ADDRESS_SUBSCRIBERS; in snd_midi_input_event()
279 struct seq_midisynth_client *client; in snd_seq_midisynth_register_port() local
316 client = synths[card->number]; in snd_seq_midisynth_register_port()
317 if (client == NULL) { in snd_seq_midisynth_register_port()
319 client = kzalloc(sizeof(*client), GFP_KERNEL); in snd_seq_midisynth_register_port()
320 if (client == NULL) { in snd_seq_midisynth_register_port()
325 client->seq_client = in snd_seq_midisynth_register_port()
329 if (client->seq_client < 0) { in snd_seq_midisynth_register_port()
330 kfree(client); in snd_seq_midisynth_register_port()
350 port->addr.client = client->seq_client; in snd_seq_midisynth_register_port()
[all …]
Dseq_system.c70 static int setheader(struct snd_seq_event * ev, int client, int port) in setheader() argument
80 ev->source.client = sysclient; in setheader()
82 ev->dest.client = SNDRV_SEQ_ADDRESS_SUBSCRIBERS; in setheader()
86 ev->data.addr.client = client; in setheader()
94 void snd_seq_system_broadcast(int client, int port, int type) in snd_seq_system_broadcast() argument
98 if (setheader(&ev, client, port) < 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
108 ev->source.client = sysclient; in snd_seq_system_notify()
110 ev->dest.client = client; in snd_seq_system_notify()
145 port->addr.client = sysclient; in snd_seq_system_client_init()
[all …]
Dseq_virmidi.c65 ev->dest.client = SNDRV_SEQ_ADDRESS_SUBSCRIBERS; in snd_virmidi_init_event()
69 ev->dest.client = vmidi->client; in snd_virmidi_init_event()
167 if (snd_seq_kernel_client_dispatch(vmidi->client, &vmidi->event, in_atomic(), 0) < 0) in snd_virmidi_output_trigger()
186 if (snd_seq_kernel_client_dispatch(vmidi->client, &vmidi->event, in_atomic(), 0) < 0) in snd_virmidi_output_trigger()
216 vmidi->client = rdev->client; in snd_virmidi_input_open()
244 vmidi->client = rdev->client; in snd_virmidi_output_open()
358 int client; in snd_virmidi_dev_attach_seq() local
363 if (rdev->client >= 0) in snd_virmidi_dev_attach_seq()
372 client = snd_seq_create_kernel_client(rdev->card, rdev->device, in snd_virmidi_dev_attach_seq()
376 if (client < 0) { in snd_virmidi_dev_attach_seq()
[all …]
Dseq_queue.h74 int snd_seq_queue_alloc(int client, int locked, unsigned int flags);
77 int snd_seq_queue_delete(int client, int queueid);
80 void snd_seq_queue_client_termination(int client);
83 void snd_seq_queue_client_leave(int client);
89 void snd_seq_queue_client_leave_cells(int client);
90 void snd_seq_queue_remove_cells(int client, struct snd_seq_remove_events *info);
104 int snd_seq_queue_check_access(int queueid, int client);
105 int snd_seq_queue_timer_set_tempo(int queueid, int client, struct snd_seq_queue_tempo *info);
106 int snd_seq_queue_set_owner(int queueid, int client, int locked);
107 int snd_seq_queue_set_locked(int queueid, int client, int locked);
[all …]
Dseq_compat.c45 static int snd_seq_call_port_info_ioctl(struct snd_seq_client *client, unsigned int cmd, in snd_seq_call_port_info_ioctl() argument
62 err = snd_seq_do_ioctl(client, cmd, data); in snd_seq_call_port_info_ioctl()
92 struct snd_seq_client *client = file->private_data; in snd_seq_ioctl_compat() local
95 if (snd_BUG_ON(!client)) in snd_seq_ioctl_compat()
125 return snd_seq_do_ioctl(client, cmd, argp); in snd_seq_ioctl_compat()
127 return snd_seq_call_port_info_ioctl(client, SNDRV_SEQ_IOCTL_CREATE_PORT, argp); in snd_seq_ioctl_compat()
129 return snd_seq_call_port_info_ioctl(client, SNDRV_SEQ_IOCTL_DELETE_PORT, argp); in snd_seq_ioctl_compat()
131 return snd_seq_call_port_info_ioctl(client, SNDRV_SEQ_IOCTL_GET_PORT_INFO, argp); in snd_seq_ioctl_compat()
133 return snd_seq_call_port_info_ioctl(client, SNDRV_SEQ_IOCTL_SET_PORT_INFO, argp); in snd_seq_ioctl_compat()
135 return snd_seq_call_port_info_ioctl(client, SNDRV_SEQ_IOCTL_QUERY_NEXT_PORT, argp); in snd_seq_ioctl_compat()
Dseq_prioq.c270 int client, int timestamp) in prioq_match() argument
272 if (cell->event.source.client == client || in prioq_match()
273 cell->event.dest.client == client) in prioq_match()
292 void snd_seq_prioq_leave(struct snd_seq_prioq * f, int client, int timestamp) in snd_seq_prioq_leave() argument
304 if (prioq_match(cell, client, timestamp)) { in snd_seq_prioq_leave()
327 cell->event.source.client, in snd_seq_prioq_leave()
328 cell->event.dest.client, in snd_seq_prioq_leave()
329 client); in snd_seq_prioq_leave()
351 if (ev->dest.client != info->dest.client || in prioq_remove_match()
401 void snd_seq_prioq_remove_events(struct snd_seq_prioq * f, int client, in snd_seq_prioq_remove_events() argument
[all …]
Dseq_dummy.c76 int client; member
102 ev.dest.client = SNDRV_SEQ_ADDRESS_SUBSCRIBERS; in dummy_unuse()
107 snd_seq_kernel_client_dispatch(p->client, &ev, 0, 0); in dummy_unuse()
109 snd_seq_kernel_client_dispatch(p->client, &ev, 0, 0); in dummy_unuse()
125 if (ev->source.client == SNDRV_SEQ_CLIENT_SYSTEM || in dummy_input()
133 tmpev.dest.client = SNDRV_SEQ_ADDRESS_SUBSCRIBERS; in dummy_input()
134 return snd_seq_kernel_client_dispatch(p->client, &tmpev, atomic, hop); in dummy_input()
159 rec->client = my_client; in create_port()
163 pinfo.addr.client = my_client; in create_port()
Dseq_clientmgr.h88 #define snd_seq_client_unlock(client) snd_use_lock_free(&(client)->use_lock) argument
94 int snd_seq_kernel_client_enqueue(int client, struct snd_seq_event *ev, int atomic, int hop);
95 int snd_seq_kernel_client_enqueue_blocking(int client, struct snd_seq_event * ev,
98 int snd_seq_client_notify_subscription(int client, int port,
Dseq_ports.h96 struct snd_seq_client_port *snd_seq_port_use_ptr(struct snd_seq_client *client, int num);
99 struct snd_seq_client_port *snd_seq_port_query_nearest(struct snd_seq_client *client,
106 struct snd_seq_client_port *snd_seq_create_port(struct snd_seq_client *client, int port_index);
109 int snd_seq_delete_port(struct snd_seq_client *client, int port);
112 int snd_seq_delete_all_ports(struct snd_seq_client *client);
/sound/ppc/
Dkeywest.c35 static int keywest_probe(struct i2c_client *client, in keywest_probe() argument
38 i2c_set_clientdata(client, keywest_ctx); in keywest_probe()
60 keywest_ctx->client = i2c_new_device(adapter, &info); in keywest_attach_adapter()
61 if (!keywest_ctx->client) in keywest_attach_adapter()
68 if (!keywest_ctx->client->driver) { in keywest_attach_adapter()
69 i2c_unregister_device(keywest_ctx->client); in keywest_attach_adapter()
70 keywest_ctx->client = NULL; in keywest_attach_adapter()
78 list_add_tail(&keywest_ctx->client->detected, in keywest_attach_adapter()
79 &keywest_ctx->client->driver->clients); in keywest_attach_adapter()
83 static int keywest_remove(struct i2c_client *client) in keywest_remove() argument
[all …]
Ddaca.c57 if (i2c_smbus_write_byte_data(i2c->client, DACA_REG_SR, 0x08) < 0 || in daca_init_client()
58 i2c_smbus_write_byte_data(i2c->client, DACA_REG_GCFG, 0x05) < 0) in daca_init_client()
60 return i2c_smbus_write_block_data(i2c->client, DACA_REG_AVOL, in daca_init_client()
71 if (! mix->i2c.client) in daca_set_volume()
83 if (i2c_smbus_write_block_data(mix->i2c.client, DACA_REG_AVOL, in daca_set_volume()
196 i2c_smbus_write_byte_data(mix->i2c.client, DACA_REG_GCFG, in daca_put_amp()
228 i2c_smbus_write_byte_data(mix->i2c.client, DACA_REG_SR, 0x08); in daca_resume()
229 i2c_smbus_write_byte_data(mix->i2c.client, DACA_REG_GCFG, in daca_resume()
/sound/arm/
Dpxa2xx-pcm.c21 struct pxa2xx_pcm_client *client = substream->private_data; in pxa2xx_pcm_prepare() local
25 return client->prepare(substream); in pxa2xx_pcm_prepare()
30 struct pxa2xx_pcm_client *client = substream->private_data; in pxa2xx_pcm_open() local
42 client->playback_params : client->capture_params; in pxa2xx_pcm_open()
49 ret = client->startup(substream); in pxa2xx_pcm_open()
62 struct pxa2xx_pcm_client *client = substream->private_data; in pxa2xx_pcm_close() local
66 client->shutdown(substream); in pxa2xx_pcm_close()
85 int pxa2xx_pcm_new(struct snd_card *card, struct pxa2xx_pcm_client *client, in pxa2xx_pcm_new() argument
89 int play = client->playback_params ? 1 : 0; in pxa2xx_pcm_new()
90 int capt = client->capture_params ? 1 : 0; in pxa2xx_pcm_new()
[all …]
/sound/core/seq/oss/
Dseq_oss_midi.c44 int client; /* sequencer client number */ member
76 snd_seq_oss_midi_lookup_ports(int client) in snd_seq_oss_midi_lookup_ports() argument
88 clinfo->client = -1; in snd_seq_oss_midi_lookup_ports()
89 while (snd_seq_kernel_client_ctl(client, SNDRV_SEQ_IOCTL_QUERY_NEXT_CLIENT, clinfo) == 0) { in snd_seq_oss_midi_lookup_ports()
90 if (clinfo->client == client) in snd_seq_oss_midi_lookup_ports()
92 pinfo->addr.client = clinfo->client; in snd_seq_oss_midi_lookup_ports()
94 while (snd_seq_kernel_client_ctl(client, SNDRV_SEQ_IOCTL_QUERY_NEXT_PORT, pinfo) == 0) in snd_seq_oss_midi_lookup_ports()
123 find_slot(int client, int port) in find_slot() argument
132 if (mdev && mdev->client == client && mdev->port == port) { in find_slot()
156 debug_printk(("check for MIDI client %d port %d\n", pinfo->addr.client, pinfo->addr.port)); in snd_seq_oss_midi_check_new_port()
[all …]
Dseq_oss_init.c94 port->addr.client = system_client; in snd_seq_oss_create_client()
110 subs.sender.client = SNDRV_SEQ_CLIENT_SYSTEM; in snd_seq_oss_create_client()
112 subs.dest.client = system_client; in snd_seq_oss_create_client()
138 if (ev->data.addr.client == system_client) in receive_announce()
147 if (ev->data.addr.client == system_client) in receive_announce()
149 snd_seq_oss_midi_check_exit_port(ev->data.addr.client, in receive_announce()
229 dp->addr.client = dp->cseq; in snd_seq_oss_open()
321 port.addr.client = dp->cseq; in create_port()
/sound/drivers/opl4/
Dopl4_seq.c74 if (info->sender.client != SNDRV_SEQ_CLIENT_SYSTEM) { in snd_opl4_seq_use()
98 if (info->sender.client != SNDRV_SEQ_CLIENT_SYSTEM) in snd_opl4_seq_unuse()
130 int client; in snd_opl4_seq_new_device() local
146 client = snd_seq_create_kernel_client(opl4->card, opl4->seq_dev_num, in snd_opl4_seq_new_device()
148 if (client < 0) { in snd_opl4_seq_new_device()
150 return client; in snd_opl4_seq_new_device()
152 opl4->seq_client = client; in snd_opl4_seq_new_device()
153 opl4->chset->client = client; in snd_opl4_seq_new_device()
164 opl4->chset->port = snd_seq_event_port_attach(client, &pcallbacks, in snd_opl4_seq_new_device()
176 snd_seq_delete_kernel_client(client); in snd_opl4_seq_new_device()
/sound/soc/codecs/
Dmax9768.c162 static int max9768_i2c_probe(struct i2c_client *client, in max9768_i2c_probe() argument
166 struct max9768_pdata *pdata = client->dev.platform_data; in max9768_i2c_probe()
169 max9768 = devm_kzalloc(&client->dev, sizeof(*max9768), GFP_KERNEL); in max9768_i2c_probe()
188 i2c_set_clientdata(client, max9768); in max9768_i2c_probe()
190 max9768->regmap = devm_regmap_init_i2c(client, &max9768_i2c_regmap_config); in max9768_i2c_probe()
196 err = snd_soc_register_codec(&client->dev, &max9768_codec_driver, NULL, 0); in max9768_i2c_probe()
211 static int max9768_i2c_remove(struct i2c_client *client) in max9768_i2c_remove() argument
213 struct max9768 *max9768 = i2c_get_clientdata(client); in max9768_i2c_remove()
215 snd_soc_unregister_codec(&client->dev); in max9768_i2c_remove()
Dalc5623.c994 static int alc5623_i2c_probe(struct i2c_client *client, in alc5623_i2c_probe() argument
1001 vid1 = i2c_smbus_read_word_data(client, ALC5623_VENDOR_ID1); in alc5623_i2c_probe()
1003 dev_err(&client->dev, "failed to read I2C\n"); in alc5623_i2c_probe()
1008 vid2 = i2c_smbus_read_byte_data(client, ALC5623_VENDOR_ID2); in alc5623_i2c_probe()
1010 dev_err(&client->dev, "failed to read I2C\n"); in alc5623_i2c_probe()
1015 dev_err(&client->dev, "unknown or wrong codec\n"); in alc5623_i2c_probe()
1016 dev_err(&client->dev, "Expected %x:%lx, got %x:%x\n", in alc5623_i2c_probe()
1022 dev_dbg(&client->dev, "Found codec id : alc56%02x\n", vid2); in alc5623_i2c_probe()
1024 alc5623 = devm_kzalloc(&client->dev, sizeof(struct alc5623_priv), in alc5623_i2c_probe()
1029 pdata = client->dev.platform_data; in alc5623_i2c_probe()
[all …]
Dwm8711.c473 static int wm8711_i2c_probe(struct i2c_client *client, in wm8711_i2c_probe() argument
479 wm8711 = devm_kzalloc(&client->dev, sizeof(struct wm8711_priv), in wm8711_i2c_probe()
484 wm8711->regmap = devm_regmap_init_i2c(client, &wm8711_regmap); in wm8711_i2c_probe()
488 i2c_set_clientdata(client, wm8711); in wm8711_i2c_probe()
490 ret = snd_soc_register_codec(&client->dev, in wm8711_i2c_probe()
496 static int wm8711_i2c_remove(struct i2c_client *client) in wm8711_i2c_remove() argument
498 snd_soc_unregister_codec(&client->dev); in wm8711_i2c_remove()
/sound/synth/emux/
Demux_seq.c74 emu->client = snd_seq_create_kernel_client(card, index, in snd_emux_init_seq()
76 if (emu->client < 0) { in snd_emux_init_seq()
128 if (emu->client >= 0) { in snd_emux_detach_seq()
129 snd_seq_delete_kernel_client(emu->client); in snd_emux_detach_seq()
130 emu->client = -1; in snd_emux_detach_seq()
164 p->chset.client = emu->client; in snd_emux_create_port()
179 p->chset.port = snd_seq_event_port_attach(emu->client, callback, in snd_emux_create_port()
372 rdev->client = emu->client; in snd_emux_init_virmidi()
/sound/drivers/opl3/
Dopl3_seq.c123 if (info->sender.client != SNDRV_SEQ_CLIENT_SYSTEM) { in snd_opl3_synth_use()
137 if (info->sender.client != SNDRV_SEQ_CLIENT_SYSTEM) in snd_opl3_synth_unuse()
197 opl3->chset->client = opl3->seq_client; in snd_opl3_synth_create_port()
222 int client, err; in snd_opl3_seq_new_device() local
237 client = opl3->seq_client = in snd_opl3_seq_new_device()
240 if (client < 0) in snd_opl3_seq_new_device()
241 return client; in snd_opl3_seq_new_device()
244 snd_seq_delete_kernel_client(client); in snd_opl3_seq_new_device()
/sound/isa/gus/
Dgus_reset.c236 int type, int client, int port) in snd_gf1_alloc_voice_use() argument
246 pvoice->client = client; in snd_gf1_alloc_voice_use()
251 pvoice->client = client; in snd_gf1_alloc_voice_use()
257 struct snd_gus_voice *snd_gf1_alloc_voice(struct snd_gus_card * gus, int type, int client, int port) in snd_gf1_alloc_voice() argument
273 snd_gf1_alloc_voice_use(gus, pvoice, type, client, port); in snd_gf1_alloc_voice()
280 if (pvoice->midi && !pvoice->client) { in snd_gf1_alloc_voice()
282 snd_gf1_alloc_voice_use(gus, pvoice, type, client, port); in snd_gf1_alloc_voice()

12345