summaryrefslogtreecommitdiff
path: root/sound/pci/hda/hda_generic.h
diff options
context:
space:
mode:
authorTakashi Iwai <tiwai@suse.de>2013-01-18 13:17:30 +0400
committerTakashi Iwai <tiwai@suse.de>2013-01-18 13:17:30 +0400
commitc970042c129fbda2017e537d284e61ef4966a140 (patch)
tree96a08caca3c70a4e9ef81cbab5639ecd58396740 /sound/pci/hda/hda_generic.h
parent9dba205b486152e3d31ab04f3b60efeef035cec5 (diff)
downloadlinux-c970042c129fbda2017e537d284e61ef4966a140.tar.xz
ALSA: hda - Unify input label creations in generic parser
There are a few places creating the labels and indices of kctls for each input pin in the current generic parser code. This is redundant and makes harder to maintain. Let's create the labels and indices at once and keep them in hda_gen_spec. Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'sound/pci/hda/hda_generic.h')
-rw-r--r--sound/pci/hda/hda_generic.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/sound/pci/hda/hda_generic.h b/sound/pci/hda/hda_generic.h
index 7b14e9ce7486..f6b88cd4584f 100644
--- a/sound/pci/hda/hda_generic.h
+++ b/sound/pci/hda/hda_generic.h
@@ -105,6 +105,8 @@ struct hda_gen_spec {
hda_nid_t adc_nids[AUTO_CFG_MAX_OUTS];
hda_nid_t dig_in_nid; /* digital-in NID; optional */
hda_nid_t mixer_nid; /* analog-mixer NID */
+ const char *input_labels[AUTO_CFG_MAX_OUTS];
+ int input_label_idxs[AUTO_CFG_MAX_OUTS];
/* capture setup for dynamic dual-adc switch */
hda_nid_t cur_adc;