diff options
author | Mengdong Lin <mengdong.lin@intel.com> | 2014-03-11 17:12:52 -0400 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2014-03-11 09:15:39 +0100 |
commit | caaf5ef9493f72390905f1e97b310b8906d32dac (patch) | |
tree | 23fe554fbd87090e1776a9f2d30a3ed33ae36569 /sound/pci/hda | |
parent | f1eaaf8fce87adfcaaa9e44459cb25c2dbe3dcd3 (diff) |
ALSA: hda - initialize audio InfoFrame to be all zero
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>
Diffstat (limited to 'sound/pci/hda')
-rw-r--r-- | sound/pci/hda/patch_hdmi.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/sound/pci/hda/patch_hdmi.c b/sound/pci/hda/patch_hdmi.c index 994713cb07b..4751eab69ab 100644 --- a/sound/pci/hda/patch_hdmi.c +++ b/sound/pci/hda/patch_hdmi.c @@ -1064,6 +1064,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; |