aboutsummaryrefslogtreecommitdiffstats
path: root/sound/pci/hda/hda_generic.h
diff options
context:
space:
mode:
authorTakashi Iwai <tiwai@suse.de>2013-01-17 15:53:29 +0100
committerTakashi Iwai <tiwai@suse.de>2013-01-17 15:53:29 +0100
commit0ffd534eb164fbc87e91fc54a217247ea0cfbabc (patch)
tree5c43c98bc039f7fcdb4a74437d5378ea6540d2d0 /sound/pci/hda/hda_generic.h
parentALSA: hda - Move vmaster TLV parsing to snd_hda_gen_parse_auto_config() (diff)
downloadlinux-dev-0ffd534eb164fbc87e91fc54a217247ea0cfbabc.tar.xz
linux-dev-0ffd534eb164fbc87e91fc54a217247ea0cfbabc.zip
ALSA: hda - Record all detected ADCs in hda_gen_spec
Since the generic parser reduces the ADC list, copy the list of the all detected ADCs and keep it. This list can be later referred by the codec driver for finer power controls. 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.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/sound/pci/hda/hda_generic.h b/sound/pci/hda/hda_generic.h
index 43a8482ed2b3..a0486b1b4da4 100644
--- a/sound/pci/hda/hda_generic.h
+++ b/sound/pci/hda/hda_generic.h
@@ -142,9 +142,11 @@ struct hda_gen_spec {
unsigned int dyn_adc_idx[HDA_MAX_NUM_INPUTS];
hda_nid_t shared_mic_vref_pin;
- /* DAC list */
+ /* DAC/ADC lists */
int num_all_dacs;
hda_nid_t all_dacs[16];
+ int num_all_adcs;
+ hda_nid_t all_adcs[AUTO_CFG_MAX_OUTS];
/* path list */
struct snd_array paths;