Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933211AbcKHLLG (ORCPT ); Tue, 8 Nov 2016 06:11:06 -0500 Received: from pandora.armlinux.org.uk ([78.32.30.218]:41986 "EHLO pandora.armlinux.org.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S933085AbcKHLKm (ORCPT ); Tue, 8 Nov 2016 06:10:42 -0500 Date: Tue, 8 Nov 2016 11:10:10 +0000 From: Russell King - ARM Linux To: Kuninori Morimoto Cc: Archit Taneja , Mark Brown , David Airlie , Fabio Estevam , Daniel Vetter , Koji Matsuoka , Thierry Reding , Linux-ALSA , Liam Girdwood , Simon , linux-renesas-soc@vger.kernel.org, dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org, Jose Abreu Subject: Re: [PATCH v4] drm: bridge: add DesignWare HDMI I2S audio support Message-ID: <20161108111009.GO1041@n2100.armlinux.org.uk> References: <8737j2bxba.wl%kuninori.morimoto.gx@renesas.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <8737j2bxba.wl%kuninori.morimoto.gx@renesas.com> User-Agent: Mutt/1.5.23 (2014-03-12) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1350 Lines: 44 On Tue, Nov 08, 2016 at 01:00:57AM +0000, Kuninori Morimoto wrote: > > From: Kuninori Morimoto > > Current dw-hdmi is supporting sound via AHB bus, but it has > I2S audio feature too. This patch adds I2S audio support to dw-hdmi. > This HDMI I2S is supported by using ALSA SoC common HDMI encoder > driver. > > Tested-by: Jose Abreu > Signed-off-by: Kuninori Morimoto > --- > v3 -> v4 > > - use IS_ERR() instead of IS_ERR_OR_NULL() on probe() Thanks, that looks good now. > @@ -11,4 +11,11 @@ struct dw_hdmi_audio_data { > u8 *eld; > }; > > +struct dw_hdmi_i2s_audio_data { > + struct dw_hdmi *hdmi; > + > + void (*write)(struct dw_hdmi *hdmi, u8 val, int offset); > + u8 (*read)(struct dw_hdmi *hdmi, int offset); > +}; Another slight concern here is why we need this separate data for i2s - maybe adding the write/read ops to struct dw_hdmi_audio_data would be a better thing to do, which would then allow the AHB audio to drop the .base argument in the future. I'm not that bothered about this though. So... Acked-by: Russell King Thanks. -- RMK's Patch system: http://www.armlinux.org.uk/developer/patches/ FTTC broadband for 0.8mile line: currently at 9.6Mbps down 400kbps up according to speedtest.net.