/third_party/alsa-lib/src/topology/ |
H A D | parser.c | 110 int tplg_parse_compound(snd_tplg_t *tplg, snd_config_t *cfg, in tplg_parse_compound() argument 137 err = fcn(tplg, n, private); in tplg_parse_compound() 145 static int tplg_parse_config(snd_tplg_t *tplg, snd_config_t *cfg) in tplg_parse_config() argument 147 int (*parser)(snd_tplg_t *tplg, snd_config_t *cfg, void *priv); in tplg_parse_config() 185 err = tplg_parse_compound(tplg, n, parser, NULL); in tplg_parse_config() 192 static int tplg_load_config(snd_tplg_t *tplg, snd_input_t *in) in tplg_load_config() argument 208 ret = tplg_parse_config(tplg, top); in tplg_load_config() 218 static int tplg_build_integ(snd_tplg_t *tplg) in tplg_build_integ() argument 222 err = tplg_build_data(tplg); in tplg_build_integ() 226 err = tplg_build_manifest_data(tplg); in tplg_build_integ() 261 snd_tplg_load(snd_tplg_t *tplg, const char *buf, size_t size) snd_tplg_load() argument 277 tplg_build(snd_tplg_t *tplg) tplg_build() argument 295 snd_tplg_build_file(snd_tplg_t *tplg, const char *infile, const char *outfile) snd_tplg_build_file() argument 324 snd_tplg_add_object(snd_tplg_t *tplg, snd_tplg_obj_template_t *t) snd_tplg_add_object() argument 351 snd_tplg_build(snd_tplg_t *tplg, const char *outfile) snd_tplg_build() argument 379 snd_tplg_build_bin(snd_tplg_t *tplg, void **bin, size_t *size) snd_tplg_build_bin() argument 395 snd_tplg_set_manifest_data(snd_tplg_t *tplg, const void *data, int len) snd_tplg_set_manifest_data() argument 414 snd_tplg_set_version(snd_tplg_t *tplg, unsigned int version) snd_tplg_set_version() argument 421 snd_tplg_verbose(snd_tplg_t *tplg, int verbose) snd_tplg_verbose() argument 436 snd_tplg_t *tplg; snd_tplg_create() local 479 snd_tplg_free(snd_tplg_t *tplg) snd_tplg_free() argument [all...] |
H A D | builder.c | 23 static ssize_t twrite(snd_tplg_t *tplg, void *data, size_t data_size) in twrite() argument 25 if (tplg->bin_pos + data_size > tplg->bin_size) in twrite() 27 memcpy(tplg->bin + tplg->bin_pos, data, data_size); in twrite() 28 tplg->bin_pos += data_size; in twrite() 33 static ssize_t write_block_header(snd_tplg_t *tplg, unsigned int type, in write_block_header() argument 52 if (tplg->bin_pos != tplg->next_hdr_pos) { in write_block_header() 55 tplg in write_block_header() 72 write_elem_block(snd_tplg_t *tplg, struct list_head *base, size_t size, int tplg_type, const char *obj_name) write_elem_block() argument 148 calc_manifest_size(snd_tplg_t *tplg) calc_manifest_size() argument 204 write_manifest_data(snd_tplg_t *tplg) write_manifest_data() argument 229 tplg_write_data(snd_tplg_t *tplg) tplg_write_data() argument [all...] |
H A D | tplg_local.h | 36 /** The name of the environment variable containing the tplg directory */ 225 int (*parse)(snd_tplg_t *tplg, snd_config_t *cfg, void *priv); 226 int (*save)(snd_tplg_t *tplg, struct tplg_elem *elem, 228 int (*gsave)(snd_tplg_t *tplg, int index, 230 int (*decod)(snd_tplg_t *tplg, size_t pos, 257 #define tplg_log(tplg, type, pos, fmt, args...) do { \ 258 if ((tplg)->verbose) \ 259 tplg_log_((tplg), (type), (pos), (fmt), ##args); \ 262 void tplg_log_(snd_tplg_t *tplg, char type, size_t pos, const char *fmt, ...); 269 int tplg_parse_compound(snd_tplg_t *tplg, snd_config_ [all...] |
H A D | dapm.c | 100 static int tplg_build_widget(snd_tplg_t *tplg, struct tplg_elem *elem) in tplg_build_widget() argument 117 err = tplg_copy_data(tplg, elem, ref); in tplg_build_widget() 130 ref->elem = tplg_elem_lookup(&tplg->mixer_list, in tplg_build_widget() 138 ref->elem = tplg_elem_lookup(&tplg->enum_list, in tplg_build_widget() 146 ref->elem = tplg_elem_lookup(&tplg->bytes_ext_list, in tplg_build_widget() 169 int tplg_build_widgets(snd_tplg_t *tplg) in tplg_build_widgets() argument 176 base = &tplg->widget_list; in tplg_build_widgets() 185 err = tplg_build_widget(tplg, elem); in tplg_build_widgets() 190 tplg->manifest.widget_elems++; in tplg_build_widgets() 196 int tplg_build_routes(snd_tplg_t *tplg) in tplg_build_routes() argument 257 tplg_elem_new_route(snd_tplg_t *tplg, int index) tplg_elem_new_route() argument 336 tplg_parse_routes(snd_tplg_t *tplg, snd_config_t *cfg, int index) tplg_parse_routes() argument 367 tplg_parse_dapm_graph(snd_tplg_t *tplg, snd_config_t *cfg, void *private ATTRIBUTE_UNUSED) tplg_parse_dapm_graph() argument 418 tplg_save_dapm_graph(snd_tplg_t *tplg, int index, struct tplg_buf *dst, const char *pfx) tplg_save_dapm_graph() argument 510 tplg_parse_dapm_widget(snd_tplg_t *tplg, snd_config_t *cfg, void *private ATTRIBUTE_UNUSED) tplg_parse_dapm_widget() argument 743 tplg_add_route(snd_tplg_t *tplg, struct snd_tplg_graph_elem *t, int index) tplg_add_route() argument 765 tplg_add_graph_object(snd_tplg_t *tplg, snd_tplg_obj_template_t *t) tplg_add_graph_object() argument 779 tplg_add_widget_object(snd_tplg_t *tplg, snd_tplg_obj_template_t *t) tplg_add_widget_object() argument 872 tplg_decode_dapm_widget(snd_tplg_t *tplg, size_t pos, struct snd_soc_tplg_hdr *hdr, void *bin, size_t size) tplg_decode_dapm_widget() argument 1040 tplg_decode_dapm_graph(snd_tplg_t *tplg, size_t pos, struct snd_soc_tplg_hdr *hdr, void *bin, size_t size) tplg_decode_dapm_graph() argument [all...] |
H A D | ctl.c | 108 static int tplg_save_access(snd_tplg_t *tplg ATTRIBUTE_UNUSED, in tplg_save_access() 161 static int tplg_build_mixer_control(snd_tplg_t *tplg, in tplg_build_mixer_control() argument 178 ref->elem = tplg_elem_lookup(&tplg->tlv_list, in tplg_build_mixer_control() 184 err = tplg_copy_data(tplg, elem, ref); in tplg_build_mixer_control() 212 static int tplg_build_enum_control(snd_tplg_t *tplg, in tplg_build_enum_control() argument 228 ref->elem = tplg_elem_lookup(&tplg->text_list, in tplg_build_enum_control() 234 err = tplg_copy_data(tplg, elem, ref); in tplg_build_enum_control() 249 static int tplg_build_bytes_control(snd_tplg_t *tplg, struct tplg_elem *elem) in tplg_build_bytes_control() argument 264 err = tplg_copy_data(tplg, elem, ref); in tplg_build_bytes_control() 273 int tplg_build_controls(snd_tplg_t *tplg) in tplg_build_controls() argument 368 tplg_parse_tlv(snd_tplg_t *tplg, snd_config_t *cfg, void *private ATTRIBUTE_UNUSED) tplg_parse_tlv() argument 432 tplg_parse_control_bytes(snd_tplg_t *tplg, snd_config_t *cfg, void *private ATTRIBUTE_UNUSED) tplg_parse_control_bytes() argument 602 tplg_parse_control_enum(snd_tplg_t *tplg, snd_config_t *cfg, void *private ATTRIBUTE_UNUSED) tplg_parse_control_enum() argument 738 tplg_parse_control_mixer(snd_tplg_t *tplg, snd_config_t *cfg, void *private ATTRIBUTE_UNUSED) tplg_parse_control_mixer() argument 901 init_ctl_hdr(snd_tplg_t *tplg, struct tplg_elem *parent, struct snd_soc_tplg_ctl_hdr *hdr, struct snd_tplg_ctl_template *t) init_ctl_hdr() argument 977 tplg_add_mixer(snd_tplg_t *tplg, struct snd_tplg_mixer_template *mixer, struct tplg_elem **e) tplg_add_mixer() argument 1041 tplg_add_enum(snd_tplg_t *tplg, struct snd_tplg_enum_template *enum_ctl, struct tplg_elem **e) tplg_add_enum() argument 1132 tplg_add_bytes(snd_tplg_t *tplg, struct snd_tplg_bytes_template *bytes_ctl, struct tplg_elem **e) tplg_add_bytes() argument 1197 tplg_add_mixer_object(snd_tplg_t *tplg, snd_tplg_obj_template_t *t) tplg_add_mixer_object() argument 1202 tplg_add_enum_object(snd_tplg_t *tplg, snd_tplg_obj_template_t *t) tplg_add_enum_object() argument 1207 tplg_add_bytes_object(snd_tplg_t *tplg, snd_tplg_obj_template_t *t) tplg_add_bytes_object() argument 1212 tplg_decode_control_mixer1(snd_tplg_t *tplg, struct list_head *heap, struct snd_tplg_mixer_template *mt, size_t pos, void *bin, size_t size) tplg_decode_control_mixer1() argument 1286 tplg_decode_control_mixer(snd_tplg_t *tplg, size_t pos, struct snd_soc_tplg_hdr *hdr, void *bin, size_t size) tplg_decode_control_mixer() argument 1335 tplg_decode_control_enum1(snd_tplg_t *tplg, struct list_head *heap, struct snd_tplg_enum_template *et, size_t pos, struct snd_soc_tplg_enum_control *ec) tplg_decode_control_enum1() argument 1389 tplg_decode_control_enum(snd_tplg_t *tplg, size_t pos, struct snd_soc_tplg_hdr *hdr, void *bin, size_t size) tplg_decode_control_enum() argument 1441 tplg_decode_control_bytes1(snd_tplg_t *tplg, struct snd_tplg_bytes_template *bt, size_t pos, void *bin, size_t size) tplg_decode_control_bytes1() argument 1481 tplg_decode_control_bytes(snd_tplg_t *tplg, size_t pos, struct snd_soc_tplg_hdr *hdr, void *bin, size_t size) tplg_decode_control_bytes() argument [all...] |
H A D | pcm.c | 77 static int tplg_build_stream_caps(snd_tplg_t *tplg, in tplg_build_stream_caps() argument 85 ref_elem = tplg_elem_lookup(&tplg->pcm_caps_list, in tplg_build_stream_caps() 96 static int build_pcm(snd_tplg_t *tplg, struct tplg_elem *elem) in build_pcm() argument 102 err = tplg_build_stream_caps(tplg, elem->id, elem->index, in build_pcm() 113 err = tplg_copy_data(tplg, elem, ref); in build_pcm() 128 int tplg_build_pcms(snd_tplg_t *tplg, unsigned int type) in tplg_build_pcms() argument 134 base = &tplg->pcm_list; in tplg_build_pcms() 143 err = build_pcm(tplg, elem); in tplg_build_pcms() 148 tplg->manifest.pcm_elems++; in tplg_build_pcms() 155 static int tplg_build_dai(snd_tplg_t *tplg, struc argument 187 tplg_build_dais(snd_tplg_t *tplg, unsigned int type) tplg_build_dais() argument 210 tplg_build_stream_cfg(snd_tplg_t *tplg, struct snd_soc_tplg_stream *stream, int num_streams, int index) tplg_build_stream_cfg() argument 230 build_link(snd_tplg_t *tplg, struct tplg_elem *elem) build_link() argument 284 tplg_build_links(snd_tplg_t *tplg, unsigned int type) tplg_build_links() argument 397 tplg_parse_stream_caps(snd_tplg_t *tplg, snd_config_t *cfg, void *private ATTRIBUTE_UNUSED) tplg_parse_stream_caps() argument 840 tplg_parse_pcm(snd_tplg_t *tplg, snd_config_t *cfg, void *private ATTRIBUTE_UNUSED) tplg_parse_pcm() argument 989 tplg_parse_dai(snd_tplg_t *tplg, snd_config_t *cfg, void *private ATTRIBUTE_UNUSED) tplg_parse_dai() argument 1153 tplg_parse_link(snd_tplg_t *tplg, snd_config_t *cfg, void *private ATTRIBUTE_UNUSED) tplg_parse_link() argument 1302 tplg_parse_cc(snd_tplg_t *tplg, snd_config_t *cfg, void *private ATTRIBUTE_UNUSED) tplg_parse_cc() argument 1430 tplg_parse_hw_config(snd_tplg_t *tplg, snd_config_t *cfg, void *private ATTRIBUTE_UNUSED) tplg_parse_hw_config() argument 1746 tplg_add_stream_caps(snd_tplg_t *tplg, struct snd_tplg_stream_caps_template *caps_tpl) tplg_add_stream_caps() argument 1778 tplg_add_pcm_object(snd_tplg_t *tplg, snd_tplg_obj_template_t *t) tplg_add_pcm_object() argument 1880 tplg_add_link_object(snd_tplg_t *tplg, snd_tplg_obj_template_t *t) tplg_add_link_object() argument 1940 tplg_add_dai_object(snd_tplg_t *tplg, snd_tplg_obj_template_t *t) tplg_add_dai_object() argument 1993 tplg_decode_pcm(snd_tplg_t *tplg, size_t pos, struct snd_soc_tplg_hdr *hdr, void *bin, size_t size) tplg_decode_pcm() argument 2142 tplg_decode_link(snd_tplg_t *tplg, size_t pos, struct snd_soc_tplg_hdr *hdr, void *bin, size_t size) tplg_decode_link() argument [all...] |
H A D | decoder.c | 20 int tplg_decode_template(snd_tplg_t *tplg, in tplg_decode_template() argument 28 tplg_log(tplg, 'D', pos, "template: asoc type %d library type %d", in tplg_decode_template() 38 tplg_log(tplg, 'D', pos, "template: index %d version %d vendor_type %d", in tplg_decode_template() 43 int snd_tplg_decode(snd_tplg_t *tplg, void *bin, size_t size, int dflags) in snd_tplg_decode() argument 54 if (tplg == NULL || bin == NULL) in snd_tplg_decode() 59 tplg_log(tplg, 'D', pos, "block: success (total %zd)", size); in snd_tplg_decode() 63 tplg_log(tplg, 'D', pos, "block: small size"); in snd_tplg_decode() 73 tplg_log(tplg, 'D', pos, "block: abi %d size %d payload size %d", in snd_tplg_decode() 100 err = snd_tplg_set_version(tplg, hdr->version); in snd_tplg_decode() 115 tplg_log(tplg, ' in snd_tplg_decode() [all...] |
H A D | data.c | 121 int tplg_save_refs(snd_tplg_t *tplg ATTRIBUTE_UNUSED, in tplg_save_refs() 529 static struct tplg_elem *get_tokens(snd_tplg_t *tplg, struct tplg_elem *elem) in get_tokens() argument 543 ref->elem = tplg_elem_lookup(&tplg->token_list, in get_tokens() 674 static int build_tuples(snd_tplg_t *tplg, struct tplg_elem *elem) in build_tuples() argument 692 ref->elem = tplg_elem_lookup(&tplg->tuple_list, in build_tuples() 700 tokens = get_tokens(tplg, tuples); in build_tuples() 1015 int tplg_save_tuple_sets(snd_tplg_t *tplg ATTRIBUTE_UNUSED, in tplg_save_tuple_sets() 1036 int tplg_parse_tokens(snd_tplg_t *tplg, snd_config_t *cfg, in tplg_parse_tokens() argument 1046 elem = tplg_elem_new_common(tplg, cfg, NULL, SND_TPLG_TYPE_TOKEN); in tplg_parse_tokens() 1086 int tplg_save_tokens(snd_tplg_t *tplg ATTRIBUTE_UNUSE 1112 tplg_parse_tuples(snd_tplg_t *tplg, snd_config_t *cfg, void *private ATTRIBUTE_UNUSED) tplg_parse_tuples() argument 1196 tplg_parse_manifest_data(snd_tplg_t *tplg, snd_config_t *cfg, void *private ATTRIBUTE_UNUSED) tplg_parse_manifest_data() argument 1292 tplg_build_manifest_data(snd_tplg_t *tplg) tplg_build_manifest_data() argument 1344 tplg_parse_data(snd_tplg_t *tplg, snd_config_t *cfg, void *private ATTRIBUTE_UNUSED) tplg_parse_data() argument 1500 tplg_copy_data(snd_tplg_t *tplg, struct tplg_elem *elem, struct tplg_ref *ref) tplg_copy_data() argument 1551 tplg_build_data(snd_tplg_t *tplg) tplg_build_data() argument 1572 tplg_decode_manifest_data(snd_tplg_t *tplg, size_t pos, struct snd_soc_tplg_hdr *hdr, void *bin, size_t size) tplg_decode_manifest_data() argument 1618 tplg_add_token(snd_tplg_t *tplg, struct tplg_elem *parent, unsigned int token, char str_ref[SNDRV_CTL_ELEM_ID_NAME_MAXLEN]) tplg_add_token() argument 1666 tplg_verify_tuple_set(snd_tplg_t *tplg, size_t pos, const void *bin, size_t size) tplg_verify_tuple_set() argument 1707 tplg_decode_tuple_set(snd_tplg_t *tplg, size_t pos, struct tplg_elem *parent, struct tplg_tuple_set **_set, const void *bin, size_t size) tplg_decode_tuple_set() argument 1801 tplg_verify_tuples(snd_tplg_t *tplg, size_t pos, const void *bin, size_t size) tplg_verify_tuples() argument 1833 tplg_decode_tuples(snd_tplg_t *tplg, size_t pos, struct tplg_elem *parent, struct tplg_vendor_tuples *tuples, const void *bin, size_t size) tplg_decode_tuples() argument 1875 tplg_add_data(snd_tplg_t *tplg, struct tplg_elem *parent, const void *bin, size_t size) tplg_add_data() argument 1968 tplg_add_data_bytes(snd_tplg_t *tplg, struct tplg_elem *parent, const char *suffix, const void *bin, size_t size) tplg_add_data_bytes() argument [all...] |
H A D | channel.c | 88 int tplg_parse_channel(snd_tplg_t *tplg, snd_config_t *cfg, in tplg_parse_channel() argument 97 if (tplg->channel_idx >= SND_SOC_TPLG_MAX_CHAN) in tplg_parse_channel() 100 channel += tplg->channel_idx; in tplg_parse_channel() 102 tplg_dbg("\tChannel %s at index %d", id, tplg->channel_idx); in tplg_parse_channel() 134 tplg->channel_idx++; in tplg_parse_channel() 138 int tplg_save_channels(snd_tplg_t *tplg ATTRIBUTE_UNUSED, in tplg_save_channels()
|
H A D | text.c | 60 int tplg_parse_text(snd_tplg_t *tplg, snd_config_t *cfg, in tplg_parse_text() argument 69 elem = tplg_elem_new_common(tplg, cfg, NULL, SND_TPLG_TYPE_TEXT); in tplg_parse_text() 93 int tplg_save_text(snd_tplg_t *tplg ATTRIBUTE_UNUSED, in tplg_save_text()
|
H A D | log.c | 21 void tplg_log_(snd_tplg_t *tplg, char type, size_t pos, const char *fmt, ...) in tplg_log_() argument 25 if (!tplg->verbose) in tplg_log_()
|
H A D | ops.c | 69 int tplg_parse_ops(snd_tplg_t *tplg ATTRIBUTE_UNUSED, snd_config_t *cfg, in tplg_parse_ops() 113 int tplg_save_ops(snd_tplg_t *tplg ATTRIBUTE_UNUSED, in tplg_save_ops() 155 int tplg_parse_ext_ops(snd_tplg_t *tplg ATTRIBUTE_UNUSED, in tplg_parse_ext_ops() 198 int tplg_save_ext_ops(snd_tplg_t *tplg ATTRIBUTE_UNUSED, in tplg_save_ext_ops()
|
H A D | elem.c | 357 struct tplg_elem *tplg_elem_type_lookup(snd_tplg_t *tplg, in tplg_elem_type_lookup() argument 376 list = (struct list_head *)((void *)tplg + tptr->loff); in tplg_elem_type_lookup() 402 struct tplg_elem* tplg_elem_new_common(snd_tplg_t *tplg, in tplg_elem_new_common() argument 462 list = (struct list_head *)((void *)tplg + tptr->loff); in tplg_elem_new_common()
|
/third_party/alsa-lib/include/ |
H A D | topology.h | 796 * \param tplg Topology parser instance 798 void snd_tplg_free(snd_tplg_t *tplg); 802 * \param tplg Topology instance. 807 int snd_tplg_load(snd_tplg_t *tplg, const char *buf, size_t size); 811 * \param tplg Topology instance. 816 int snd_tplg_build_file(snd_tplg_t *tplg, const char *infile, 821 * \param tplg Topology Instance 824 void snd_tplg_verbose(snd_tplg_t *tplg, int verbose); 1104 * \param tplg Topology instance. 1108 int snd_tplg_add_object(snd_tplg_t *tplg, snd_tplg_obj_template_ [all...] |
/third_party/alsa-utils/topology/ |
H A D | topology.c | 143 static int load_topology(snd_tplg_t **tplg, char *config, in load_topology() argument 148 *tplg = snd_tplg_create(cflags); in load_topology() 149 if (*tplg == NULL) { in load_topology() 154 err = snd_tplg_load(*tplg, config, config_size); in load_topology() 158 snd_tplg_free(*tplg); in load_topology() 221 snd_tplg_t *tplg; in dump() local 229 err = load_topology(&tplg, config, size, cflags); in dump() 233 err = snd_tplg_save(tplg, &text, sflags); in dump() 234 snd_tplg_free(tplg); in dump() 315 snd_tplg_t *tplg; in compile() local 362 snd_tplg_t *tplg; decode() local [all...] |