Commit 306496761745942d8167e9193a738b559a7fb0b3

Authored by David Henningsson
Committed by Takashi Iwai
1 parent eeda276bef

ALSA: HDA: Fix mic initialization in VIA auto parser

This typo caused some microphone inputs not to be correctly
initialized on VIA codecs.

Reported-By: Mark Goldstein <goldstein.mark@gmail.com>
Cc: stable@kernel.org
Signed-off-by: David Henningsson <david.henningsson@canonical.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>

Showing 1 changed file with 1 additions and 1 deletions Side-by-side Diff

sound/pci/hda/patch_via.c
... ... @@ -567,7 +567,7 @@
567 567 hda_nid_t nid = cfg->inputs[i].pin;
568 568 if (spec->smart51_enabled && is_smart51_pins(spec, nid))
569 569 ctl = PIN_OUT;
570   - else if (i == AUTO_PIN_MIC)
  570 + else if (cfg->inputs[i].type == AUTO_PIN_MIC)
571 571 ctl = PIN_VREF50;
572 572 else
573 573 ctl = PIN_IN;