/linux-6.12.1/sound/soc/sof/ |
D | sof-audio.c | 45 struct snd_sof_widget *swidget) in sof_widget_free_unlocked() argument 48 struct snd_sof_pipeline *spipe = swidget->spipe; in sof_widget_free_unlocked() 52 if (!swidget->private) in sof_widget_free_unlocked() 55 trace_sof_widget_free(swidget); in sof_widget_free_unlocked() 58 if (--swidget->use_count) in sof_widget_free_unlocked() 62 sof_reset_route_setup_status(sdev, swidget); in sof_widget_free_unlocked() 65 if (WIDGET_IS_DAI(swidget->id)) { in sof_widget_free_unlocked() 72 err = tplg_ops->dai_config(sdev, swidget, flags, &data); in sof_widget_free_unlocked() 75 swidget->widget->name); in sof_widget_free_unlocked() 81 ret = tplg_ops->widget_free(sdev, swidget); in sof_widget_free_unlocked() [all …]
|
D | ipc4-topology.c | 173 struct snd_sof_widget *swidget; in sof_ipc4_find_swidget_by_ids() local 175 list_for_each_entry(swidget, &sdev->widget_list, list) { in sof_ipc4_find_swidget_by_ids() 176 struct sof_ipc4_fw_module *fw_module = swidget->module_info; in sof_ipc4_find_swidget_by_ids() 179 if (!swidget->use_count) in sof_ipc4_find_swidget_by_ids() 183 swidget->instance_id == instance_id) in sof_ipc4_find_swidget_by_ids() 184 return swidget; in sof_ipc4_find_swidget_by_ids() 207 sof_ipc4_get_input_pin_audio_fmt(struct snd_sof_widget *swidget, int pin_index) in sof_ipc4_get_input_pin_audio_fmt() argument 213 if (swidget->id != snd_soc_dapm_effect) { in sof_ipc4_get_input_pin_audio_fmt() 214 struct sof_ipc4_base_module_cfg *base = swidget->private; in sof_ipc4_get_input_pin_audio_fmt() 220 process = swidget->private; in sof_ipc4_get_input_pin_audio_fmt() [all …]
|
D | ipc3-topology.c | 359 static void *sof_comp_alloc(struct snd_sof_widget *swidget, size_t *ipc_size, in sof_comp_alloc() argument 364 size_t ext_size = sizeof(swidget->uuid); in sof_comp_alloc() 367 if (!guid_is_null(&swidget->uuid)) in sof_comp_alloc() 377 comp->id = swidget->comp_id; in sof_comp_alloc() 379 comp->core = swidget->core; in sof_comp_alloc() 384 memcpy((u8 *)comp + *ipc_size, &swidget->uuid, ext_size); in sof_comp_alloc() 400 static int sof_ipc3_widget_setup_comp_host(struct snd_sof_widget *swidget) in sof_ipc3_widget_setup_comp_host() argument 402 struct snd_soc_component *scomp = swidget->scomp; in sof_ipc3_widget_setup_comp_host() 407 host = sof_comp_alloc(swidget, &ipc_size, swidget->pipeline_id); in sof_ipc3_widget_setup_comp_host() 410 swidget->private = host; in sof_ipc3_widget_setup_comp_host() [all …]
|
D | topology.c | 1188 static int sof_widget_parse_tokens(struct snd_soc_component *scomp, struct snd_sof_widget *swidget, in sof_widget_parse_tokens() argument 1205 dev_err(scomp->dev, "No token list for widget %s\n", swidget->widget->name); in sof_widget_parse_tokens() 1214 swidget->tuples = kcalloc(num_tuples, sizeof(*swidget->tuples), GFP_KERNEL); in sof_widget_parse_tokens() 1215 if (!swidget->tuples) in sof_widget_parse_tokens() 1224 object_token_list[i], swidget->widget->name); in sof_widget_parse_tokens() 1232 ret = sof_parse_tokens(scomp, swidget, in sof_widget_parse_tokens() 1239 swidget->widget->name); in sof_widget_parse_tokens() 1246 swidget->tuples, swidget->num_tuples); in sof_widget_parse_tokens() 1249 swidget->widget->name); in sof_widget_parse_tokens() 1256 swidget->tuples, swidget->num_tuples); in sof_widget_parse_tokens() [all …]
|
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->private; in sof_ipc4_set_volume_data() [all …]
|
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 …]
|
D | sof-audio.h | 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); 228 int (*pipeline_complete)(struct snd_sof_dev *sdev, struct snd_sof_widget *swidget); 229 int (*widget_setup)(struct snd_sof_dev *sdev, struct snd_sof_widget *swidget); 230 int (*widget_free)(struct snd_sof_dev *sdev, struct snd_sof_widget *swidget); 231 int (*dai_config)(struct snd_sof_dev *sdev, struct snd_sof_widget *swidget, [all …]
|
D | ipc4-pcm.c | 676 struct snd_sof_widget *swidget = w->dobj.private; in sof_ipc4_pcm_dai_link_fixup() local 677 struct snd_sof_widget *pipe_widget = swidget->spipe->pipe_widget; in sof_ipc4_pcm_dai_link_fixup() 824 struct snd_sof_widget *swidget = widget->dobj.private; in sof_ipc4_build_time_info() local 826 if (!swidget) in sof_ipc4_build_time_info() 829 if (WIDGET_IS_AIF(swidget->widget->id)) { in sof_ipc4_build_time_info() 830 host_copier = swidget->private; in sof_ipc4_build_time_info() 831 } else if (WIDGET_IS_DAI(swidget->widget->id)) { in sof_ipc4_build_time_info() 832 dai = swidget->private; in sof_ipc4_build_time_info()
|
/linux-6.12.1/include/trace/events/ |
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-6.12.1/sound/soc/sof/intel/ |
D | hda-dai-ops.c | 131 struct snd_sof_widget *swidget; in hda_ipc4_get_hext_stream() local 135 swidget = w->dobj.private; in hda_ipc4_get_hext_stream() 136 pipe_widget = swidget->spipe->pipe_widget; in hda_ipc4_get_hext_stream() 302 struct snd_sof_widget *swidget; in hda_ipc4_pre_trigger() local 307 swidget = w->dobj.private; in hda_ipc4_pre_trigger() 308 pipe_widget = swidget->spipe->pipe_widget; in hda_ipc4_pre_trigger() 379 struct snd_sof_widget *swidget; in hda_ipc4_post_trigger() local 384 swidget = w->dobj.private; in hda_ipc4_post_trigger() 385 pipe_widget = swidget->spipe->pipe_widget; in hda_ipc4_post_trigger() 408 swidget->spipe->started_count++; in hda_ipc4_post_trigger() [all …]
|
D | hda-dai.c | 35 struct snd_sof_widget *swidget = w->dobj.private; in hda_dai_config() local 40 if (!swidget) in hda_dai_config() 47 ret = tplg_ops->dai_config(sdev, swidget, flags, data); in hda_dai_config() 73 struct snd_sof_widget *swidget = w->dobj.private; in hda_dai_get_ops() local 79 if (!swidget) { in hda_dai_get_ops() 85 return hda_select_dai_widget_ops(sdev, swidget); in hda_dai_get_ops() 87 sdai = swidget->private; in hda_dai_get_ops() 92 hda_select_dai_widget_ops(sdev, swidget); in hda_dai_get_ops() 341 struct snd_sof_widget *swidget = w->dobj.private; in widget_to_copier() local 342 struct snd_sof_dai *sdai = swidget->private; in widget_to_copier() [all …]
|
D | hda.h | 1028 hda_select_dai_widget_ops(struct snd_sof_dev *sdev, struct snd_sof_widget *swidget); 1036 struct snd_sof_widget *swidget = w->dobj.private; in widget_to_sdev() local 1037 struct snd_soc_component *component = swidget->scomp; in widget_to_sdev()
|
D | hda.c | 80 struct snd_sof_widget *swidget = w->dobj.private; in sdw_params_free() local 81 struct snd_sof_dai *dai = swidget->private; in sdw_params_free()
|