mirror of
https://github.com/alsa-project/alsa-utils
synced 2024-11-08 14:38:22 +01:00
topology: some whitespace fixups
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
This commit is contained in:
parent
1832f6f254
commit
8037d4812e
5 changed files with 10 additions and 10 deletions
|
@ -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) {
|
||||
const char *id, *s;
|
||||
|
||||
|
||||
n = snd_config_iterator_entry(i);
|
||||
if (snd_config_get_id(n, &id) < 0)
|
||||
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 */
|
||||
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;
|
||||
|
@ -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 */
|
||||
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;
|
||||
|
|
|
@ -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);
|
||||
if (!item_name)
|
||||
return -EINVAL;
|
||||
|
||||
|
||||
/* get direction */
|
||||
ret = snd_config_search(obj, "direction", &cfg);
|
||||
if (ret < 0) {
|
||||
|
|
|
@ -229,7 +229,7 @@ static int tplg_pp_get_widget_name(struct tplg_pre_processor *tplg_pp,
|
|||
goto err;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
temp = tplg_snprintf("%s.%s", widget_name, arg);
|
||||
if (!temp) {
|
||||
ret = -ENOMEM;
|
||||
|
|
|
@ -32,7 +32,7 @@
|
|||
|
||||
/* 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;
|
||||
|
@ -358,7 +358,7 @@ static bool tplg_object_is_attribute_min_max_valid(snd_config_t *attr, snd_confi
|
|||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
return true;
|
||||
}
|
||||
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_t *attr, *new;
|
||||
const char *id;
|
||||
|
||||
|
||||
n = snd_config_iterator_entry(i);
|
||||
if (snd_config_get_id(n, &id) < 0)
|
||||
continue;
|
||||
|
|
|
@ -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_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);
|
||||
|
|
Loading…
Reference in a new issue