ALSA: hda - Fix Realtek's chained fixup checks

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>
This commit is contained in:
Takashi Iwai 2011-05-02 13:55:36 +02:00
parent ebb47241ea
commit 24af2b1cc4
1 changed files with 2 additions and 2 deletions

View 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;
}
}