• Home
  • Raw
  • Download

Lines Matching refs:enum_ctl

1040 int tplg_add_enum(snd_tplg_t *tplg, struct snd_tplg_enum_template *enum_ctl,  in tplg_add_enum()  argument
1048 tplg_dbg(" Control Enum: %s", enum_ctl->hdr.name); in tplg_add_enum()
1050 if (enum_ctl->hdr.type != SND_SOC_TPLG_TYPE_ENUM) { in tplg_add_enum()
1051 SNDERR("invalid enum type %d", enum_ctl->hdr.type); in tplg_add_enum()
1055 elem = tplg_elem_new_common(tplg, NULL, enum_ctl->hdr.name, in tplg_add_enum()
1062 ret = init_ctl_hdr(tplg, elem, &ec->hdr, &enum_ctl->hdr); in tplg_add_enum()
1068 num_items = enum_ctl->items < SND_SOC_TPLG_NUM_TEXTS ? in tplg_add_enum()
1069 enum_ctl->items : SND_SOC_TPLG_NUM_TEXTS; in tplg_add_enum()
1071 ec->mask = enum_ctl->mask; in tplg_add_enum()
1072 ec->count = enum_ctl->items; in tplg_add_enum()
1078 num_channels = enum_ctl->map ? enum_ctl->map->num_channels : 0; in tplg_add_enum()
1082 struct snd_tplg_channel_elem *channel = &enum_ctl->map->channel[i]; in tplg_add_enum()
1090 if (enum_ctl->texts != NULL) { in tplg_add_enum()
1092 enum_ctl->hdr.name, SND_TPLG_TYPE_TEXT); in tplg_add_enum()
1096 if (!enum_ctl->texts[i]) in tplg_add_enum()
1098 snd_strlcpy(ec->texts[i], enum_ctl->texts[i], in tplg_add_enum()
1100 snd_strlcpy(texts->texts->items[i], enum_ctl->texts[i], in tplg_add_enum()
1103 tplg_ref_add(elem, SND_TPLG_TYPE_TEXT, enum_ctl->hdr.name); in tplg_add_enum()
1106 if (enum_ctl->values != NULL) { in tplg_add_enum()
1108 if (enum_ctl->values[i] == NULL) in tplg_add_enum()
1112 enum_ctl->values[i], in tplg_add_enum()
1118 priv = enum_ctl->priv; in tplg_add_enum()
1203 return tplg_add_enum(tplg, t->enum_ctl, NULL); in tplg_add_enum_object()
1423 t.enum_ctl = &et; in tplg_decode_control_enum()