summaryrefslogtreecommitdiffstats
path: root/sound/pci/hda/patch_hdmi.c
diff options
context:
space:
mode:
authorMengdong Lin2014-03-11 22:12:52 +0100
committerTakashi Iwai2014-03-11 09:15:39 +0100
commitcaaf5ef9493f72390905f1e97b310b8906d32dac (patch)
tree23fe554fbd87090e1776a9f2d30a3ed33ae36569 /sound/pci/hda/patch_hdmi.c
parentRevert "ALSA: emu10k1: Fix warning: "CCR" redefined" (diff)
downloadkernel-qcow2-linux-caaf5ef9493f72390905f1e97b310b8906d32dac.tar.gz
kernel-qcow2-linux-caaf5ef9493f72390905f1e97b310b8906d32dac.tar.xz
kernel-qcow2-linux-caaf5ef9493f72390905f1e97b310b8906d32dac.zip
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/patch_hdmi.c')
-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 994713cb07bc..4751eab69ab7 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;