summaryrefslogtreecommitdiff
path: root/sound/pci/hda
diff options
context:
space:
mode:
authorMengdong Lin <mengdong.lin@intel.com>2014-03-11 21:12:52 (GMT)
committerTakashi Iwai <tiwai@suse.de>2014-03-11 08:15:39 (GMT)
commitcaaf5ef9493f72390905f1e97b310b8906d32dac (patch)
tree23fe554fbd87090e1776a9f2d30a3ed33ae36569 /sound/pci/hda
parentf1eaaf8fce87adfcaaa9e44459cb25c2dbe3dcd3 (diff)
downloadlinux-caaf5ef9493f72390905f1e97b310b8906d32dac.tar.xz
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.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 994713c..4751eab 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;