From mboxrd@z Thu Jan 1 00:00:00 1970 From: Takashi Iwai Subject: Re: [PATCH] ALSA: hda - initialize audio InfoFrame to be all zero Date: Tue, 11 Mar 2014 09:16:05 +0100 Message-ID: References: Mime-Version: 1.0 (generated by SEMI 1.14.6 - "Maruoka") Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from mx2.suse.de (cantor2.suse.de [195.135.220.15]) by alsa0.perex.cz (Postfix) with ESMTP id 8DFA32617B8 for ; Tue, 11 Mar 2014 09:16:05 +0100 (CET) In-Reply-To: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: alsa-devel-bounces@alsa-project.org Sender: alsa-devel-bounces@alsa-project.org To: mengdong.lin@intel.com Cc: alsa-devel@alsa-project.org List-Id: alsa-devel@alsa-project.org At Tue, 11 Mar 2014 17:12:52 -0400, mengdong.lin@intel.com wrote: > > From: Mengdong Lin > > 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 Thanks, applied. Takashi > > 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 >