Commit 24af2b1c authored by Takashi Iwai's avatar Takashi Iwai

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: default avatarTakashi Iwai <tiwai@suse.de>
parent ebb47241
...@@ -1704,11 +1704,11 @@ static void alc_apply_fixup(struct hda_codec *codec, int action) ...@@ -1704,11 +1704,11 @@ static void alc_apply_fixup(struct hda_codec *codec, int action)
codec->chip_name, fix->type); codec->chip_name, fix->type);
break; break;
} }
if (!fix[id].chained) if (!fix->chained)
break; break;
if (++depth > 10) if (++depth > 10)
break; break;
id = fix[id].chain_id; id = fix->chain_id;
} }
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment