Lines Matching defs:value

270 /* check is attribute value belongs in the set of valid values */
271 static bool tplg_is_attribute_valid_value(snd_config_t *valid_values, const char *value)
286 if (!strcmp(value, s))
296 /* check is attribute value belongs in the set of valid values after expanding the valid values */
298 snd_config_t *valid_values, int value)
337 if (value == v)
345 /* check if attribute value passes the min/max value constraints */
380 SNDERR("attribute '%s' value: %ld is less than min value: %d\n",
386 SNDERR("attribute '%s' value: %ld is greater than max value: %d\n",
407 SNDERR("attribute '%s' value: %ld is less than min value: %d\n",
413 SNDERR("attribute '%s' value: %ld is greater than max value: %d\n",
428 /* check for min/max and valid value constraints */
502 /* get object's name attribute value */
1160 /* return 1 if attribute not found in search_config, 0 on success and negative value on error */
1179 /* copy object value */
1186 SNDERR("error copying attribute '%s' value from %s\n", id, search_id);
1195 SNDERR("error prepending attribute '%s' value to %s\n", id, search_id);
1201 SNDERR("error adding attribute '%s' value to %s\n", id, search_id);
1212 * 2. Default value set in the object's class definition
1213 * 3. Inherited value from the parent object
1261 /* check if attribute value is set in the object */
1267 /* search for attributes value in class */
1281 /* search for attribute value in parent */
1404 SNDERR("Invalid value for constructor argument\n");
1409 /* find and replace with value set in object */
1417 /* concat arg value to object name. arg types must be either integer or string */
1453 /* alloc and concat arg value to the name */
1470 /* set the attribute value by type */
1471 static int tplg_set_attribute_value(snd_config_t *attr, const char *value)
1481 v = strtol(value, NULL, 10);
1490 v = strtoll(value, NULL, 10);
1497 err = snd_config_set_string(attr, value);
1510 * Find the unique attribute in the class definition and set its value and type.
1534 /* override value if unique attribute is set in the object instance */
1630 /* the extracted value may contain a nested $-expression */
1841 /* set unique attribute value */
1844 SNDERR("error setting unique attribute value for '%s.%s'\n", class_id, id);
1892 /* validate attribute value */