Lines Matching defs:key
25 const char *key;
26 const char *val; /* contained in the same alloc as key */
275 hint->key, hint->val);
281 static struct hda_hint *get_hint(struct hda_codec *codec, const char *key)
287 if (!strcmp(hint->key, key))
310 char *key, *val;
319 key = kstrndup_noeol(buf, 1024);
320 if (!key)
322 /* extract key and val */
323 val = strchr(key, '=');
325 kfree(key);
330 remove_trail_spaces(key);
333 hint = get_hint(codec, key);
336 kfree(hint->key);
337 hint->key = key;
347 hint->key = key;
355 kfree(key);
413 * @key: the hint key string
415 * Look for a hint key/value pair matching with the given key string
418 const char *snd_hda_get_hint(struct hda_codec *codec, const char *key)
420 struct hda_hint *hint = get_hint(codec, key);
428 * @key: the hint key string
430 * Look for a hint key/value pair matching with the given key string
432 * key is found, return a negative value.
434 int snd_hda_get_bool_hint(struct hda_codec *codec, const char *key)
440 p = snd_hda_get_hint(codec, key);
463 * @key: the hint key string
466 * Look for a hint key/value pair matching with the given key string
467 * and stores the integer value to @valp. If no matching key is found,
470 int snd_hda_get_int_hint(struct hda_codec *codec, const char *key, int *valp)
477 p = snd_hda_get_hint(codec, key);
791 kfree(hint->key); /* we don't need to free hint->val */