Home
last modified time | relevance | path

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

/linux-6.1.9/sound/soc/sof/
Dipc4-topology.c173 struct snd_sof_widget *swidget, in sof_ipc4_get_audio_fmt() argument
183 SOF_AUDIO_FMT_NUM_TOKENS, swidget->tuples, in sof_ipc4_get_audio_fmt()
184 swidget->num_tuples, sizeof(audio_fmt_num), 1); in sof_ipc4_get_audio_fmt()
200 SOF_COMP_TOKENS, swidget->tuples, in sof_ipc4_get_audio_fmt()
201 swidget->num_tuples, sizeof(*base_config), 1); in sof_ipc4_get_audio_fmt()
210 SOF_AUDIO_FORMAT_BUFFER_SIZE_TOKENS, swidget->tuples, in sof_ipc4_get_audio_fmt()
211 swidget->num_tuples, sizeof(*base_config), in sof_ipc4_get_audio_fmt()
224 SOF_IN_AUDIO_FORMAT_TOKENS, swidget->tuples, in sof_ipc4_get_audio_fmt()
225 swidget->num_tuples, sizeof(*base_config), in sof_ipc4_get_audio_fmt()
232 dev_dbg(scomp->dev, "Get input audio formats for %s\n", swidget->widget->name); in sof_ipc4_get_audio_fmt()
[all …]
Dipc3-topology.c325 static void *sof_comp_alloc(struct snd_sof_widget *swidget, size_t *ipc_size, in sof_comp_alloc() argument
330 size_t ext_size = sizeof(swidget->uuid); in sof_comp_alloc()
333 if (!guid_is_null(&swidget->uuid)) in sof_comp_alloc()
343 comp->id = swidget->comp_id; in sof_comp_alloc()
345 comp->core = swidget->core; in sof_comp_alloc()
350 memcpy((u8 *)comp + *ipc_size, &swidget->uuid, ext_size); in sof_comp_alloc()
366 static int sof_ipc3_widget_setup_comp_host(struct snd_sof_widget *swidget) in sof_ipc3_widget_setup_comp_host() argument
368 struct snd_soc_component *scomp = swidget->scomp; in sof_ipc3_widget_setup_comp_host()
373 host = sof_comp_alloc(swidget, &ipc_size, swidget->pipeline_id); in sof_ipc3_widget_setup_comp_host()
376 swidget->private = host; in sof_ipc3_widget_setup_comp_host()
[all …]
Dsof-audio.c31 int sof_widget_free(struct snd_sof_dev *sdev, struct snd_sof_widget *swidget) in sof_widget_free() argument
37 if (!swidget->private) in sof_widget_free()
40 trace_sof_widget_free(swidget); in sof_widget_free()
43 if (--swidget->use_count) in sof_widget_free()
47 sof_reset_route_setup_status(sdev, swidget); in sof_widget_free()
51 err = tplg_ops->widget_free(sdev, swidget); in sof_widget_free()
57 ret = snd_sof_dsp_core_put(sdev, swidget->core); in sof_widget_free()
60 swidget->core, swidget->widget->name); in sof_widget_free()
69 if (swidget->dynamic_pipeline_widget && swidget->id != snd_soc_dapm_scheduler) { in sof_widget_free()
70 ret = sof_widget_free(sdev, swidget->pipe_widget); in sof_widget_free()
[all …]
Dipc4-control.c22 struct snd_sof_widget *swidget; in sof_ipc4_set_get_kcontrol_data() local
26 list_for_each_entry(swidget, &sdev->widget_list, list) { in sof_ipc4_set_get_kcontrol_data()
27 if (swidget->comp_id == scontrol->comp_id) { in sof_ipc4_set_get_kcontrol_data()
43 if (!swidget->use_count) in sof_ipc4_set_get_kcontrol_data()
47 msg->primary |= SOF_IPC4_MOD_INSTANCE(swidget->instance_id); in sof_ipc4_set_get_kcontrol_data()
53 sof_ipc4_set_volume_data(struct snd_sof_dev *sdev, struct snd_sof_widget *swidget, in sof_ipc4_set_volume_data() argument
57 struct sof_ipc4_gain *gain = swidget->private; in sof_ipc4_set_volume_data()
116 struct snd_sof_widget *swidget; in sof_ipc4_volume_put() local
136 list_for_each_entry(swidget, &sdev->widget_list, list) { in sof_ipc4_volume_put()
137 if (swidget->comp_id == scontrol->comp_id) { in sof_ipc4_volume_put()
[all …]
Dtopology.c1154 static int sof_widget_parse_tokens(struct snd_soc_component *scomp, struct snd_sof_widget *swidget, in sof_widget_parse_tokens() argument
1166 dev_err(scomp->dev, "No token list for widget %s\n", swidget->widget->name); in sof_widget_parse_tokens()
1175 swidget->tuples = kcalloc(num_tuples, sizeof(*swidget->tuples), GFP_KERNEL); in sof_widget_parse_tokens()
1176 if (!swidget->tuples) in sof_widget_parse_tokens()
1185 object_token_list[i], swidget->widget->name); in sof_widget_parse_tokens()
1193 ret = sof_parse_tokens(scomp, swidget, in sof_widget_parse_tokens()
1200 swidget->widget->name); in sof_widget_parse_tokens()
1210 swidget->tuples, swidget->num_tuples); in sof_widget_parse_tokens()
1214 swidget->widget->name); in sof_widget_parse_tokens()
1223 new_tuples = krealloc(swidget->tuples, in sof_widget_parse_tokens()
[all …]
Dipc4-pcm.c44 struct snd_sof_widget *swidget; in sof_ipc4_trigger_pipelines() local
56 swidget = widget->dobj.private; in sof_ipc4_trigger_pipelines()
58 if (!swidget) in sof_ipc4_trigger_pipelines()
68 if (!WIDGET_IS_AIF(swidget->id)) in sof_ipc4_trigger_pipelines()
76 pipeline_widget = swidget->pipe_widget; in sof_ipc4_trigger_pipelines()
84 ret = sof_ipc4_set_pipeline_state(sdev, swidget->pipeline_id, in sof_ipc4_trigger_pipelines()
88 swidget->pipeline_id); in sof_ipc4_trigger_pipelines()
99 ret = sof_ipc4_set_pipeline_state(sdev, swidget->pipeline_id, state); in sof_ipc4_trigger_pipelines()
102 state, swidget->pipeline_id); in sof_ipc4_trigger_pipelines()
Dsof-audio.h121 int (*widget_kcontrol_setup)(struct snd_sof_dev *sdev, struct snd_sof_widget *swidget);
138 int (*ipc_setup)(struct snd_sof_widget *swidget);
139 void (*ipc_free)(struct snd_sof_widget *swidget);
142 int (*bind_event)(struct snd_soc_component *scomp, struct snd_sof_widget *swidget,
144 int (*ipc_prepare)(struct snd_sof_widget *swidget,
148 void (*ipc_unprepare)(struct snd_sof_widget *swidget);
181 int (*pipeline_complete)(struct snd_sof_dev *sdev, struct snd_sof_widget *swidget);
182 int (*widget_setup)(struct snd_sof_dev *sdev, struct snd_sof_widget *swidget);
183 int (*widget_free)(struct snd_sof_dev *sdev, struct snd_sof_widget *swidget);
184 int (*dai_config)(struct snd_sof_dev *sdev, struct snd_sof_widget *swidget,
[all …]
Dipc3-control.c21 struct snd_sof_widget *swidget; in sof_ipc3_set_get_kcontrol_data() local
25 list_for_each_entry(swidget, &sdev->widget_list, list) { in sof_ipc3_set_get_kcontrol_data()
26 if (swidget->comp_id == scontrol->comp_id) { in sof_ipc3_set_get_kcontrol_data()
43 if (!swidget->use_count) in sof_ipc3_set_get_kcontrol_data()
533 struct snd_sof_widget *swidget; in sof_ipc3_control_update() local
549 list_for_each_entry(swidget, &sdev->widget_list, list) { in sof_ipc3_control_update()
550 if (swidget->comp_id == cdata->comp_id) { in sof_ipc3_control_update()
576 widget = swidget->widget; in sof_ipc3_control_update()
637 snd_ctl_notify_one(swidget->scomp->card->snd_card, SNDRV_CTL_EVENT_MASK_VALUE, kc, 0); in sof_ipc3_control_update()
641 struct snd_sof_widget *swidget) in sof_ipc3_widget_kcontrol_setup() argument
[all …]
/linux-6.1.9/include/trace/events/
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)
/linux-6.1.9/sound/soc/sof/intel/
Dhda-dai.c362 struct snd_sof_widget *swidget = w->dobj.private; in hda_dai_config_pause_push_ipc() local
363 struct snd_soc_component *component = swidget->scomp; in hda_dai_config_pause_push_ipc()
369 ret = tplg_ops->dai_config(sdev, swidget, SOF_DAI_CONFIG_FLAGS_PAUSE, NULL); in hda_dai_config_pause_push_ipc()
458 struct snd_sof_widget *swidget; in ipc4_hda_dai_trigger() local
474 swidget = w->dobj.private; in ipc4_hda_dai_trigger()
484 struct snd_sof_widget *pipe_widget = swidget->pipe_widget; in ipc4_hda_dai_trigger()
487 ret = sof_ipc4_set_pipeline_state(sdev, swidget->pipeline_id, in ipc4_hda_dai_trigger()
496 ret = sof_ipc4_set_pipeline_state(sdev, swidget->pipeline_id, in ipc4_hda_dai_trigger()
512 struct snd_sof_widget *pipe_widget = swidget->pipe_widget; in ipc4_hda_dai_trigger()
515 ret = sof_ipc4_set_pipeline_state(sdev, swidget->pipeline_id, in ipc4_hda_dai_trigger()
[all …]
Dhda.c50 struct snd_sof_widget *swidget = w->dobj.private; in hda_ctrl_dai_widget_setup() local
51 struct snd_soc_component *component = swidget->scomp; in hda_ctrl_dai_widget_setup()
54 struct snd_sof_dai *sof_dai = swidget->private; in hda_ctrl_dai_widget_setup()
69 ret = tplg_ops->dai_config(sdev, swidget, flags, data); in hda_ctrl_dai_widget_setup()
83 struct snd_sof_widget *swidget = w->dobj.private; in hda_ctrl_dai_widget_free() local
84 struct snd_soc_component *component = swidget->scomp; in hda_ctrl_dai_widget_free()
87 struct snd_sof_dai *sof_dai = swidget->private; in hda_ctrl_dai_widget_free()
102 ret = tplg_ops->dai_config(sdev, swidget, flags, data); in hda_ctrl_dai_widget_free()