aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTakashi Iwai <tiwai@suse.de>2011-05-02 13:55:36 +0200
committerGreg Kroah-Hartman <gregkh@suse.de>2011-05-09 15:06:36 -0700
commitbbb267c7d49c3a9be39e7f59bae56500afee0ab3 (patch)
treef4d1bacc0dae9f0411d4708074296ace7bf0e557
parentcd529bb9b1e202f289ff9c2182f7d274e5e7160f (diff)
downloadlinux-linaro-android-bbb267c7d49c3a9be39e7f59bae56500afee0ab3.tar.gz
ALSA: hda - Fix Realtek's chained fixup checks
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>
-rw-r--r--sound/pci/hda/patch_realtek.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sound/pci/hda/patch_realtek.c b/sound/pci/hda/patch_realtek.c
index d7e251bc58f..24a3acb63f6 100644
--- a/sound/pci/hda/patch_realtek.c
+++ b/sound/pci/hda/patch_realtek.c
@@ -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;
}
}