ALSA: hda - Fix Realtek's chained fixup checks
authorTakashi Iwai <tiwai@suse.de>
Mon, 2 May 2011 11:55:36 +0000 (13:55 +0200)
committerTakashi Iwai <tiwai@suse.de>
Mon, 2 May 2011 11:55:36 +0000 (13:55 +0200)
The check of chained fixup list entry was done against the wrong element.
A stupid mistake during refactoring.

Cc: <stable@kernel.org>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/pci/hda/patch_realtek.c

index 3091e0c8ed082a2a7c389fb915d6ca392023702b..c82979a8cd0930026e84eced9fa684d4c4ccac84 100644 (file)
@@ -1704,11 +1704,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;
        }
 }