diff options
author | Takashi Iwai <tiwai@suse.de> | 2009-03-02 08:25:17 -0500 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2009-03-02 11:28:54 -0500 |
commit | 43b62713f67d9f0655f3a61f5bd14d6297ddd3ce (patch) | |
tree | fd05fb617e177808c164371f4c596f6d7a087026 /sound/pci/hda/hda_local.h | |
parent | 6e655bf21697d2594243098a14e0699e8d4a4059 (diff) |
ALSA: hda - Add hint string helper functions
Added snd_hda_get_hint() and snd_hda_get_bool_hint() helper functions
to retrieve a hint value.
Internally, the hint is stored in a pair of two strings, key and val.
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'sound/pci/hda/hda_local.h')
-rw-r--r-- | sound/pci/hda/hda_local.h | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/sound/pci/hda/hda_local.h b/sound/pci/hda/hda_local.h index 03ee9dd0491..27428c718fd 100644 --- a/sound/pci/hda/hda_local.h +++ b/sound/pci/hda/hda_local.h | |||
@@ -433,6 +433,23 @@ static inline int snd_hda_hwdep_add_sysfs(struct hda_codec *codec) | |||
433 | } | 433 | } |
434 | #endif | 434 | #endif |
435 | 435 | ||
436 | #ifdef CONFIG_SND_HDA_RECONFIG | ||
437 | const char *snd_hda_get_hint(struct hda_codec *codec, const char *key); | ||
438 | int snd_hda_get_bool_hint(struct hda_codec *codec, const char *key); | ||
439 | #else | ||
440 | static inline | ||
441 | const char *snd_hda_get_hint(struct hda_codec *codec, const char *key) | ||
442 | { | ||
443 | return NULL; | ||
444 | } | ||
445 | |||
446 | static inline | ||
447 | int snd_hda_get_bool_hint(struct hda_codec *codec, const char *key) | ||
448 | { | ||
449 | return -ENOENT; | ||
450 | } | ||
451 | #endif | ||
452 | |||
436 | /* | 453 | /* |
437 | * power-management | 454 | * power-management |
438 | */ | 455 | */ |