/sound/core/seq/ |
D | seq_clientmgr.c | 66 static int bounce_error_event(struct snd_seq_client *client, 69 static int snd_seq_deliver_single_event(struct snd_seq_client *client, 87 static inline int snd_seq_write_pool_allocated(struct snd_seq_client *client) in snd_seq_write_pool_allocated() argument 89 return snd_seq_total_cells(client->pool) > 0; in snd_seq_write_pool_allocated() 106 struct snd_seq_client *client; in snd_seq_client_use_ptr() local 114 client = clientptr(clientid); in snd_seq_client_use_ptr() 115 if (client) in snd_seq_client_use_ptr() 151 client = clientptr(clientid); in snd_seq_client_use_ptr() 152 if (client) in snd_seq_client_use_ptr() 160 snd_use_lock_use(&client->use_lock); in snd_seq_client_use_ptr() [all …]
|
D | seq_ports.c | 44 struct snd_seq_client_port *snd_seq_port_use_ptr(struct snd_seq_client *client, in snd_seq_port_use_ptr() argument 49 if (client == NULL) in snd_seq_port_use_ptr() 51 read_lock(&client->ports_lock); in snd_seq_port_use_ptr() 52 list_for_each_entry(port, &client->ports_list_head, list) { in snd_seq_port_use_ptr() 57 read_unlock(&client->ports_lock); in snd_seq_port_use_ptr() 61 read_unlock(&client->ports_lock); in snd_seq_port_use_ptr() 67 struct snd_seq_client_port *snd_seq_port_query_nearest(struct snd_seq_client *client, in snd_seq_port_query_nearest() argument 75 read_lock(&client->ports_lock); in snd_seq_port_query_nearest() 76 list_for_each_entry(port, &client->ports_list_head, list) { in snd_seq_port_query_nearest() 92 read_unlock(&client->ports_lock); in snd_seq_port_query_nearest() [all …]
|
D | seq_system.h | 13 void snd_seq_system_broadcast(int client, int port, int type); 15 #define snd_seq_system_client_ev_client_start(client) snd_seq_system_broadcast(client, 0, SNDRV_SEQ… argument 16 #define snd_seq_system_client_ev_client_exit(client) snd_seq_system_broadcast(client, 0, SNDRV_SEQ_… argument 17 #define snd_seq_system_client_ev_client_change(client) snd_seq_system_broadcast(client, 0, SNDRV_SE… argument 18 #define snd_seq_system_client_ev_port_start(client, port) snd_seq_system_broadcast(client, port, SN… argument 19 #define snd_seq_system_client_ev_port_exit(client, port) snd_seq_system_broadcast(client, port, SND… argument 20 #define snd_seq_system_client_ev_port_change(client, port) snd_seq_system_broadcast(client, port, S… argument 22 int snd_seq_system_notify(int client, int port, struct snd_seq_event *ev);
|
D | seq_queue.c | 69 static struct snd_seq_queue *queue_list_remove(int id, int client) in queue_list_remove() argument 78 if (q->owner == client) { in queue_list_remove() 161 static void queue_use(struct snd_seq_queue *queue, int client, int use); 168 struct snd_seq_queue *snd_seq_queue_alloc(int client, int locked, unsigned int info_flags) in snd_seq_queue_alloc() argument 172 q = queue_new(client, locked); in snd_seq_queue_alloc() 176 queue_use(q, client, 1); in snd_seq_queue_alloc() 187 int snd_seq_queue_delete(int client, int queueid) in snd_seq_queue_delete() argument 193 q = queue_list_remove(queueid, client); in snd_seq_queue_delete() 353 static inline int check_access(struct snd_seq_queue *q, int client) in check_access() argument 355 return (q->owner == client) || (!q->locked && !q->klocked); in check_access() [all …]
|
D | seq_queue.h | 57 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_termination(int client); 66 void snd_seq_queue_client_leave(int client); 72 void snd_seq_queue_client_leave_cells(int client); 73 void snd_seq_queue_remove_cells(int client, struct snd_seq_remove_events *info); 87 int snd_seq_queue_check_access(int queueid, int client); 88 int snd_seq_queue_timer_set_tempo(int queueid, int client, struct snd_seq_queue_tempo *info); 89 int snd_seq_queue_set_owner(int queueid, int client, int locked); 90 int snd_seq_queue_set_locked(int queueid, int client, int locked); [all …]
|
D | seq_midi.c | 88 ev.dest.client = SNDRV_SEQ_ADDRESS_SUBSCRIBERS; in snd_midi_input_event() 267 struct seq_midisynth_client *client; in snd_seq_midisynth_probe() local 304 client = synths[card->number]; in snd_seq_midisynth_probe() 305 if (client == NULL) { in snd_seq_midisynth_probe() 307 client = kzalloc(sizeof(*client), GFP_KERNEL); in snd_seq_midisynth_probe() 308 if (client == NULL) { in snd_seq_midisynth_probe() 313 client->seq_client = in snd_seq_midisynth_probe() 317 if (client->seq_client < 0) { in snd_seq_midisynth_probe() 318 kfree(client); in snd_seq_midisynth_probe() 338 port->addr.client = client->seq_client; in snd_seq_midisynth_probe() [all …]
|
D | seq_system.c | 55 static int setheader(struct snd_seq_event * ev, int client, int port) in setheader() argument 65 ev->source.client = sysclient; in setheader() 67 ev->dest.client = SNDRV_SEQ_ADDRESS_SUBSCRIBERS; in setheader() 71 ev->data.addr.client = client; in setheader() 79 void snd_seq_system_broadcast(int client, int port, int type) in snd_seq_system_broadcast() argument 83 if (setheader(&ev, client, port) < 0) in snd_seq_system_broadcast() 90 int snd_seq_system_notify(int client, int port, struct snd_seq_event *ev) in snd_seq_system_notify() argument 93 ev->source.client = sysclient; in snd_seq_system_notify() 95 ev->dest.client = client; in snd_seq_system_notify() 135 port->addr.client = sysclient; in snd_seq_system_client_init() [all …]
|
D | seq_virmidi.c | 51 ev->dest.client = SNDRV_SEQ_ADDRESS_SUBSCRIBERS; in snd_virmidi_init_event() 55 ev->dest.client = vmidi->client; in snd_virmidi_init_event() 157 ret = snd_seq_kernel_client_dispatch(vmidi->client, in snd_vmidi_output_work() 199 vmidi->client = rdev->client; in snd_virmidi_input_open() 229 vmidi->client = rdev->client; in snd_virmidi_output_open() 353 int client; in snd_virmidi_dev_attach_seq() local 358 if (rdev->client >= 0) in snd_virmidi_dev_attach_seq() 367 client = snd_seq_create_kernel_client(rdev->card, rdev->device, in snd_virmidi_dev_attach_seq() 371 if (client < 0) { in snd_virmidi_dev_attach_seq() 372 err = client; in snd_virmidi_dev_attach_seq() [all …]
|
D | seq_compat.c | 31 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() 76 struct snd_seq_client *client = file->private_data; in snd_seq_ioctl_compat() local 79 if (snd_BUG_ON(!client)) in snd_seq_ioctl_compat() 111 return snd_seq_call_port_info_ioctl(client, SNDRV_SEQ_IOCTL_CREATE_PORT, argp); in snd_seq_ioctl_compat() 113 return snd_seq_call_port_info_ioctl(client, SNDRV_SEQ_IOCTL_DELETE_PORT, argp); in snd_seq_ioctl_compat() 115 return snd_seq_call_port_info_ioctl(client, SNDRV_SEQ_IOCTL_GET_PORT_INFO, argp); in snd_seq_ioctl_compat() 117 return snd_seq_call_port_info_ioctl(client, SNDRV_SEQ_IOCTL_SET_PORT_INFO, argp); in snd_seq_ioctl_compat() 119 return snd_seq_call_port_info_ioctl(client, SNDRV_SEQ_IOCTL_QUERY_NEXT_PORT, argp); in snd_seq_ioctl_compat()
|
D | seq_prioq.c | 253 int client, int timestamp) in prioq_match() argument 255 if (cell->event.source.client == client || in prioq_match() 256 cell->event.dest.client == client) in prioq_match() 275 void snd_seq_prioq_leave(struct snd_seq_prioq * f, int client, int timestamp) in snd_seq_prioq_leave() argument 287 if (prioq_match(cell, client, timestamp)) { in snd_seq_prioq_leave() 310 cell->event.source.client, in snd_seq_prioq_leave() 311 cell->event.dest.client, in snd_seq_prioq_leave() 312 client); in snd_seq_prioq_leave() 334 if (ev->dest.client != info->dest.client || in prioq_remove_match() 384 void snd_seq_prioq_remove_events(struct snd_seq_prioq * f, int client, in snd_seq_prioq_remove_events() argument [all …]
|
/sound/ppc/ |
D | keywest.c | 24 static int keywest_probe(struct i2c_client *client, in keywest_probe() argument 29 if (!keywest_ctx->client) in keywest_probe() 30 keywest_ctx->client = client; in keywest_probe() 31 i2c_set_clientdata(client, keywest_ctx); in keywest_probe() 53 keywest_ctx->client = i2c_new_device(adapter, &info); in keywest_attach_adapter() 54 if (!keywest_ctx->client) in keywest_attach_adapter() 61 if (!keywest_ctx->client->dev.driver) { in keywest_attach_adapter() 62 i2c_unregister_device(keywest_ctx->client); in keywest_attach_adapter() 63 keywest_ctx->client = NULL; in keywest_attach_adapter() 71 list_add_tail(&keywest_ctx->client->detected, in keywest_attach_adapter() [all …]
|
/sound/soc/codecs/ |
D | rl6347a.c | 18 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()
|
D | pcm1789-i2c.c | 15 static int pcm1789_i2c_probe(struct i2c_client *client, in pcm1789_i2c_probe() argument 21 regmap = devm_regmap_init_i2c(client, &pcm1789_regmap_config); in pcm1789_i2c_probe() 24 dev_err(&client->dev, "Failed to allocate regmap: %d\n", ret); in pcm1789_i2c_probe() 28 return pcm1789_common_init(&client->dev, regmap); in pcm1789_i2c_probe() 31 static int pcm1789_i2c_remove(struct i2c_client *client) in pcm1789_i2c_remove() argument 33 return pcm1789_common_exit(&client->dev); in pcm1789_i2c_remove()
|
D | sigmadsp-i2c.c | 42 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()
|
D | sgtl5000.c | 1418 static int sgtl5000_enable_regulators(struct i2c_client *client) in sgtl5000_enable_regulators() argument 1424 struct sgtl5000_priv *sgtl5000 = i2c_get_clientdata(client); in sgtl5000_enable_regulators() 1429 vddd = regulator_get_optional(&client->dev, "VDDD"); in sgtl5000_enable_regulators() 1441 ret = regulator_bulk_get(&client->dev, sgtl5000->num_supplies, in sgtl5000_enable_regulators() 1557 static void sgtl5000_fill_defaults(struct i2c_client *client) in sgtl5000_fill_defaults() argument 1559 struct sgtl5000_priv *sgtl5000 = i2c_get_clientdata(client); in sgtl5000_fill_defaults() 1567 dev_err(&client->dev, in sgtl5000_fill_defaults() 1573 static int sgtl5000_i2c_probe(struct i2c_client *client, in sgtl5000_i2c_probe() argument 1578 struct device_node *np = client->dev.of_node; in sgtl5000_i2c_probe() 1582 sgtl5000 = devm_kzalloc(&client->dev, sizeof(*sgtl5000), GFP_KERNEL); in sgtl5000_i2c_probe() [all …]
|
D | adau1781-i2c.c | 17 static int adau1781_i2c_probe(struct i2c_client *client, in adau1781_i2c_probe() argument 26 return adau1781_probe(&client->dev, in adau1781_i2c_probe() 27 devm_regmap_init_i2c(client, &config), in adau1781_i2c_probe() 31 static int adau1781_i2c_remove(struct i2c_client *client) in adau1781_i2c_remove() argument 33 adau17x1_remove(&client->dev); in adau1781_i2c_remove()
|
D | adau1701.c | 115 struct i2c_client *client; member 186 struct i2c_client *client = context; in adau1701_reg_write() local 192 size = adau1701_register_size(&client->dev, reg); in adau1701_reg_write() 204 ret = i2c_master_send(client, buf, size + 2); in adau1701_reg_write() 220 struct i2c_client *client = context; in adau1701_reg_read() local 223 size = adau1701_register_size(&client->dev, reg); in adau1701_reg_read() 230 msgs[0].addr = client->addr; in adau1701_reg_read() 235 msgs[1].addr = client->addr; in adau1701_reg_read() 240 ret = i2c_transfer(client->adapter, msgs, ARRAY_SIZE(msgs)); in adau1701_reg_read() 259 struct i2c_client *client = to_i2c_client(sigmadsp->dev); in adau1701_safeload() local [all …]
|
D | adau1761-i2c.c | 17 static int adau1761_i2c_probe(struct i2c_client *client, in adau1761_i2c_probe() argument 26 return adau1761_probe(&client->dev, in adau1761_i2c_probe() 27 devm_regmap_init_i2c(client, &config), in adau1761_i2c_probe() 31 static int adau1761_i2c_remove(struct i2c_client *client) in adau1761_i2c_remove() argument 33 adau17x1_remove(&client->dev); in adau1761_i2c_remove()
|
D | max9768.c | 170 static int max9768_i2c_probe(struct i2c_client *client, in max9768_i2c_probe() argument 174 struct max9768_pdata *pdata = client->dev.platform_data; in max9768_i2c_probe() 177 max9768 = devm_kzalloc(&client->dev, sizeof(*max9768), GFP_KERNEL); in max9768_i2c_probe() 183 err = devm_gpio_request_one(&client->dev, pdata->mute_gpio, in max9768_i2c_probe() 188 err = devm_gpio_request_one(&client->dev, pdata->shdn_gpio, in max9768_i2c_probe() 198 i2c_set_clientdata(client, max9768); in max9768_i2c_probe() 200 max9768->regmap = devm_regmap_init_i2c(client, &max9768_i2c_regmap_config); in max9768_i2c_probe() 204 return devm_snd_soc_register_component(&client->dev, in max9768_i2c_probe()
|
D | tas571x.c | 79 struct i2c_client *client = context; in tas571x_reg_write() local 80 struct tas571x_private *priv = i2c_get_clientdata(client); in tas571x_reg_write() 93 ret = i2c_master_send(client, buf, size + 1); in tas571x_reg_write() 105 struct i2c_client *client = context; in tas571x_reg_read() local 106 struct tas571x_private *priv = i2c_get_clientdata(client); in tas571x_reg_read() 116 msgs[0].addr = client->addr; in tas571x_reg_read() 121 msgs[1].addr = client->addr; in tas571x_reg_read() 126 ret = i2c_transfer(client->adapter, msgs, ARRAY_SIZE(msgs)); in tas571x_reg_read() 145 static int tas571x_reg_write_multiword(struct i2c_client *client, in tas571x_reg_write_multiword() argument 161 ret = i2c_master_send(client, buf, send_size); in tas571x_reg_write_multiword() [all …]
|
D | tas2552.c | 682 static int tas2552_probe(struct i2c_client *client, in tas2552_probe() argument 690 dev = &client->dev; in tas2552_probe() 691 data = devm_kzalloc(&client->dev, sizeof(*data), GFP_KERNEL); in tas2552_probe() 700 data->tas2552_client = client; in tas2552_probe() 701 data->regmap = devm_regmap_init_i2c(client, &tas2552_regmap_config); in tas2552_probe() 704 dev_err(&client->dev, "Failed to allocate register map: %d\n", in tas2552_probe() 719 pm_runtime_set_active(&client->dev); in tas2552_probe() 720 pm_runtime_set_autosuspend_delay(&client->dev, 1000); in tas2552_probe() 721 pm_runtime_use_autosuspend(&client->dev); in tas2552_probe() 722 pm_runtime_enable(&client->dev); in tas2552_probe() [all …]
|
D | cs4349.c | 280 static int cs4349_i2c_probe(struct i2c_client *client, in cs4349_i2c_probe() argument 286 cs4349 = devm_kzalloc(&client->dev, sizeof(*cs4349), GFP_KERNEL); in cs4349_i2c_probe() 290 cs4349->regmap = devm_regmap_init_i2c(client, &cs4349_regmap); in cs4349_i2c_probe() 293 dev_err(&client->dev, "regmap_init() failed: %d\n", ret); in cs4349_i2c_probe() 298 cs4349->reset_gpio = devm_gpiod_get_optional(&client->dev, in cs4349_i2c_probe() 305 i2c_set_clientdata(client, cs4349); in cs4349_i2c_probe() 307 return devm_snd_soc_register_component(&client->dev, in cs4349_i2c_probe() 312 static int cs4349_i2c_remove(struct i2c_client *client) in cs4349_i2c_remove() argument 314 struct cs4349_private *cs4349 = i2c_get_clientdata(client); in cs4349_i2c_remove()
|
D | pcm179x-i2c.c | 17 static int pcm179x_i2c_probe(struct i2c_client *client, in pcm179x_i2c_probe() argument 23 regmap = devm_regmap_init_i2c(client, &pcm179x_regmap_config); in pcm179x_i2c_probe() 26 dev_err(&client->dev, "Failed to allocate regmap: %d\n", ret); in pcm179x_i2c_probe() 30 return pcm179x_common_init(&client->dev, regmap); in pcm179x_i2c_probe()
|
/sound/core/seq/oss/ |
D | seq_oss_midi.c | 32 int client; /* sequencer client number */ member 65 snd_seq_oss_midi_lookup_ports(int client) in snd_seq_oss_midi_lookup_ports() argument 77 clinfo->client = -1; in snd_seq_oss_midi_lookup_ports() 78 while (snd_seq_kernel_client_ctl(client, SNDRV_SEQ_IOCTL_QUERY_NEXT_CLIENT, clinfo) == 0) { in snd_seq_oss_midi_lookup_ports() 79 if (clinfo->client == client) in snd_seq_oss_midi_lookup_ports() 81 pinfo->addr.client = clinfo->client; in snd_seq_oss_midi_lookup_ports() 83 while (snd_seq_kernel_client_ctl(client, SNDRV_SEQ_IOCTL_QUERY_NEXT_PORT, pinfo) == 0) in snd_seq_oss_midi_lookup_ports() 112 find_slot(int client, int port) in find_slot() argument 121 if (mdev && mdev->client == client && mdev->port == port) { in find_slot() 156 if ((mdev = find_slot(pinfo->addr.client, pinfo->addr.port)) != NULL) { in snd_seq_oss_midi_check_new_port() [all …]
|
/sound/drivers/opl4/ |
D | opl4_seq.c | 74 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()
|