From 8037d4812e6636f9ff0b8f835d6ff5a01e61578c Mon Sep 17 00:00:00 2001 From: Jaroslav Kysela Date: Tue, 25 May 2021 18:28:00 +0200 Subject: [PATCH] topology: some whitespace fixups Signed-off-by: Jaroslav Kysela --- topology/pre-process-class.c | 6 +++--- topology/pre-process-dai.c | 2 +- topology/pre-process-dapm.c | 2 +- topology/pre-process-object.c | 6 +++--- topology/pre-processor.h | 4 ++-- 5 files changed, 10 insertions(+), 10 deletions(-) diff --git a/topology/pre-process-class.c b/topology/pre-process-class.c index f4f3b01..a328693 100644 --- a/topology/pre-process-class.c +++ b/topology/pre-process-class.c @@ -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; diff --git a/topology/pre-process-dai.c b/topology/pre-process-dai.c index 1158afd..72aeefa 100644 --- a/topology/pre-process-dai.c +++ b/topology/pre-process-dai.c @@ -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) { diff --git a/topology/pre-process-dapm.c b/topology/pre-process-dapm.c index d2b3b7a..450ca71 100644 --- a/topology/pre-process-dapm.c +++ b/topology/pre-process-dapm.c @@ -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; diff --git a/topology/pre-process-object.c b/topology/pre-process-object.c index fbf4b6a..09aa375 100644 --- a/topology/pre-process-object.c +++ b/topology/pre-process-object.c @@ -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; diff --git a/topology/pre-processor.h b/topology/pre-processor.h index 0c54a83..3900372 100644 --- a/topology/pre-processor.h +++ b/topology/pre-processor.h @@ -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);