]> git.proxmox.com Git - mirror_ubuntu-disco-kernel.git/commitdiff
ALSA: hda - Fix wrong ALC269 variant check
authorKailang Yang <kailang@realtek.com>
Tue, 23 Nov 2010 07:53:32 +0000 (08:53 +0100)
committerTakashi Iwai <tiwai@suse.de>
Tue, 23 Nov 2010 07:55:11 +0000 (08:55 +0100)
The refactoring commit d433a67831ab2c470cc53a3ff9b60f656767be15
    ALSA: hda - Optimize the check of ALC269 codec variants
introduced a wrong check for ALC269-vb type.  This patch corrects it.

Signed-off-by: Kailang Yang <kailang@realtek.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/pci/hda/patch_realtek.c

index 564e6c136dddf4d50f7012129072e527c89cc7ab..38b63fb79cbd6f4213cd2098a094e57fda1fcd4e 100644 (file)
@@ -15104,7 +15104,7 @@ static int patch_alc269(struct hda_codec *codec)
        spec->stream_digital_capture = &alc269_pcm_digital_capture;
 
        if (!spec->adc_nids) { /* wasn't filled automatically? use default */
-               if (spec->codec_variant != ALC269_TYPE_NORMAL) {
+               if (spec->codec_variant == ALC269_TYPE_NORMAL) {
                        spec->adc_nids = alc269_adc_nids;
                        spec->num_adc_nids = ARRAY_SIZE(alc269_adc_nids);
                        spec->capsrc_nids = alc269_capsrc_nids;