Home
last modified time | relevance | path

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

/linux/sound/soc/sof/
H A Dipc4-topology.c214 struct snd_sof_widget *swidget; in sof_ipc4_find_swidget_by_ids() local
216 list_for_each_entry(swidget, &sdev->widget_list, list) { in sof_ipc4_find_swidget_by_ids()
217 struct sof_ipc4_fw_module *fw_module = swidget->module_info; in sof_ipc4_find_swidget_by_ids()
220 if (!swidget->use_count) in sof_ipc4_find_swidget_by_ids()
224 swidget->instance_id == instance_id) in sof_ipc4_find_swidget_by_ids()
225 return swidget; in sof_ipc4_find_swidget_by_ids()
249 struct snd_sof_widget *swidget, in sof_ipc4_dbg_module_audio_format() argument
266 swidget->widget->name); in sof_ipc4_dbg_module_audio_format()
270 out_fmt_index, swidget->widget->name); in sof_ipc4_dbg_module_audio_format()
279 swidget in sof_ipc4_dbg_module_audio_format()
343 sof_ipc4_get_input_pin_audio_fmt(struct snd_sof_widget * swidget,int pin_index) sof_ipc4_get_input_pin_audio_fmt() argument
391 sof_ipc4_get_audio_fmt(struct snd_soc_component * scomp,struct snd_sof_widget * swidget,struct sof_ipc4_available_audio_format * available_fmt,struct sof_ipc4_base_module_cfg * module_base_cfg) sof_ipc4_get_audio_fmt() argument
492 sof_ipc4_widget_free_comp_pipeline(struct snd_sof_widget * swidget) sof_ipc4_widget_free_comp_pipeline() argument
497 sof_ipc4_widget_set_module_info(struct snd_sof_widget * swidget) sof_ipc4_widget_set_module_info() argument
512 sof_ipc4_widget_setup_msg(struct snd_sof_widget * swidget,struct sof_ipc4_msg * msg) sof_ipc4_widget_setup_msg() argument
547 sof_ipc4_widget_update_kcontrol_module_id(struct snd_sof_widget * swidget) sof_ipc4_widget_update_kcontrol_module_id() argument
566 sof_ipc4_update_card_components_string(struct snd_sof_widget * swidget,struct snd_sof_pcm * spcm,int dir) sof_ipc4_update_card_components_string() argument
611 sof_ipc4_widget_setup_pcm(struct snd_sof_widget * swidget) sof_ipc4_widget_setup_pcm() argument
723 sof_ipc4_widget_free_comp_pcm(struct snd_sof_widget * swidget) sof_ipc4_widget_free_comp_pcm() argument
738 sof_ipc4_widget_setup_comp_dai(struct snd_sof_widget * swidget) sof_ipc4_widget_setup_comp_dai() argument
889 sof_ipc4_widget_free_comp_dai(struct snd_sof_widget * swidget) sof_ipc4_widget_free_comp_dai() argument
916 sof_ipc4_widget_setup_comp_pipeline(struct snd_sof_widget * swidget) sof_ipc4_widget_setup_comp_pipeline() argument
972 sof_ipc4_widget_setup_comp_pga(struct snd_sof_widget * swidget) sof_ipc4_widget_setup_comp_pga() argument
1017 sof_ipc4_widget_free_comp_pga(struct snd_sof_widget * swidget) sof_ipc4_widget_free_comp_pga() argument
1029 sof_ipc4_widget_setup_comp_mixer(struct snd_sof_widget * swidget) sof_ipc4_widget_setup_comp_mixer() argument
1060 sof_ipc4_widget_setup_comp_src(struct snd_sof_widget * swidget) sof_ipc4_widget_setup_comp_src() argument
1103 sof_ipc4_widget_setup_comp_asrc(struct snd_sof_widget * swidget) sof_ipc4_widget_setup_comp_asrc() argument
1147 sof_ipc4_widget_free_comp_src(struct snd_sof_widget * swidget) sof_ipc4_widget_free_comp_src() argument
1159 sof_ipc4_widget_free_comp_asrc(struct snd_sof_widget * swidget) sof_ipc4_widget_free_comp_asrc() argument
1171 sof_ipc4_widget_free_comp_mixer(struct snd_sof_widget * swidget) sof_ipc4_widget_free_comp_mixer() argument
1186 sof_ipc4_widget_setup_comp_process(struct snd_sof_widget * swidget) sof_ipc4_widget_setup_comp_process() argument
1262 sof_ipc4_widget_free_comp_process(struct snd_sof_widget * swidget) sof_ipc4_widget_free_comp_process() argument
1277 sof_ipc4_update_resource_usage(struct snd_sof_dev * sdev,struct snd_sof_widget * swidget,struct sof_ipc4_base_module_cfg * base_config) sof_ipc4_update_resource_usage() argument
1326 sof_ipc4_widget_assign_instance_id(struct snd_sof_dev * sdev,struct snd_sof_widget * swidget) sof_ipc4_widget_assign_instance_id() argument
1464 sof_ipc4_init_output_audio_fmt(struct snd_sof_dev * sdev,struct snd_sof_widget * swidget,struct sof_ipc4_base_module_cfg * base_config,struct sof_ipc4_available_audio_format * available_fmt,u32 out_ref_rate,u32 out_ref_channels,u32 out_ref_valid_bits,u32 out_ref_type) sof_ipc4_init_output_audio_fmt() argument
1563 sof_ipc4_init_input_audio_fmt(struct snd_sof_dev * sdev,struct snd_sof_widget * swidget,struct sof_ipc4_base_module_cfg * base_config,struct snd_pcm_hw_params * params,struct sof_ipc4_available_audio_format * available_fmt) sof_ipc4_init_input_audio_fmt() argument
1634 sof_ipc4_unprepare_copier_module(struct snd_sof_widget * swidget) sof_ipc4_unprepare_copier_module() argument
1996 sof_ipc4_prepare_copier_module(struct snd_sof_widget * swidget,struct snd_pcm_hw_params * fe_params,struct snd_sof_platform_stream_params * platform_params,struct snd_pcm_hw_params * pipeline_params,int dir) sof_ipc4_prepare_copier_module() argument
2453 sof_ipc4_prepare_gain_module(struct snd_sof_widget * swidget,struct snd_pcm_hw_params * fe_params,struct snd_sof_platform_stream_params * platform_params,struct snd_pcm_hw_params * pipeline_params,int dir) sof_ipc4_prepare_gain_module() argument
2498 sof_ipc4_prepare_mixer_module(struct snd_sof_widget * swidget,struct snd_pcm_hw_params * fe_params,struct snd_sof_platform_stream_params * platform_params,struct snd_pcm_hw_params * pipeline_params,int dir) sof_ipc4_prepare_mixer_module() argument
2543 sof_ipc4_prepare_src_module(struct snd_sof_widget * swidget,struct snd_pcm_hw_params * fe_params,struct snd_sof_platform_stream_params * platform_params,struct snd_pcm_hw_params * pipeline_params,int dir) sof_ipc4_prepare_src_module() argument
2617 sof_ipc4_process_set_pin_formats(struct snd_sof_widget * swidget,int pin_type) sof_ipc4_process_set_pin_formats() argument
2680 sof_ipc4_process_add_base_cfg_extn(struct snd_sof_widget * swidget) sof_ipc4_process_add_base_cfg_extn() argument
2694 sof_ipc4_prepare_process_module(struct snd_sof_widget * swidget,struct snd_pcm_hw_params * fe_params,struct snd_sof_platform_stream_params * platform_params,struct snd_pcm_hw_params * pipeline_params,int dir) sof_ipc4_prepare_process_module() argument
2936 sof_ipc4_widget_setup(struct snd_sof_dev * sdev,struct snd_sof_widget * swidget) sof_ipc4_widget_setup() argument
3112 sof_ipc4_widget_free(struct snd_sof_dev * sdev,struct snd_sof_widget * swidget) sof_ipc4_widget_free() argument
3220 sof_ipc4_put_queue_id(struct snd_sof_widget * swidget,int queue_id,bool pin_type) sof_ipc4_put_queue_id() argument
3450 sof_ipc4_dai_config(struct snd_sof_dev * sdev,struct snd_sof_widget * swidget,unsigned int flags,struct snd_sof_dai_config_data * data) sof_ipc4_dai_config() argument
[all...]
H A Dipc3-topology.c362 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 Dtopology.c1210 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 = kcalloc(num_tuples, sizeof(*swidget->tuples), GFP_KERNEL); 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()
1253 /* parse and save UUID in swidget */ 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 in sof_widget_parse_tokens()
1321 sof_free_pin_binding(struct snd_sof_widget * swidget,bool pin_type) sof_free_pin_binding() argument
1344 sof_parse_pin_binding(struct snd_sof_widget * swidget,struct snd_soc_tplg_private * priv,bool pin_type) sof_parse_pin_binding() argument
1418 struct snd_sof_widget *swidget; sof_widget_ready() local
1637 struct snd_sof_widget *swidget; sof_widget_unload() local
2167 sof_set_widget_pipeline(struct snd_sof_dev * sdev,struct snd_sof_pipeline * spipe,struct snd_sof_widget * swidget) sof_set_widget_pipeline() argument
2217 struct snd_sof_widget *swidget; sof_complete() local
2398 struct snd_sof_widget *swidget; sof_dspless_widget_ready() local
2444 struct snd_sof_widget *swidget = dobj->private; sof_dspless_widget_unload() local
[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.h165 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 …]
H A Dipc4-pcm.c828 struct snd_sof_widget *swidget = w->dobj.private; in sof_ipc4_pcm_dai_link_fixup() local
829 struct snd_sof_widget *pipe_widget = swidget->spipe->pipe_widget; in sof_ipc4_pcm_dai_link_fixup()
979 struct snd_sof_widget *swidget = widget->dobj.private; in sof_ipc4_build_time_info() local
981 if (!swidget) in sof_ipc4_build_time_info()
984 if (WIDGET_IS_AIF(swidget->widget->id)) { in sof_ipc4_build_time_info()
985 host_copier = swidget->private; in sof_ipc4_build_time_info()
986 } else if (WIDGET_IS_DAI(swidget->widget->id)) { in sof_ipc4_build_time_info()
987 dai = swidget->private; in sof_ipc4_build_time_info()
/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)
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 Dhda-dai-ops.c131 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 …]