Home
last modified time | relevance | path

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

123456

/sound/core/seq/
A Dseq_ump_client.c172 port->addr.client = client->seq_client; in fill_port_info()
256 if (skip_group(client, &client->ump->groups[i])) in update_port_infos()
259 old->addr.client = client->seq_client; in update_port_infos()
266 fill_port_info(new, client, &client->ump->groups[i]); in update_port_infos()
290 port->addr.client = client->seq_client; in create_ump_endpoint_port()
344 kfree(client); in seq_ump_client_free()
398 if (!client) in seq_ump_notify_ep_change()
424 if (!client) in seq_ump_notify_fb_change()
438 if (!client) in seq_ump_switch_protocol()
465 client = kzalloc(sizeof(*client), GFP_KERNEL); in snd_seq_ump_probe()
[all …]
A Dseq_clientmgr.c248 client = kzalloc(sizeof(*client), GFP_KERNEL); in seq_create_client1()
272 clienttab[client->number = c] = client; in seq_create_client1()
326 client->number, client->type); in seq_free_client()
596 bounce_ev.dest.client = client->number; in bounce_error_event()
1305 if (client->number != client_info->client) in snd_seq_ioctl_set_client_info()
1351 if (info->addr.client != client->number) in snd_seq_ioctl_create_port()
1404 if (info->addr.client != client->number) in snd_seq_ioctl_delete_port()
1871 info->client = client->number; in snd_seq_ioctl_get_queue_client()
1930 if (client->number != info->client) in snd_seq_ioctl_set_client_pool()
2500 ev->source.client = client; in snd_seq_kernel_client_enqueue()
[all …]
A Dseq_system.h13 void snd_seq_system_broadcast(int client, int port, int type, bool atomic);
16 #define notify_event(client, port, type) \ argument
17 snd_seq_system_broadcast(client, port, type, false)
26 snd_seq_system_broadcast(client, block, type, atomic); in snd_seq_system_ump_notify()
29 #define snd_seq_system_client_ev_client_start(client) notify_event(client, 0, SNDRV_SEQ_EVENT_CLIEN… argument
30 #define snd_seq_system_client_ev_client_exit(client) notify_event(client, 0, SNDRV_SEQ_EVENT_CLIENT… argument
31 #define snd_seq_system_client_ev_client_change(client) notify_event(client, 0, SNDRV_SEQ_EVENT_CLIE… argument
32 #define snd_seq_system_client_ev_port_start(client, port) notify_event(client, port, SNDRV_SEQ_EVEN… argument
33 #define snd_seq_system_client_ev_port_exit(client, port) notify_event(client, port, SNDRV_SEQ_EVENT… argument
34 #define snd_seq_system_client_ev_port_change(client, port) notify_event(client, port, SNDRV_SEQ_EVE… argument
[all …]
A Dseq_ports.c49 if (client == NULL) in snd_seq_port_use_ptr()
123 if (snd_BUG_ON(!client)) in snd_seq_create_port()
136 new_port->addr.client = client->number; in snd_seq_create_port()
145 guard(mutex)(&client->ports_mutex); in snd_seq_create_port()
159 client->num_ports++; in snd_seq_create_port()
283 client->num_ports--; in snd_seq_delete_port()
312 client->num_ports = 0; in snd_seq_delete_all_ports()
319 port_delete(client, port); in snd_seq_delete_all_ports()
476 return (r->client == s->client) && (r->port == s->port); in addr_match()
690 portinfo.addr.client = client; in snd_seq_event_port_attach()
[all …]
A Dseq_queue.c74 if (q->owner == client) { in queue_list_remove()
164 q = queue_new(client, locked); in snd_seq_queue_alloc()
168 queue_use(q, client, 1); in snd_seq_queue_alloc()
185 q = queue_list_remove(queueid, client); in snd_seq_queue_delete()
353 access_ok = check_access(q, client); in queue_access_lock()
375 access_ok = check_access(q, client); in snd_seq_queue_check_access()
392 if (! queue_access_lock(q, client)) { in snd_seq_queue_set_owner()
399 q->owner = client; in snd_seq_queue_set_owner()
458 if (! queue_access_lock(q, client)) { in snd_seq_queue_timer_set_tempo()
504 queue_use(queue, client, use); in snd_seq_queue_use()
[all …]
A Dseq_midi.c307 if (client == NULL) { in snd_seq_midisynth_probe()
309 client = kzalloc(sizeof(*client), GFP_KERNEL); in snd_seq_midisynth_probe()
310 if (client == NULL) in snd_seq_midisynth_probe()
312 client->seq_client = in snd_seq_midisynth_probe()
317 kfree(client); in snd_seq_midisynth_probe()
336 port->addr.client = client->seq_client; in snd_seq_midisynth_probe()
395 client->num_ports++; in snd_seq_midisynth_probe()
408 kfree(client); in snd_seq_midisynth_probe()
425 if (client == NULL || client->ports[device] == NULL) in snd_seq_midisynth_remove()
434 client->num_ports--; in snd_seq_midisynth_remove()
[all …]
A Dseq_system.c57 static int setheader(struct snd_seq_event * ev, int client, int port) in setheader() argument
67 ev->source.client = sysclient; in setheader()
69 ev->dest.client = SNDRV_SEQ_ADDRESS_SUBSCRIBERS; in setheader()
73 ev->data.addr.client = client; in setheader()
81 void snd_seq_system_broadcast(int client, int port, int type, bool atomic) in snd_seq_system_broadcast() argument
85 if (setheader(&ev, client, port) < 0) in snd_seq_system_broadcast()
93 int snd_seq_system_notify(int client, int port, struct snd_seq_event *ev, in snd_seq_system_notify() argument
97 ev->source.client = sysclient; in snd_seq_system_notify()
99 ev->dest.client = client; in snd_seq_system_notify()
155 port->addr.client = sysclient; in snd_seq_system_client_init()
[all …]
A Dseq_dummy.c68 int client; member
87 if (ev->source.client == SNDRV_SEQ_CLIENT_SYSTEM || in dummy_input()
95 tmpev.dest.client = SNDRV_SEQ_ADDRESS_SUBSCRIBERS; in dummy_input()
122 rec->client = my_client; in create_port()
126 pinfo.addr.client = my_client; in create_port()
162 struct snd_seq_client *client; in register_client() local
178 client = snd_seq_kernel_client_get(my_client); in register_client()
179 if (!client) in register_client()
183 client->midi_version = SNDRV_SEQ_CLIENT_UMP_MIDI_1_0; in register_client()
190 client->filter = SNDRV_SEQ_FILTER_NO_CONVERT; in register_client()
[all …]
A Dseq_queue.h57 struct snd_seq_queue *snd_seq_queue_alloc(int client, int locked, unsigned int flags);
60 int snd_seq_queue_delete(int client, int queueid);
63 void snd_seq_queue_client_leave(int client);
69 void snd_seq_queue_remove_cells(int client, struct snd_seq_remove_events *info);
83 int snd_seq_queue_check_access(int queueid, int client);
84 int snd_seq_queue_timer_set_tempo(int queueid, int client, struct snd_seq_queue_tempo *info);
85 int snd_seq_queue_set_owner(int queueid, int client, int locked);
88 int snd_seq_queue_use(int queueid, int client, int use);
89 int snd_seq_queue_is_used(int queueid, int client);
A Dseq_virmidi.c55 ev->dest.client = vmidi->client; in snd_virmidi_init_event()
199 vmidi->client = rdev->client; in snd_virmidi_input_open()
228 vmidi->client = rdev->client; in snd_virmidi_output_open()
362 int client; in snd_virmidi_dev_attach_seq() local
378 if (client < 0) in snd_virmidi_dev_attach_seq()
379 return client; in snd_virmidi_dev_attach_seq()
380 rdev->client = client; in snd_virmidi_dev_attach_seq()
383 pinfo->addr.client = client; in snd_virmidi_dev_attach_seq()
406 rdev->client = -1; in snd_virmidi_dev_attach_seq()
422 rdev->client = -1; in snd_virmidi_dev_detach_seq()
[all …]
A Dseq_compat.c31 static int snd_seq_call_port_info_ioctl(struct snd_seq_client *client, unsigned int cmd, in snd_seq_call_port_info_ioctl() argument
47 err = snd_seq_kernel_client_ctl(client->number, cmd, data); in snd_seq_call_port_info_ioctl()
74 struct snd_seq_client *client = file->private_data; in snd_seq_ioctl_compat() local
77 if (snd_BUG_ON(!client)) in snd_seq_ioctl_compat()
112 return snd_seq_call_port_info_ioctl(client, SNDRV_SEQ_IOCTL_CREATE_PORT, argp); in snd_seq_ioctl_compat()
114 return snd_seq_call_port_info_ioctl(client, SNDRV_SEQ_IOCTL_DELETE_PORT, argp); in snd_seq_ioctl_compat()
116 return snd_seq_call_port_info_ioctl(client, SNDRV_SEQ_IOCTL_GET_PORT_INFO, argp); in snd_seq_ioctl_compat()
118 return snd_seq_call_port_info_ioctl(client, SNDRV_SEQ_IOCTL_SET_PORT_INFO, argp); in snd_seq_ioctl_compat()
120 return snd_seq_call_port_info_ioctl(client, SNDRV_SEQ_IOCTL_QUERY_NEXT_PORT, argp); in snd_seq_ioctl_compat()
A Dseq_prioq.c293 int client; member
301 if (cell->event.source.client == v->client || in prioq_match()
302 cell->event.dest.client == v->client) in prioq_match()
321 void snd_seq_prioq_leave(struct snd_seq_prioq *f, int client, int timestamp) in snd_seq_prioq_leave() argument
323 struct prioq_match_arg arg = { client, timestamp }; in snd_seq_prioq_leave()
329 int client; member
340 if (ev->source.client != v->client) in prioq_remove_match()
344 if (ev->dest.client != info->dest.client || in prioq_remove_match()
394 void snd_seq_prioq_remove_events(struct snd_seq_prioq * f, int client, in snd_seq_prioq_remove_events() argument
397 struct prioq_remove_match_arg arg = { client, info }; in snd_seq_prioq_remove_events()
/sound/ppc/
A Dkeywest.c23 if (!keywest_ctx->client) in keywest_probe()
24 keywest_ctx->client = client; in keywest_probe()
25 i2c_set_clientdata(client, keywest_ctx); in keywest_probe()
37 struct i2c_client *client; in keywest_attach_adapter() local
49 if (IS_ERR(client)) in keywest_attach_adapter()
50 return PTR_ERR(client); in keywest_attach_adapter()
51 keywest_ctx->client = client; in keywest_attach_adapter()
60 keywest_ctx->client = NULL; in keywest_attach_adapter()
71 if (client == keywest_ctx->client) in keywest_remove()
72 keywest_ctx->client = NULL; in keywest_remove()
[all …]
/sound/soc/codecs/
A Drl6347a.c18 struct i2c_client *client = context; in rl6347a_hw_write() local
19 struct rl6347a_priv *rl6347a = i2c_get_clientdata(client); in rl6347a_hw_write()
25 rl6347a_hw_write(client, RL6347A_COEF_INDEX, reg); in rl6347a_hw_write()
46 ret = i2c_master_send(client, data, 4); in rl6347a_hw_write()
51 dev_err(&client->dev, "I2C error %d\n", ret); in rl6347a_hw_write()
61 struct i2c_client *client = context; in rl6347a_hw_read() local
69 rl6347a_hw_write(client, RL6347A_COEF_INDEX, reg); in rl6347a_hw_read()
83 xfer[0].addr = client->addr; in rl6347a_hw_read()
89 xfer[1].addr = client->addr; in rl6347a_hw_read()
94 ret = i2c_transfer(client->adapter, xfer, 2); in rl6347a_hw_read()
A Dcs35l45-i2c.c16 static int cs35l45_i2c_probe(struct i2c_client *client) in cs35l45_i2c_probe() argument
19 struct device *dev = &client->dev; in cs35l45_i2c_probe()
26 i2c_set_clientdata(client, cs35l45); in cs35l45_i2c_probe()
27 cs35l45->regmap = devm_regmap_init_i2c(client, &cs35l45_i2c_regmap); in cs35l45_i2c_probe()
35 cs35l45->irq = client->irq; in cs35l45_i2c_probe()
37 cs35l45->i2c_addr = client->addr; in cs35l45_i2c_probe()
42 static void cs35l45_i2c_remove(struct i2c_client *client) in cs35l45_i2c_remove() argument
44 struct cs35l45_private *cs35l45 = i2c_get_clientdata(client); in cs35l45_i2c_remove()
A Dcs530x-i2c.c38 static int cs530x_i2c_probe(struct i2c_client *client) in cs530x_i2c_probe() argument
42 cs530x = devm_kzalloc(&client->dev, sizeof(*cs530x), GFP_KERNEL); in cs530x_i2c_probe()
46 i2c_set_clientdata(client, cs530x); in cs530x_i2c_probe()
48 cs530x->regmap = devm_regmap_init_i2c(client, &cs530x_regmap); in cs530x_i2c_probe()
50 return dev_err_probe(&client->dev, PTR_ERR(cs530x->regmap), in cs530x_i2c_probe()
53 cs530x->devtype = (uintptr_t)i2c_get_match_data(client); in cs530x_i2c_probe()
54 cs530x->dev = &client->dev; in cs530x_i2c_probe()
A Dcs35l56-i2c.c18 static int cs35l56_i2c_probe(struct i2c_client *client) in cs35l56_i2c_probe() argument
20 unsigned int id = (u32)(uintptr_t)i2c_get_match_data(client); in cs35l56_i2c_probe()
22 struct device *dev = &client->dev; in cs35l56_i2c_probe()
33 i2c_set_clientdata(client, cs35l56); in cs35l56_i2c_probe()
48 cs35l56->base.regmap = devm_regmap_init_i2c(client, regmap_config); in cs35l56_i2c_probe()
60 ret = cs35l56_irq_request(&cs35l56->base, client->irq); in cs35l56_i2c_probe()
67 static void cs35l56_i2c_remove(struct i2c_client *client) in cs35l56_i2c_remove() argument
69 struct cs35l56_private *cs35l56 = i2c_get_clientdata(client); in cs35l56_i2c_remove()
A Dcs35l41-i2c.c32 static int cs35l41_i2c_probe(struct i2c_client *client) in cs35l41_i2c_probe() argument
35 struct device *dev = &client->dev; in cs35l41_i2c_probe()
45 cs35l41->irq = client->irq; in cs35l41_i2c_probe()
47 i2c_set_clientdata(client, cs35l41); in cs35l41_i2c_probe()
48 cs35l41->regmap = devm_regmap_init_i2c(client, regmap_config); in cs35l41_i2c_probe()
56 static void cs35l41_i2c_remove(struct i2c_client *client) in cs35l41_i2c_remove() argument
58 struct cs35l41_private *cs35l41 = i2c_get_clientdata(client); in cs35l41_i2c_remove()
A Dpcm1789-i2c.c15 static int pcm1789_i2c_probe(struct i2c_client *client) in pcm1789_i2c_probe() argument
20 regmap = devm_regmap_init_i2c(client, &pcm1789_regmap_config); in pcm1789_i2c_probe()
23 dev_err(&client->dev, "Failed to allocate regmap: %d\n", ret); in pcm1789_i2c_probe()
27 return pcm1789_common_init(&client->dev, regmap); in pcm1789_i2c_probe()
30 static void pcm1789_i2c_remove(struct i2c_client *client) in pcm1789_i2c_remove() argument
32 pcm1789_common_exit(&client->dev); in pcm1789_i2c_remove()
A Dadau1781-i2c.c17 static int adau1781_i2c_probe(struct i2c_client *client) in adau1781_i2c_probe() argument
25 return adau1781_probe(&client->dev, in adau1781_i2c_probe()
26 devm_regmap_init_i2c(client, &config), in adau1781_i2c_probe()
27 (uintptr_t)i2c_get_match_data(client), NULL); in adau1781_i2c_probe()
30 static void adau1781_i2c_remove(struct i2c_client *client) in adau1781_i2c_remove() argument
32 adau17x1_remove(&client->dev); in adau1781_i2c_remove()
A Dadau1761-i2c.c17 static int adau1761_i2c_probe(struct i2c_client *client) in adau1761_i2c_probe() argument
25 return adau1761_probe(&client->dev, in adau1761_i2c_probe()
26 devm_regmap_init_i2c(client, &config), in adau1761_i2c_probe()
27 (uintptr_t)i2c_get_match_data(client), NULL); in adau1761_i2c_probe()
30 static void adau1761_i2c_remove(struct i2c_client *client) in adau1761_i2c_remove() argument
32 adau17x1_remove(&client->dev); in adau1761_i2c_remove()
A Dsigmadsp-i2c.c42 struct i2c_client *client = control_data; in sigmadsp_read_i2c() local
49 msgs[0].addr = client->addr; in sigmadsp_read_i2c()
54 msgs[1].addr = client->addr; in sigmadsp_read_i2c()
59 ret = i2c_transfer(client->adapter, msgs, ARRAY_SIZE(msgs)); in sigmadsp_read_i2c()
77 struct sigmadsp *devm_sigmadsp_init_i2c(struct i2c_client *client, in devm_sigmadsp_init_i2c() argument
82 sigmadsp = devm_sigmadsp_init(&client->dev, ops, firmware_name); in devm_sigmadsp_init_i2c()
86 sigmadsp->control_data = client; in devm_sigmadsp_init_i2c()
A Dsgtl5000.c1575 dev_err(&client->dev, in sgtl5000_fill_defaults()
1636 dev_err(&client->dev, in sgtl5000_i2c_probe()
1651 dev_err(&client->dev, in sgtl5000_i2c_probe()
1658 dev_err(&client->dev, in sgtl5000_i2c_probe()
1697 dev_err(&client->dev, in sgtl5000_i2c_probe()
1701 dev_info(&client->dev, in sgtl5000_i2c_probe()
1714 dev_err(&client->dev, in sgtl5000_i2c_probe()
1736 dev_err(&client->dev, in sgtl5000_i2c_probe()
1751 dev_err(&client->dev, in sgtl5000_i2c_probe()
1774 sgtl5000_fill_defaults(client); in sgtl5000_i2c_probe()
[all …]
/sound/core/seq/oss/
A Dseq_oss_midi.c74 clinfo->client = -1; in snd_seq_oss_midi_lookup_ports()
76 if (clinfo->client == client) in snd_seq_oss_midi_lookup_ports()
78 pinfo->addr.client = clinfo->client; in snd_seq_oss_midi_lookup_ports()
116 if (mdev && mdev->client == client && mdev->port == port) { in find_slot()
166 mdev->client = pinfo->addr.client; in snd_seq_oss_midi_check_new_port()
358 subs.dest.client = mdev->client; in snd_seq_oss_midi_open()
364 subs.sender.client = mdev->client; in snd_seq_oss_midi_open()
406 subs.dest.client = mdev->client; in snd_seq_oss_midi_close()
411 subs.sender.client = mdev->client; in snd_seq_oss_midi_close()
471 ev.dest.client = mdev->client; in snd_seq_oss_midi_reset()
[all …]
/sound/drivers/opl4/
A 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()
131 int client; in snd_opl4_seq_probe() local
147 client = snd_seq_create_kernel_client(opl4->card, opl4->seq_dev_num, in snd_opl4_seq_probe()
149 if (client < 0) { in snd_opl4_seq_probe()
151 return client; in snd_opl4_seq_probe()
153 opl4->seq_client = client; in snd_opl4_seq_probe()
154 opl4->chset->client = client; in snd_opl4_seq_probe()
165 opl4->chset->port = snd_seq_event_port_attach(client, &pcallbacks, in snd_opl4_seq_probe()
177 snd_seq_delete_kernel_client(client); in snd_opl4_seq_probe()

Completed in 54 milliseconds

123456