Lines Matching full:key1
343 static int conf_get_by_keys(snd_config_t *root, const char *key1, in conf_get_by_keys() argument
348 if (key1) { in conf_get_by_keys()
349 ret = snd_config_search(root, key1, &root); in conf_get_by_keys()
360 snd_config_t *conf_get_subtree(snd_config_t *root, const char *key1, const char *key2) in conf_get_subtree() argument
366 ret = conf_get_by_keys(root, key1, key2, &root); in conf_get_subtree()
370 ksft_exit_fail_msg("key '%s'.'%s' search error: %s\n", key1, key2, snd_strerror(ret)); in conf_get_subtree()
374 int conf_get_count(snd_config_t *root, const char *key1, const char *key2) in conf_get_count() argument
382 ret = conf_get_by_keys(root, key1, key2, &cfg); in conf_get_count()
386 ksft_exit_fail_msg("key '%s'.'%s' search error: %s\n", key1, key2, snd_strerror(ret)); in conf_get_count()
388 ksft_exit_fail_msg("key '%s'.'%s' is not a compound\n", key1, key2); in conf_get_count()
395 const char *conf_get_string(snd_config_t *root, const char *key1, const char *key2, const char *def) in conf_get_string() argument
403 ret = conf_get_by_keys(root, key1, key2, &cfg); in conf_get_string()
407 ksft_exit_fail_msg("key '%s'.'%s' search error: %s\n", key1, key2, snd_strerror(ret)); in conf_get_string()
409 ksft_exit_fail_msg("key '%s'.'%s' is not a string\n", key1, key2); in conf_get_string()
413 long conf_get_long(snd_config_t *root, const char *key1, const char *key2, long def) in conf_get_long() argument
421 ret = conf_get_by_keys(root, key1, key2, &cfg); in conf_get_long()
425 ksft_exit_fail_msg("key '%s'.'%s' search error: %s\n", key1, key2, snd_strerror(ret)); in conf_get_long()
427 ksft_exit_fail_msg("key '%s'.'%s' is not an integer\n", key1, key2); in conf_get_long()
431 int conf_get_bool(snd_config_t *root, const char *key1, const char *key2, int def) in conf_get_bool() argument
438 ret = conf_get_by_keys(root, key1, key2, &cfg); in conf_get_bool()
442 ksft_exit_fail_msg("key '%s'.'%s' search error: %s\n", key1, key2, snd_strerror(ret)); in conf_get_bool()
445 ksft_exit_fail_msg("key '%s'.'%s' is not an bool\n", key1, key2); in conf_get_bool()
449 void conf_get_string_array(snd_config_t *root, const char *key1, const char *key2, in conf_get_string_array() argument
456 ret = conf_get_by_keys(root, key1, key2, &cfg); in conf_get_string_array()
460 ksft_exit_fail_msg("key '%s'.'%s' search error: %s\n", key1, key2, snd_strerror(ret)); in conf_get_string_array()