topology: some whitespace fixups

Signed-off-by: Jaroslav Kysela <perex@perex.cz>
This commit is contained in:
Jaroslav Kysela 2021-05-25 18:28:00 +02:00
parent 1832f6f254
commit 8037d4812e
5 changed files with 10 additions and 10 deletions

View file

@ -40,7 +40,7 @@ bool tplg_class_is_attribute_check(const char *attr, snd_config_t *class_cfg, ch
snd_config_for_each(i, next, cfg) { snd_config_for_each(i, next, cfg) {
const char *id, *s; const char *id, *s;
n = snd_config_iterator_entry(i); n = snd_config_iterator_entry(i);
if (snd_config_get_id(n, &id) < 0) if (snd_config_get_id(n, &id) < 0)
continue; continue;
@ -211,7 +211,7 @@ snd_config_type_t tplg_class_get_attribute_type(struct tplg_pre_processor *tplg_
/* get token_ref for attribute with name attr_name in the class */ /* 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, 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; snd_config_t *attributes, *attr, *token_ref;
const char *token; const char *token;
@ -238,7 +238,7 @@ const char *tplg_class_get_attribute_token_ref(struct tplg_pre_processor *tplg_p
/* convert a valid attribute string value to the corresponding tuple value */ /* convert a valid attribute string value to the corresponding tuple value */
long tplg_class_attribute_valid_tuple_value(struct tplg_pre_processor *tplg_pp, 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; snd_config_t *attributes, *cfg, *valid, *tuples, *n;

View file

@ -64,7 +64,7 @@ static int tplg_update_pcm_object(struct tplg_pre_processor *tplg_pp,
item_name = tplg_object_get_name(tplg_pp, obj); item_name = tplg_object_get_name(tplg_pp, obj);
if (!item_name) if (!item_name)
return -EINVAL; return -EINVAL;
/* get direction */ /* get direction */
ret = snd_config_search(obj, "direction", &cfg); ret = snd_config_search(obj, "direction", &cfg);
if (ret < 0) { if (ret < 0) {

View file

@ -229,7 +229,7 @@ static int tplg_pp_get_widget_name(struct tplg_pre_processor *tplg_pp,
goto err; goto err;
} }
} }
temp = tplg_snprintf("%s.%s", widget_name, arg); temp = tplg_snprintf("%s.%s", widget_name, arg);
if (!temp) { if (!temp) {
ret = -ENOMEM; ret = -ENOMEM;

View file

@ -32,7 +32,7 @@
/* Parse VendorToken object, create the "SectionVendorToken" and save it */ /* Parse VendorToken object, create the "SectionVendorToken" and save it */
int tplg_build_vendor_token_object(struct tplg_pre_processor *tplg_pp, 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_iterator_t i, next;
snd_config_t *vtop, *n, *obj; snd_config_t *vtop, *n, *obj;
@ -358,7 +358,7 @@ static bool tplg_object_is_attribute_min_max_valid(snd_config_t *attr, snd_confi
return false; return false;
} }
} }
return true; return true;
} }
default: default:
@ -720,7 +720,7 @@ static int tplg_object_add_attributes(snd_config_t *dst, snd_config_t *template,
snd_config_for_each(i, next, template) { snd_config_for_each(i, next, template) {
snd_config_t *attr, *new; snd_config_t *attr, *new;
const char *id; const char *id;
n = snd_config_iterator_entry(i); n = snd_config_iterator_entry(i);
if (snd_config_get_id(n, &id) < 0) if (snd_config_get_id(n, &id) < 0)
continue; continue;

View file

@ -99,9 +99,9 @@ const char *tplg_class_get_unique_attribute_name(struct tplg_pre_processor *tplg
snd_config_type_t tplg_class_get_attribute_type(struct tplg_pre_processor *tplg_pp, snd_config_type_t tplg_class_get_attribute_type(struct tplg_pre_processor *tplg_pp,
snd_config_t *attr); snd_config_t *attr);
const char *tplg_class_get_attribute_token_ref(struct tplg_pre_processor *tplg_pp, 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, 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 */ /* config helpers */
snd_config_t *tplg_find_config(snd_config_t *config, const char *name); snd_config_t *tplg_find_config(snd_config_t *config, const char *name);