diff options
author | Takashi Iwai <tiwai@suse.de> | 2012-11-30 12:34:38 -0500 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2012-11-30 12:34:38 -0500 |
commit | dda415d41882449f841f88d829dd65b6ee1c374c (patch) | |
tree | dde9f520ddf3466235bf60d610f54383a4d76f9c /sound/pci/hda/hda_local.h | |
parent | 475c3d21e8e1fe7cbec76b0f3e8d9f4dea66acd8 (diff) |
ALSA: hda - Add a helper function for simple enum kcontrols
The same type of code is being used in multiple places in various
codec drivers, so put it as a core library.
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 | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/sound/pci/hda/hda_local.h b/sound/pci/hda/hda_local.h index 8c43198b7f56..4b40a5e7a8f5 100644 --- a/sound/pci/hda/hda_local.h +++ b/sound/pci/hda/hda_local.h | |||
@@ -601,6 +601,15 @@ int snd_hda_check_amp_list_power(struct hda_codec *codec, | |||
601 | #define get_amp_min_mute(kc) (((kc)->private_value >> 29) & 0x1) | 601 | #define get_amp_min_mute(kc) (((kc)->private_value >> 29) & 0x1) |
602 | 602 | ||
603 | /* | 603 | /* |
604 | * enum control helper | ||
605 | */ | ||
606 | int snd_hda_enum_helper_info(struct snd_kcontrol *kcontrol, | ||
607 | struct snd_ctl_elem_info *uinfo, | ||
608 | int num_entries, const char * const *texts); | ||
609 | #define snd_hda_enum_bool_helper_info(kcontrol, uinfo) \ | ||
610 | snd_hda_enum_helper_info(kcontrol, uinfo, 0, NULL) | ||
611 | |||
612 | /* | ||
604 | * CEA Short Audio Descriptor data | 613 | * CEA Short Audio Descriptor data |
605 | */ | 614 | */ |
606 | struct cea_sad { | 615 | struct cea_sad { |