summaryrefslogtreecommitdiff
path: root/sound/pci/hda/hda_local.h
diff options
context:
space:
mode:
authorTakashi Iwai <tiwai@suse.de>2012-11-30 18:34:38 +0100
committerTakashi Iwai <tiwai@suse.de>2012-11-30 18:34:38 +0100
commitdda415d41882449f841f88d829dd65b6ee1c374c (patch)
treedde9f520ddf3466235bf60d610f54383a4d76f9c /sound/pci/hda/hda_local.h
parent475c3d21e8e1fe7cbec76b0f3e8d9f4dea66acd8 (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.h9
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,
#define get_amp_min_mute(kc) (((kc)->private_value >> 29) & 0x1)
/*
+ * enum control helper
+ */
+int snd_hda_enum_helper_info(struct snd_kcontrol *kcontrol,
+ struct snd_ctl_elem_info *uinfo,
+ int num_entries, const char * const *texts);
+#define snd_hda_enum_bool_helper_info(kcontrol, uinfo) \
+ snd_hda_enum_helper_info(kcontrol, uinfo, 0, NULL)
+
+/*
* CEA Short Audio Descriptor data
*/
struct cea_sad {