All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] ALSA: hda - initialize audio InfoFrame to be all zero
@ 2014-03-11 21:12 mengdong.lin
  2014-03-11  8:16 ` Takashi Iwai
  2014-07-22  6:52 ` David Henningsson
  0 siblings, 2 replies; 6+ messages in thread
From: mengdong.lin @ 2014-03-11 21:12 UTC (permalink / raw)
  To: alsa-devel, tiwai; +Cc: Mengdong Lin

From: Mengdong Lin <mengdong.lin@intel.com>

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>

diff --git a/sound/pci/hda/patch_hdmi.c b/sound/pci/hda/patch_hdmi.c
index 5ef9503..3ab7063 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;
 
-- 
1.8.1.2

^ permalink raw reply related	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2014-07-23 10:19 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-03-11 21:12 [PATCH] ALSA: hda - initialize audio InfoFrame to be all zero mengdong.lin
2014-03-11  8:16 ` Takashi Iwai
2014-07-22  6:52 ` David Henningsson
2014-07-22  7:01   ` [alsa-devel] " Takashi Iwai
2014-07-23  0:08     ` Greg KH
2014-07-23 10:19       ` Takashi Iwai

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.