| /linux/sound/soc/sof/ |
| H A D | ipc4-topology.c | 224 struct snd_sof_widget *swidget; in sof_ipc4_find_swidget_by_ids() local 226 list_for_each_entry(swidget, &sdev->widget_list, list) { in sof_ipc4_find_swidget_by_ids() 227 struct sof_ipc4_fw_module *fw_module = swidget->module_info; in sof_ipc4_find_swidget_by_ids() 230 if (!swidget->use_count) in sof_ipc4_find_swidget_by_ids() 234 swidget->instance_id == instance_id) in sof_ipc4_find_swidget_by_ids() 235 return swidget; in sof_ipc4_find_swidget_by_ids() 259 struct snd_sof_widget *swidget, in sof_ipc4_dbg_module_audio_format() argument 276 swidget->widget->name); in sof_ipc4_dbg_module_audio_format() 280 out_fmt_index, swidget->widget->name); in sof_ipc4_dbg_module_audio_format() 289 swidget->widget->name); in sof_ipc4_dbg_module_audio_format() [all …]
|
| H A D | ipc3-topology.c | 362 static void *sof_comp_alloc(struct snd_sof_widget *swidget, size_t *ipc_size, in sof_comp_alloc() argument 367 size_t ext_size = sizeof(swidget->uuid); in sof_comp_alloc() 370 if (!guid_is_null(&swidget->uuid)) in sof_comp_alloc() 380 comp->id = swidget->comp_id; in sof_comp_alloc() 382 comp->core = swidget->core; in sof_comp_alloc() 387 memcpy((u8 *)comp + *ipc_size, &swidget->uuid, ext_size); in sof_comp_alloc() 403 static int sof_ipc3_widget_setup_comp_host(struct snd_sof_widget *swidget) in sof_ipc3_widget_setup_comp_host() argument 405 struct snd_soc_component *scomp = swidget->scomp; in sof_ipc3_widget_setup_comp_host() 410 host = sof_comp_alloc(swidget, &ipc_size, swidget->pipeline_id); in sof_ipc3_widget_setup_comp_host() 413 swidget->private = host; in sof_ipc3_widget_setup_comp_host() [all …]
|
| H A D | topology.c | 1210 static int sof_widget_parse_tokens(struct snd_soc_component *scomp, struct snd_sof_widget *swidget, in sof_widget_parse_tokens() argument 1227 dev_err(scomp->dev, "No token list for widget %s\n", swidget->widget->name); in sof_widget_parse_tokens() 1236 swidget->tuples = kzalloc_objs(*swidget->tuples, num_tuples); in sof_widget_parse_tokens() 1237 if (!swidget->tuples) in sof_widget_parse_tokens() 1246 object_token_list[i], swidget->widget->name); in sof_widget_parse_tokens() 1254 ret = sof_parse_tokens(scomp, swidget, in sof_widget_parse_tokens() 1261 swidget->widget->name); in sof_widget_parse_tokens() 1268 swidget->tuples, swidget->num_tuples); in sof_widget_parse_tokens() 1271 swidget->widget->name); in sof_widget_parse_tokens() 1278 swidget->tuples, swidget->num_tuples); in sof_widget_parse_tokens() [all …]
|
| H A D | ipc4-control.c | 23 struct snd_sof_widget *swidget; in sof_ipc4_set_get_kcontrol_data() local 28 list_for_each_entry(swidget, &sdev->widget_list, list) { in sof_ipc4_set_get_kcontrol_data() 29 if (swidget->comp_id == scontrol->comp_id) { in sof_ipc4_set_get_kcontrol_data() 41 mutex_lock(&swidget->setup_mutex); in sof_ipc4_set_get_kcontrol_data() 43 lockdep_assert_held(&swidget->setup_mutex); in sof_ipc4_set_get_kcontrol_data() 50 if (!swidget->use_count) in sof_ipc4_set_get_kcontrol_data() 54 msg->primary |= SOF_IPC4_MOD_INSTANCE(swidget->instance_id); in sof_ipc4_set_get_kcontrol_data() 80 mutex_unlock(&swidget->setup_mutex); in sof_ipc4_set_get_kcontrol_data() 86 sof_ipc4_set_volume_data(struct snd_sof_dev *sdev, struct snd_sof_widget *swidget, in sof_ipc4_set_volume_data() argument 90 struct sof_ipc4_gain *gain = swidget in sof_ipc4_set_volume_data() 150 struct snd_sof_widget *swidget; sof_ipc4_volume_put() local 206 sof_ipc4_set_generic_control_data(struct snd_sof_dev * sdev,struct snd_sof_widget * swidget,struct snd_sof_control * scontrol,bool lock) sof_ipc4_set_generic_control_data() argument 293 struct snd_sof_widget *swidget; sof_ipc4_switch_put() local 352 struct snd_sof_widget *swidget; sof_ipc4_enum_put() local 652 sof_ipc4_volsw_setup(struct snd_sof_dev * sdev,struct snd_sof_widget * swidget,struct snd_sof_control * scontrol) sof_ipc4_volsw_setup() argument 672 struct snd_sof_widget *swidget; sof_ipc4_control_update() local 792 sof_ipc4_widget_kcontrol_setup(struct snd_sof_dev * sdev,struct snd_sof_widget * swidget) sof_ipc4_widget_kcontrol_setup() argument [all...] |
| H A D | ipc3-control.c | 22 struct snd_sof_widget *swidget; in sof_ipc3_set_get_kcontrol_data() local 27 list_for_each_entry(swidget, &sdev->widget_list, list) { in sof_ipc3_set_get_kcontrol_data() 28 if (swidget->comp_id == scontrol->comp_id) { in sof_ipc3_set_get_kcontrol_data() 41 mutex_lock(&swidget->setup_mutex); in sof_ipc3_set_get_kcontrol_data() 43 lockdep_assert_held(&swidget->setup_mutex); in sof_ipc3_set_get_kcontrol_data() 50 if (!swidget->use_count) in sof_ipc3_set_get_kcontrol_data() 122 mutex_unlock(&swidget->setup_mutex); in sof_ipc3_set_get_kcontrol_data() 555 struct snd_sof_widget *swidget; in sof_ipc3_control_update() local 571 list_for_each_entry(swidget, &sdev->widget_list, list) { in sof_ipc3_control_update() 572 if (swidget->comp_id == cdata->comp_id) { in sof_ipc3_control_update() [all …]
|
| H A D | sof-audio.h | 164 /* Optional callback to setup kcontrols associated with an swidget */ 165 int (*widget_kcontrol_setup)(struct snd_sof_dev *sdev, struct snd_sof_widget *swidget); 182 int (*ipc_setup)(struct snd_sof_widget *swidget); 183 void (*ipc_free)(struct snd_sof_widget *swidget); 186 int (*bind_event)(struct snd_soc_component *scomp, struct snd_sof_widget *swidget, 188 int (*ipc_prepare)(struct snd_sof_widget *swidget, 192 void (*ipc_unprepare)(struct snd_sof_widget *swidget); 229 int (*pipeline_complete)(struct snd_sof_dev *sdev, struct snd_sof_widget *swidget); 230 int (*widget_setup)(struct snd_sof_dev *sdev, struct snd_sof_widget *swidget); 231 int (*widget_free)(struct snd_sof_dev *sdev, struct snd_sof_widget *swidget); [all...] |
| H A D | sof-client-probes-ipc4.c | 282 struct snd_sof_widget *swidget; in ipc4_probes_point_print() local 285 swidget = sof_client_ipc4_find_swidget_by_id(cdev, SOF_IPC4_MOD_ID_GET(desc->buffer_id), in ipc4_probes_point_print() 287 if (!swidget) in ipc4_probes_point_print() 294 swidget ? swidget->widget->name : "<unknown>", in ipc4_probes_point_print()
|
| H A D | ipc4-pcm.c | 827 struct snd_sof_widget *swidget = w->dobj.private; in sof_ipc4_pcm_dai_link_fixup() local 828 struct snd_sof_widget *pipe_widget = swidget->spipe->pipe_widget; in sof_ipc4_pcm_dai_link_fixup() 977 struct snd_sof_widget *swidget = widget->dobj.private; in sof_ipc4_build_time_info() local 979 if (!swidget) in sof_ipc4_build_time_info() 982 if (WIDGET_IS_AIF(swidget->widget->id)) { in sof_ipc4_build_time_info() 983 host_copier = swidget->private; in sof_ipc4_build_time_info() 984 } else if (WIDGET_IS_DAI(swidget->widget->id)) { in sof_ipc4_build_time_info() 985 dai = swidget->private; in sof_ipc4_build_time_info()
|
| /linux/include/trace/events/ |
| H A D | sof.h | 19 TP_PROTO(struct snd_sof_widget *swidget), 20 TP_ARGS(swidget), 22 __string(name, swidget->widget->name) 27 __entry->use_count = swidget->use_count; 33 TP_PROTO(struct snd_sof_widget *swidget), 34 TP_ARGS(swidget) 38 TP_PROTO(struct snd_sof_widget *swidget), 39 TP_ARGS(swidget)
|
| /linux/sound/soc/sof/intel/ |
| H A D | hda-dai-ops.c | 130 struct snd_sof_widget *swidget; in hda_ipc4_get_hext_stream() 134 swidget = w->dobj.private; in hda_ipc4_get_hext_stream() 135 pipe_widget = swidget->spipe->pipe_widget; in hda_ipc4_get_hext_stream() 301 struct snd_sof_widget *swidget; in hda_ipc4_pre_trigger() 306 swidget = w->dobj.private; in hda_ipc4_pre_trigger() 307 pipe_widget = swidget->spipe->pipe_widget; in hda_ipc4_pre_trigger() 378 struct snd_sof_widget *swidget; in hda_ipc4_post_trigger() 383 swidget = w->dobj.private; in hda_ipc4_post_trigger() 384 pipe_widget = swidget->spipe->pipe_widget; in hda_ipc4_post_trigger() 409 swidget in hda_ipc4_post_trigger() 131 struct snd_sof_widget *swidget; hda_ipc4_get_hext_stream() local 302 struct snd_sof_widget *swidget; hda_ipc4_pre_trigger() local 379 struct snd_sof_widget *swidget; hda_ipc4_post_trigger() local 593 hda_select_dai_widget_ops(struct snd_sof_dev * sdev,struct snd_sof_widget * swidget) hda_select_dai_widget_ops() argument [all...] |
| H A D | hda.c | 87 struct snd_sof_widget *swidget = w->dobj.private; in sdw_params_free() local 88 struct snd_sof_dai *dai = swidget->private; in sdw_params_free()
|