aboutsummaryrefslogtreecommitdiffstats
path: root/sound/pci/hda/hda_generic.h
diff options
context:
space:
mode:
authorTakashi Iwai <tiwai@suse.de>2013-02-19 11:12:42 -0500
committerTakashi Iwai <tiwai@suse.de>2013-03-07 12:29:52 -0500
commit967303dabc22335e83c6ee4a9e0684a7c05da976 (patch)
treef94d11ae35522d65fb437812ca6190a31775bcfd /sound/pci/hda/hda_generic.h
parent2dad9402192250d4061332b6a9be71ebf8493c49 (diff)
ALSA: hda - Add the generic Headphone Mic feature
This patch improves the generic parser code to allow to set up the headphone jack as a mic input. User can enable this feature by giving hp_mic hint string. The former shared hp/mic feature for the single built-in mic is still retained. This detection can be disabled now via hp_mic_detect hint string, too. 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.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/sound/pci/hda/hda_generic.h b/sound/pci/hda/hda_generic.h
index 009b57be96d3..7ee5b57946c9 100644
--- a/sound/pci/hda/hda_generic.h
+++ b/sound/pci/hda/hda_generic.h
@@ -145,7 +145,10 @@ struct hda_gen_spec {
145 hda_nid_t private_dac_nids[AUTO_CFG_MAX_OUTS]; 145 hda_nid_t private_dac_nids[AUTO_CFG_MAX_OUTS];
146 hda_nid_t imux_pins[HDA_MAX_NUM_INPUTS]; 146 hda_nid_t imux_pins[HDA_MAX_NUM_INPUTS];
147 unsigned int dyn_adc_idx[HDA_MAX_NUM_INPUTS]; 147 unsigned int dyn_adc_idx[HDA_MAX_NUM_INPUTS];
148 /* shared hp/mic */
148 hda_nid_t shared_mic_vref_pin; 149 hda_nid_t shared_mic_vref_pin;
150 hda_nid_t hp_mic_pin;
151 int hp_mic_mux_idx;
149 152
150 /* DAC/ADC lists */ 153 /* DAC/ADC lists */
151 int num_all_dacs; 154 int num_all_dacs;
@@ -200,7 +203,8 @@ struct hda_gen_spec {
200 203
201 /* other parse behavior flags */ 204 /* other parse behavior flags */
202 unsigned int need_dac_fix:1; /* need to limit DACs for multi channels */ 205 unsigned int need_dac_fix:1; /* need to limit DACs for multi channels */
203 unsigned int shared_mic_hp:1; /* HP/Mic-in sharing */ 206 unsigned int hp_mic:1; /* Allow HP as a mic-in */
207 unsigned int suppress_hp_mic_detect:1; /* Don't detect HP/mic */
204 unsigned int no_primary_hp:1; /* Don't prefer HP pins to speaker pins */ 208 unsigned int no_primary_hp:1; /* Don't prefer HP pins to speaker pins */
205 unsigned int multi_cap_vol:1; /* allow multiple capture xxx volumes */ 209 unsigned int multi_cap_vol:1; /* allow multiple capture xxx volumes */
206 unsigned int inv_dmic_split:1; /* inverted dmic w/a for conexant */ 210 unsigned int inv_dmic_split:1; /* inverted dmic w/a for conexant */