From mboxrd@z Thu Jan 1 00:00:00 1970 From: Russell King - ARM Linux Subject: Re: [RFC 4/4] ASoC: hdac_hdmi: Setup and start infoframe Date: Fri, 9 Oct 2015 13:49:29 +0100 Message-ID: <20151009124929.GQ32532@n2100.arm.linux.org.uk> References: <1444393729-19745-1-git-send-email-vinod.koul@intel.com> <1444393729-19745-5-git-send-email-vinod.koul@intel.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from pandora.arm.linux.org.uk (pandora.arm.linux.org.uk [78.32.30.218]) by alsa0.perex.cz (Postfix) with ESMTP id 379512614D6 for ; Fri, 9 Oct 2015 14:49:45 +0200 (CEST) Content-Disposition: inline In-Reply-To: <1444393729-19745-5-git-send-email-vinod.koul@intel.com> 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: Vinod Koul Cc: alsa-devel@alsa-project.org, Lars-Peter Clausen , tiwai@suse.de, Arnaud Pouliquen , liam.r.girdwood@linux.intel.com, patches.audio@intel.com, broonie@kernel.org, Yakir Yang , "Subhransu S. Prusty" List-Id: alsa-devel@alsa-project.org On Fri, Oct 09, 2015 at 01:28:49PM +0100, Vinod Koul wrote: > From: "Subhransu S. Prusty" > > Signed-off-by: Subhransu S. Prusty > Signed-off-by: Vinod Koul > --- > sound/soc/codecs/hdac_hdmi.c | 133 +++++++++++++++++++++++++++++++++++++++++++ > 1 file changed, 133 insertions(+) > > diff --git a/sound/soc/codecs/hdac_hdmi.c b/sound/soc/codecs/hdac_hdmi.c > index 309d84122c72..2aca9ce6f423 100644 > --- a/sound/soc/codecs/hdac_hdmi.c > +++ b/sound/soc/codecs/hdac_hdmi.c > @@ -63,6 +63,39 @@ struct hdac_hdmi_priv { > struct hdac_hdmi_dai_pin_map dai_map[3]; > }; > > +struct hdmi_audio_infoframe { > + u8 type; /* 0x84 */ > + u8 ver; /* 0x01 */ > + u8 len; /* 0x0a */ > + > + u8 checksum; > + > + u8 CC02_CT47; /* CC in bits 0:2, CT in 4:7 */ > + u8 SS01_SF24; > + u8 CXT04; > + u8 CA; > + u8 LFEPBL01_LSV36_DM_INH7; > +}; Any reason not to use the infrastructure in drivers/video/hdmi.c for generating the HDMI infoframes? I know this is a fairly simple driver but I'd guess this is going to become more featureful when you move to supporting multichannel audio. -- FTTC broadband for 0.8mile line: currently at 9.6Mbps down 400kbps up according to speedtest.net.