aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorakpm@linux-foundation.org <akpm@linux-foundation.org>2009-11-13 19:47:10 -0500
committerTakashi Iwai <tiwai@suse.de>2009-11-14 03:53:06 -0500
commit01a1796bc52f625edc23bf995d200e1556eec544 (patch)
tree1ec782514844fabc982211fa52ff4326431dfc11
parent7288561af9a931c59e431336b553d897ee37b67d (diff)
sound/pci/hda/patch_via.c: work around gcc-4.0.2 ICE
sound/pci/hda/patch_via.c: In function 'via_hp_bind_automute': sound/pci/hda/patch_via.c:2074: internal compiler error: in do_SUBST, at combine.c:462 Please submit a full bug report, with preprocessed source if appropriate. See <URL:http://gcc.gnu.org/bugs.html> for instructions. [added a comment by tiwai] Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Takashi Iwai <tiwai@suse.de>
-rw-r--r--sound/pci/hda/patch_via.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/sound/pci/hda/patch_via.c b/sound/pci/hda/patch_via.c
index 5ec0e39593b5..5a856009c916 100644
--- a/sound/pci/hda/patch_via.c
+++ b/sound/pci/hda/patch_via.c
@@ -2043,7 +2043,10 @@ static void via_speaker_automute(struct hda_codec *codec)
2043/* mute line-out and internal speaker if HP is plugged */ 2043/* mute line-out and internal speaker if HP is plugged */
2044static void via_hp_bind_automute(struct hda_codec *codec) 2044static void via_hp_bind_automute(struct hda_codec *codec)
2045{ 2045{
2046 unsigned int hp_present, present = 0; 2046 /* use long instead of int below just to avoid an internal compiler
2047 * error with gcc 4.0.x
2048 */
2049 unsigned long hp_present, present = 0;
2047 struct via_spec *spec = codec->spec; 2050 struct via_spec *spec = codec->spec;
2048 int i; 2051 int i;
2049 2052