Home
last modified time | relevance | path

Searched refs:swidget (Results 1 – 12 of 12) sorted by relevance

/openbmc/linux/sound/soc/sof/
H A Dipc4-topology.c184 sof_ipc4_get_input_pin_audio_fmt(struct snd_sof_widget *swidget, int pin_index) in sof_ipc4_get_input_pin_audio_fmt() argument
190 if (swidget->id != snd_soc_dapm_effect) { in sof_ipc4_get_input_pin_audio_fmt()
191 struct sof_ipc4_base_module_cfg *base = swidget->private; in sof_ipc4_get_input_pin_audio_fmt()
197 process = swidget->private; in sof_ipc4_get_input_pin_audio_fmt()
232 struct snd_sof_widget *swidget, in sof_ipc4_get_audio_fmt() argument
241 SOF_AUDIO_FMT_NUM_TOKENS, swidget->tuples, in sof_ipc4_get_audio_fmt()
242 swidget->num_tuples, sizeof(*available_fmt), 1); in sof_ipc4_get_audio_fmt()
258 ret = sof_update_ipc_object(scomp, module_base_cfg, SOF_COMP_TOKENS, swidget->tuples, in sof_ipc4_get_audio_fmt()
259 swidget->num_tuples, sizeof(*module_base_cfg), 1); in sof_ipc4_get_audio_fmt()
262 swidget->widget->name, ret); in sof_ipc4_get_audio_fmt()
[all …]
H A Dsof-audio.c46 struct snd_sof_widget *swidget) in sof_widget_free_unlocked() argument
49 struct snd_sof_pipeline *spipe = swidget->spipe; in sof_widget_free_unlocked()
54 if (!swidget->private) in sof_widget_free_unlocked()
57 trace_sof_widget_free(swidget); in sof_widget_free_unlocked()
60 if (--swidget->use_count) in sof_widget_free_unlocked()
63 pipe_widget = swidget->spipe->pipe_widget; in sof_widget_free_unlocked()
66 sof_reset_route_setup_status(sdev, swidget); in sof_widget_free_unlocked()
69 if (WIDGET_IS_DAI(swidget->id)) { in sof_widget_free_unlocked()
76 err = tplg_ops->dai_config(sdev, swidget, flags, &data); in sof_widget_free_unlocked()
79 swidget->widget->name); in sof_widget_free_unlocked()
[all …]
H A Dipc3-topology.c339 static void *sof_comp_alloc(struct snd_sof_widget *swidget, size_t *ipc_size, in sof_comp_alloc() argument
344 size_t ext_size = sizeof(swidget->uuid); in sof_comp_alloc()
347 if (!guid_is_null(&swidget->uuid)) in sof_comp_alloc()
357 comp->id = swidget->comp_id; in sof_comp_alloc()
359 comp->core = swidget->core; in sof_comp_alloc()
364 memcpy((u8 *)comp + *ipc_size, &swidget->uuid, ext_size); in sof_comp_alloc()
380 static int sof_ipc3_widget_setup_comp_host(struct snd_sof_widget *swidget) in sof_ipc3_widget_setup_comp_host() argument
382 struct snd_soc_component *scomp = swidget->scomp; in sof_ipc3_widget_setup_comp_host()
387 host = sof_comp_alloc(swidget, &ipc_size, swidget->pipeline_id); in sof_ipc3_widget_setup_comp_host()
390 swidget->private = host; in sof_ipc3_widget_setup_comp_host()
[all …]
H A Dtopology.c1186 static int sof_widget_parse_tokens(struct snd_soc_component *scomp, struct snd_sof_widget *swidget, in sof_widget_parse_tokens() argument
1203 dev_err(scomp->dev, "No token list for widget %s\n", swidget->widget->name); in sof_widget_parse_tokens()
1212 swidget->tuples = kcalloc(num_tuples, sizeof(*swidget->tuples), GFP_KERNEL); in sof_widget_parse_tokens()
1213 if (!swidget->tuples) in sof_widget_parse_tokens()
1222 object_token_list[i], swidget->widget->name); in sof_widget_parse_tokens()
1230 ret = sof_parse_tokens(scomp, swidget, in sof_widget_parse_tokens()
1237 swidget->widget->name); in sof_widget_parse_tokens()
1244 swidget->tuples, swidget->num_tuples); in sof_widget_parse_tokens()
1247 swidget->widget->name); in sof_widget_parse_tokens()
1254 swidget->tuples, swidget->num_tuples); in sof_widget_parse_tokens()
[all …]
H A Dipc4-control.c23 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 …]
H A Dipc3-control.c22 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 Dsof-audio.h157 int (*widget_kcontrol_setup)(struct snd_sof_dev *sdev, struct snd_sof_widget *swidget);
174 int (*ipc_setup)(struct snd_sof_widget *swidget);
175 void (*ipc_free)(struct snd_sof_widget *swidget);
178 int (*bind_event)(struct snd_soc_component *scomp, struct snd_sof_widget *swidget,
180 int (*ipc_prepare)(struct snd_sof_widget *swidget,
184 void (*ipc_unprepare)(struct snd_sof_widget *swidget);
220 int (*pipeline_complete)(struct snd_sof_dev *sdev, struct snd_sof_widget *swidget);
221 int (*widget_setup)(struct snd_sof_dev *sdev, struct snd_sof_widget *swidget);
222 int (*widget_free)(struct snd_sof_dev *sdev, struct snd_sof_widget *swidget);
223 int (*dai_config)(struct snd_sof_dev *sdev, struct snd_sof_widget *swidget,
[all …]
H A Dipc4-pcm.c554 struct snd_sof_widget *swidget = w->dobj.private; in sof_ipc4_pcm_dai_link_fixup() local
555 struct snd_sof_widget *pipe_widget = swidget->spipe->pipe_widget; in sof_ipc4_pcm_dai_link_fixup()
651 struct snd_sof_widget *swidget = widget->dobj.private; in sof_ipc4_build_time_info() local
653 if (!swidget) in sof_ipc4_build_time_info()
656 if (WIDGET_IS_AIF(swidget->widget->id)) { in sof_ipc4_build_time_info()
657 host_copier = swidget->private; in sof_ipc4_build_time_info()
658 } else if (WIDGET_IS_DAI(swidget->widget->id)) { in sof_ipc4_build_time_info()
659 dai = swidget->private; in sof_ipc4_build_time_info()
/openbmc/linux/include/trace/events/
H A Dsof.h19 TP_PROTO(struct snd_sof_widget *swidget),
20 TP_ARGS(swidget),
22 __string(name, swidget->widget->name)
26 __assign_str(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)
/openbmc/linux/sound/soc/sof/intel/
H A Dhda-dai-ops.c130 struct snd_sof_widget *swidget; in hda_ipc4_get_hext_stream() local
134 swidget = w->dobj.private; in hda_ipc4_get_hext_stream()
135 pipe_widget = swidget->spipe->pipe_widget; in hda_ipc4_get_hext_stream()
313 struct snd_sof_widget *swidget; in hda_ipc4_pre_trigger() local
318 swidget = w->dobj.private; in hda_ipc4_pre_trigger()
319 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 …]
H A Dhda-dai.c34 struct snd_sof_widget *swidget = w->dobj.private; in widget_to_sdev() local
35 struct snd_soc_component *component = swidget->scomp; in widget_to_sdev()
43 struct snd_sof_widget *swidget = w->dobj.private; in hda_dai_config() local
48 if (!swidget) in hda_dai_config()
55 ret = tplg_ops->dai_config(sdev, swidget, flags, data); in hda_dai_config()
80 struct snd_sof_widget *swidget = w->dobj.private; in hda_dai_get_ops() local
93 sdai = swidget->private; in hda_dai_get_ops()
98 hda_select_dai_widget_ops(sdev, swidget); in hda_dai_get_ops()
336 struct snd_sof_widget *swidget = w->dobj.private; in widget_to_copier() local
337 struct snd_sof_dai *sdai = swidget->private; in widget_to_copier()
[all …]
H A Dhda.h985 hda_select_dai_widget_ops(struct snd_sof_dev *sdev, struct snd_sof_widget *swidget);