]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
ALSA: hda - Fix Realtek's chained fixup checks
authorTakashi Iwai <tiwai@suse.de>
Mon, 2 May 2011 11:55:36 +0000 (13:55 +0200)
committerGreg Kroah-Hartman <gregkh@suse.de>
Mon, 9 May 2011 22:06:36 +0000 (15:06 -0700)
commit 24af2b1cc418d6791b1d9e56bf6070cccb752db3 upstream.

The check of chained fixup list entry was done against the wrong element.
A stupid mistake during refactoring.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
sound/pci/hda/patch_realtek.c

index d7e251bc58f70071f5ccf43b52abdbf7a764d5d6..24a3acb63f6912419c9cab285411a7ba88750d93 100644 (file)
@@ -1774,11 +1774,11 @@ static void alc_apply_fixup(struct hda_codec *codec, int action)
                                   codec->chip_name, fix->type);
                        break;
                }
-               if (!fix[id].chained)
+               if (!fix->chained)
                        break;
                if (++depth > 10)
                        break;
-               id = fix[id].chain_id;
+               id = fix->chain_id;
        }
 }