Home
last modified time | relevance | path

Searched refs:tplg (Results 1 – 16 of 16) sorted by relevance

/linux/sound/soc/
H A Dsoc-topology.c80 static int soc_tplg_check_elem_count(struct soc_tplg *tplg, size_t elem_size, in soc_tplg_check_elem_count() argument
83 const u8 *end = tplg->pos + elem_size * count; in soc_tplg_check_elem_count()
85 if (end > tplg->fw->data + tplg->fw->size) { in soc_tplg_check_elem_count()
86 dev_err(tplg->dev, "ASoC: %s overflow end of data\n", in soc_tplg_check_elem_count()
94 dev_err(tplg->dev, in soc_tplg_check_elem_count()
103 static inline bool soc_tplg_is_eof(struct soc_tplg *tplg) in soc_tplg_is_eof() argument
105 const u8 *end = tplg->hdr_pos; in soc_tplg_is_eof()
107 if (end >= tplg->fw->data + tplg->fw->size) in soc_tplg_is_eof()
112 static inline unsigned long soc_tplg_get_hdr_offset(struct soc_tplg *tplg) in soc_tplg_get_hdr_offset() argument
114 return (unsigned long)(tplg->hdr_pos - tplg->fw->data); in soc_tplg_get_hdr_offset()
[all …]
/linux/sound/soc/intel/avs/
H A Dtopology.c340 if (idx >= acomp->tplg->num_##member) \
343 *val = &acomp->tplg->member[idx]; \
533 struct avs_tplg *tplg = acomp->tplg; in avs_tplg_parse_libraries() local
535 return parse_dictionary(comp, tuples, block_size, (void **)&tplg->libs, in avs_tplg_parse_libraries()
536 &tplg->num_libs, sizeof(*tplg->libs), in avs_tplg_parse_libraries()
598 struct avs_tplg *tplg = acomp->tplg; in avs_tplg_parse_audio_formats() local
600 return parse_dictionary(comp, tuples, block_size, (void **)&tplg->fmts, in avs_tplg_parse_audio_formats()
601 &tplg->num_fmts, sizeof(*tplg->fmts), in avs_tplg_parse_audio_formats()
639 struct avs_tplg *tplg = acomp->tplg; in avs_tplg_parse_modcfgs_base() local
641 return parse_dictionary(comp, tuples, block_size, (void **)&tplg->modcfgs_base, in avs_tplg_parse_modcfgs_base()
[all …]
H A Dloader.c635 struct avs_tplg *tplg = acomp->tplg; in avs_load_firmware() local
637 ret = avs_dsp_load_libraries(adev, tplg->libs, tplg->num_libs); in avs_load_firmware()
H A Dpath.c25 if (!strcmp(acomp->tplg->name, name)) in avs_path_find_tplg()
26 return acomp->tplg; in avs_path_find_tplg()
56 struct avs_tplg *tplg; in avs_path_find_path() local
59 tplg = avs_path_find_tplg(adev, name); in avs_path_find_path()
60 if (!tplg) in avs_path_find_path()
63 list_for_each_entry(pos, &tplg->path_tmpl_list, node) { in avs_path_find_path()
849 struct avs_tplg_init_config *config = &acomp->tplg->init_configs[ids[i]]; in avs_path_module_send_init_configs()
1262 for (int i = 0; i < acomp->tplg->num_condpath_tmpls; i++) { in avs_condpaths_walk()
1267 template = &acomp->tplg->condpath_tmpls[i]; in avs_condpaths_walk()
H A Dpcm.c960 struct avs_tplg *tplg = acomp->tplg; in avs_component_load_libraries() local
964 if (!tplg->num_libs) in avs_component_load_libraries()
976 ret = avs_dsp_load_libraries(adev, tplg->libs, tplg->num_libs); in avs_component_load_libraries()
1004 acomp->tplg = avs_tplg_new(component); in avs_component_probe()
1005 if (!acomp->tplg) in avs_component_probe()
H A Davs.h340 struct avs_tplg *tplg; member
/linux/sound/soc/sof/
H A Dcontrol.c25 const struct sof_ipc_tplg_ops *tplg_ops = sof_ipc_get_ops(sdev, tplg); in snd_sof_volume_get()
40 const struct sof_ipc_tplg_ops *tplg_ops = sof_ipc_get_ops(sdev, tplg); in snd_sof_volume_put()
77 const struct sof_ipc_tplg_ops *tplg_ops = sof_ipc_get_ops(sdev, tplg); in snd_sof_switch_get()
92 const struct sof_ipc_tplg_ops *tplg_ops = sof_ipc_get_ops(sdev, tplg); in snd_sof_switch_put()
107 const struct sof_ipc_tplg_ops *tplg_ops = sof_ipc_get_ops(sdev, tplg); in snd_sof_enum_get()
122 const struct sof_ipc_tplg_ops *tplg_ops = sof_ipc_get_ops(sdev, tplg); in snd_sof_enum_put()
137 const struct sof_ipc_tplg_ops *tplg_ops = sof_ipc_get_ops(sdev, tplg); in snd_sof_bytes_get()
152 const struct sof_ipc_tplg_ops *tplg_ops = sof_ipc_get_ops(sdev, tplg); in snd_sof_bytes_put()
168 const struct sof_ipc_tplg_ops *tplg_ops = sof_ipc_get_ops(sdev, tplg); in snd_sof_bytes_ext_put()
187 const struct sof_ipc_tplg_ops *tplg_ops = sof_ipc_get_ops(sdev, tplg); in snd_sof_bytes_ext_volatile_get()
[all...]
H A Dsof-audio.c47 const struct sof_ipc_tplg_ops *tplg_ops = sof_ipc_get_ops(sdev, tplg); in sof_widget_free_unlocked()
62 const struct sof_ipc_tplg_ops *tplg_ops = sof_ipc_get_ops(sdev, tplg); in sof_widget_free_unlocked()
147 const struct sof_ipc_tplg_ops *tplg_ops = sof_ipc_get_ops(sdev, tplg); in sof_widget_setup_unlocked()
261 const struct sof_ipc_tplg_ops *tplg_ops = sof_ipc_get_ops(sdev, tplg); in sof_route_setup()
438 const struct sof_ipc_tplg_ops *tplg_ops = sof_ipc_get_ops(sdev, tplg); in sof_unprepare_widgets_in_path()
485 const struct sof_ipc_tplg_ops *tplg_ops = sof_ipc_get_ops(sdev, tplg); in sof_prepare_widgets_in_path()
767 const struct sof_ipc_tplg_ops *tplg_ops = sof_ipc_get_ops(sdev, tplg); in sof_widget_list_free()
1014 const struct sof_ipc_tplg_ops *tplg_ops = sof_ipc_get_ops(sdev, tplg);
1016 /* use the tplg configured mclk if existed */
H A Dipc.c198 if (!ops->tplg || !ops->tplg->widget || !ops->tplg->control) { in snd_sof_ipc_init()
H A Dpm.c81 const struct sof_ipc_tplg_ops *tplg_ops = sof_ipc_get_ops(sdev, tplg); in sof_resume()
233 const struct sof_ipc_tplg_ops *tplg_ops = sof_ipc_get_ops(sdev, tplg); in sof_suspend()
H A Dtopology.c61 const struct sof_ipc_tplg_ops *tplg_ops = sof_ipc_get_ops(sdev, tplg); in sof_update_ipc_object()
275 const struct sof_ipc_tplg_ops *tplg_ops = sof_ipc_get_ops(sdev, tplg); in set_up_volume_table()
508 const struct sof_ipc_tplg_ops *tplg_ops = sof_ipc_get_ops(sdev, tplg); in sof_copy_tuples()
1042 const struct sof_ipc_tplg_ops *tplg_ops = sof_ipc_get_ops(sdev, tplg); in sof_control_unload()
1215 const struct sof_ipc_tplg_ops *tplg_ops = sof_ipc_get_ops(sdev, tplg); in sof_widget_parse_tokens()
1414 const struct sof_ipc_tplg_ops *tplg_ops = sof_ipc_get_ops(sdev, tplg); in sof_widget_ready()
1632 const struct sof_ipc_tplg_ops *tplg_ops = sof_ipc_get_ops(sdev, tplg); in sof_widget_unload()
1877 const struct sof_ipc_tplg_ops *tplg_ops = sof_ipc_get_ops(sdev, tplg); in sof_link_load()
2195 const struct sof_ipc_tplg_ops *tplg_ops = sof_ipc_get_ops(sdev, tplg); in sof_complete()
2283 const struct sof_ipc_tplg_ops *tplg_ops = sof_ipc_get_ops(sdev, tplg); in sof_manifest()
H A Dipc4.c698 const struct sof_ipc_tplg_ops *tplg_ops = sdev->ipc->ops->tplg; in sof_ipc4_rx_msg()
922 .tplg = &ipc4_tplg_ops,
H A Dipc3.c953 const struct sof_ipc_tplg_ops *tplg_ops = sdev->ipc->ops->tplg;
1143 .tplg = &ipc3_tplg_ops,
H A Dsof-priv.h478 * @tplg: Pointer to IPC-specific topology ops
504 const struct sof_ipc_tplg_ops *tplg; member
/linux/Documentation/sound/codecs/
H A Dcs35l56.rst137 host CPU audio DSP, together with an ALSA topology file (.tplg).
140 CPU (i.e. Intel or AMD). The .tplg file is normally part of the SOF firmware
/linux/sound/soc/sof/intel/
H A Dhda-dai.c44 tplg_ops = sof_ipc_get_ops(sdev, tplg); in hda_dai_config()