snd_config_for_each(i, next, cfg) {
const char *id, *s;
-
+
n = snd_config_iterator_entry(i);
if (snd_config_get_id(n, &id) < 0)
continue;
/* get token_ref for attribute with name attr_name in the class */
const char *tplg_class_get_attribute_token_ref(struct tplg_pre_processor *tplg_pp,
- snd_config_t *class, const char *attr_name)
+ snd_config_t *class, const char *attr_name)
{
snd_config_t *attributes, *attr, *token_ref;
const char *token;
/* convert a valid attribute string value to the corresponding tuple value */
long tplg_class_attribute_valid_tuple_value(struct tplg_pre_processor *tplg_pp,
- snd_config_t *class, snd_config_t *attr)
+ snd_config_t *class, snd_config_t *attr)
{
snd_config_t *attributes, *cfg, *valid, *tuples, *n;
item_name = tplg_object_get_name(tplg_pp, obj);
if (!item_name)
return -EINVAL;
-
+
/* get direction */
ret = snd_config_search(obj, "direction", &cfg);
if (ret < 0) {
goto err;
}
}
-
+
temp = tplg_snprintf("%s.%s", widget_name, arg);
if (!temp) {
ret = -ENOMEM;
/* Parse VendorToken object, create the "SectionVendorToken" and save it */
int tplg_build_vendor_token_object(struct tplg_pre_processor *tplg_pp,
- snd_config_t *obj_cfg, snd_config_t *parent)
+ snd_config_t *obj_cfg, snd_config_t *parent)
{
snd_config_iterator_t i, next;
snd_config_t *vtop, *n, *obj;
return false;
}
}
-
+
return true;
}
default:
snd_config_for_each(i, next, template) {
snd_config_t *attr, *new;
const char *id;
-
+
n = snd_config_iterator_entry(i);
if (snd_config_get_id(n, &id) < 0)
continue;
snd_config_type_t tplg_class_get_attribute_type(struct tplg_pre_processor *tplg_pp,
snd_config_t *attr);
const char *tplg_class_get_attribute_token_ref(struct tplg_pre_processor *tplg_pp,
- snd_config_t *class, const char *attr_name);
+ snd_config_t *class, const char *attr_name);
long tplg_class_attribute_valid_tuple_value(struct tplg_pre_processor *tplg_pp,
- snd_config_t *class, snd_config_t *attr);
+ snd_config_t *class, snd_config_t *attr);
/* config helpers */
snd_config_t *tplg_find_config(snd_config_t *config, const char *name);