summaryrefslogtreecommitdiff
path: root/sound
diff options
context:
space:
mode:
authorMengdong Lin <mengdong.lin@intel.com>2014-03-11 17:12:52 -0400
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2014-07-28 08:05:56 -0700
commit815ba8f81857efadce6af198b07731cebf3e6b35 (patch)
treeaffedf148883c9da3c5fe2a4e6d568894f67b756 /sound
parent2e47bede83f5ec53627e0d3c8a1634441942b495 (diff)
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 <mengdong.lin@intel.com> Signed-off-by: Takashi Iwai <tiwai@suse.de> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'sound')
-rw-r--r--sound/pci/hda/patch_hdmi.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/sound/pci/hda/patch_hdmi.c b/sound/pci/hda/patch_hdmi.c
index 3abfe2a642ec..d135c906caff 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;