aboutsummaryrefslogtreecommitdiffstats
path: root/sound/pci/hda/patch_realtek.c
diff options
context:
space:
mode:
authorTakashi Iwai <tiwai@suse.de>2010-09-09 08:50:17 -0400
committerTakashi Iwai <tiwai@suse.de>2010-09-09 10:46:01 -0400
commit86e2959a10828dd2614e037fb2502bc833adca52 (patch)
tree4d5d2a60d23958d49ac8aebcb985b71d27305b01 /sound/pci/hda/patch_realtek.c
parentb5786e85cb2ffd0b07e86dec38a442bd20765ad8 (diff)
ALSA: hda - Remove AUTO_PIN_FRONT_{MIC|LINE}
We can assign multiple pins to a single role now, let's reduce the redundant FRONT_MIC and FRONT_LINE. Also, autocfg->input_pins[] is no longer used, so this is removed as well. Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'sound/pci/hda/patch_realtek.c')
-rw-r--r--sound/pci/hda/patch_realtek.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/sound/pci/hda/patch_realtek.c b/sound/pci/hda/patch_realtek.c
index 0a7d9d5ea40e..8ae30ccf537a 100644
--- a/sound/pci/hda/patch_realtek.c
+++ b/sound/pci/hda/patch_realtek.c
@@ -846,7 +846,7 @@ static void alc_set_input_pin(struct hda_codec *codec, hda_nid_t nid,
846{ 846{
847 unsigned int val = PIN_IN; 847 unsigned int val = PIN_IN;
848 848
849 if (auto_pin_type <= AUTO_PIN_FRONT_MIC) { 849 if (auto_pin_type == AUTO_PIN_MIC) {
850 unsigned int pincap; 850 unsigned int pincap;
851 unsigned int oldval; 851 unsigned int oldval;
852 oldval = snd_hda_codec_read(codec, nid, 0, 852 oldval = snd_hda_codec_read(codec, nid, 0,
@@ -1298,7 +1298,7 @@ static void alc_init_auto_mic(struct hda_codec *codec)
1298 1298
1299 /* there must be only two mic inputs exclusively */ 1299 /* there must be only two mic inputs exclusively */
1300 for (i = 0; i < cfg->num_inputs; i++) 1300 for (i = 0; i < cfg->num_inputs; i++)
1301 if (cfg->inputs[i].type >= AUTO_PIN_LINE) 1301 if (cfg->inputs[i].type >= AUTO_PIN_LINE_IN)
1302 return; 1302 return;
1303 1303
1304 fixed = ext = 0; 1304 fixed = ext = 0;
@@ -10622,7 +10622,7 @@ static int alc_auto_add_mic_boost(struct hda_codec *codec)
10622 hda_nid_t nid; 10622 hda_nid_t nid;
10623 10623
10624 for (i = 0; i < cfg->num_inputs; i++) { 10624 for (i = 0; i < cfg->num_inputs; i++) {
10625 if (cfg->inputs[i].type > AUTO_PIN_FRONT_MIC) 10625 if (cfg->inputs[i].type > AUTO_PIN_MIC)
10626 break; 10626 break;
10627 nid = cfg->inputs[i].pin; 10627 nid = cfg->inputs[i].pin;
10628 if (get_wcaps(codec, nid) & AC_WCAP_IN_AMP) { 10628 if (get_wcaps(codec, nid) & AC_WCAP_IN_AMP) {
@@ -19270,7 +19270,7 @@ static void alc680_base_setup(struct hda_codec *codec)
19270 spec->autocfg.inputs[0].pin = 0x18; 19270 spec->autocfg.inputs[0].pin = 0x18;
19271 spec->autocfg.inputs[0].type = AUTO_PIN_MIC; 19271 spec->autocfg.inputs[0].type = AUTO_PIN_MIC;
19272 spec->autocfg.inputs[1].pin = 0x19; 19272 spec->autocfg.inputs[1].pin = 0x19;
19273 spec->autocfg.inputs[1].type = AUTO_PIN_LINE; 19273 spec->autocfg.inputs[1].type = AUTO_PIN_LINE_IN;
19274} 19274}
19275 19275
19276static void alc680_unsol_event(struct hda_codec *codec, 19276static void alc680_unsol_event(struct hda_codec *codec,