From: Mengdong Lin Date: Tue, 11 Mar 2014 21:12:52 +0000 (-0400) Subject: ALSA: hda - initialize audio InfoFrame to be all zero X-Git-Tag: v3.14.14~83 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=815ba8f81857efadce6af198b07731cebf3e6b35;p=platform%2Fkernel%2Flinux-stable.git ALSA: hda - initialize audio InfoFrame to be all zero commit caaf5ef9493f72390905f1e97b310b8906d32dac upstream. This patch initialized the local audio InfoFrame variable 'ai' to be all zero, thus the data bytes will indicate "Refer to Stream Header" by default. Signed-off-by: Mengdong Lin Signed-off-by: Takashi Iwai Signed-off-by: Greg Kroah-Hartman --- diff --git a/sound/pci/hda/patch_hdmi.c b/sound/pci/hda/patch_hdmi.c index 3abfe2a..d135c90 100644 --- a/sound/pci/hda/patch_hdmi.c +++ b/sound/pci/hda/patch_hdmi.c @@ -1062,6 +1062,7 @@ static void hdmi_pin_setup_infoframe(struct hda_codec *codec, { union audio_infoframe ai; + memset(&ai, 0, sizeof(ai)); if (conn_type == 0) { /* HDMI */ struct hdmi_audio_infoframe *hdmi_ai = &ai.hdmi;