diff options
Diffstat (limited to 'sound/pci/hda/patch_cirrus.c')
-rw-r--r-- | sound/pci/hda/patch_cirrus.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sound/pci/hda/patch_cirrus.c b/sound/pci/hda/patch_cirrus.c index 6adfc562528..adb5ec50252 100644 --- a/sound/pci/hda/patch_cirrus.c +++ b/sound/pci/hda/patch_cirrus.c | |||
@@ -436,8 +436,8 @@ static int parse_input(struct hda_codec *codec) | |||
436 | 436 | ||
437 | /* check whether the automatic mic switch is available */ | 437 | /* check whether the automatic mic switch is available */ |
438 | if (spec->num_inputs == 2 && | 438 | if (spec->num_inputs == 2 && |
439 | cfg->inputs[0].type <= AUTO_PIN_FRONT_MIC && | 439 | cfg->inputs[0].type == AUTO_PIN_MIC && |
440 | cfg->inputs[1].type == AUTO_PIN_FRONT_MIC) { | 440 | cfg->inputs[1].type == AUTO_PIN_MIC) { |
441 | if (is_ext_mic(codec, cfg->inputs[0].pin)) { | 441 | if (is_ext_mic(codec, cfg->inputs[0].pin)) { |
442 | if (!is_ext_mic(codec, cfg->inputs[1].pin)) { | 442 | if (!is_ext_mic(codec, cfg->inputs[1].pin)) { |
443 | spec->mic_detect = 1; | 443 | spec->mic_detect = 1; |
@@ -921,7 +921,7 @@ static void init_input(struct hda_codec *codec) | |||
921 | continue; | 921 | continue; |
922 | /* set appropriate pin control and mute first */ | 922 | /* set appropriate pin control and mute first */ |
923 | ctl = PIN_IN; | 923 | ctl = PIN_IN; |
924 | if (cfg->inputs[i].type <= AUTO_PIN_FRONT_MIC) { | 924 | if (cfg->inputs[i].type == AUTO_PIN_MIC) { |
925 | unsigned int caps = snd_hda_query_pin_caps(codec, pin); | 925 | unsigned int caps = snd_hda_query_pin_caps(codec, pin); |
926 | caps >>= AC_PINCAP_VREF_SHIFT; | 926 | caps >>= AC_PINCAP_VREF_SHIFT; |
927 | if (caps & AC_PINCAP_VREF_80) | 927 | if (caps & AC_PINCAP_VREF_80) |