From mboxrd@z Thu Jan 1 00:00:00 1970 From: Maxime Ripard Subject: Re: [PATCH v5 4/7] ASoC: sunxi: Add sun8i I2S driver Date: Mon, 24 Oct 2016 14:34:49 +0200 Message-ID: <20161024123449.npo4grdlbrj4tcsj@lukather> References: <20161023094503.fbb22dd0701e3f2785828609@free.fr> Reply-To: maxime.ripard-wi1+55ScJUtKEb57/3fJTNBPR1lH4CV8@public.gmane.org Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="rmyuhci7t6uxvhth" Return-path: Sender: linux-sunxi-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Content-Disposition: inline In-Reply-To: <20161023094503.fbb22dd0701e3f2785828609-GANU6spQydw@public.gmane.org> List-Post: , List-Help: , List-Archive: , List-Unsubscribe: , To: Jean-Francois Moine Cc: Chen-Yu Tsai , Dave Airlie , Liam Girdwood , Mark Brown , Rob Herring , Linux-ALSA , devicetree , dri-devel , linux-arm-kernel , linux-sunxi List-Id: devicetree@vger.kernel.org --rmyuhci7t6uxvhth Content-Type: text/plain; charset=UTF-8 Content-Disposition: inline Hi, On Sun, Oct 23, 2016 at 09:45:03AM +0200, Jean-Francois Moine wrote: > On Sun, 23 Oct 2016 09:33:16 +0800 > Chen-Yu Tsai wrote: > > > > Note: This driver is closed to the sun4i-i2s except that: > > > - it handles the H3 > > > > If it's close to sun4i-i2s, you should probably rework that one to support > > the newer SoCs. > > > > > - it creates the sound card (with sun4i-i2s, the sound card is created > > > by the CODECs) > > > > I think this is wrong. I2S is only the DAI. You typically have a separate > > platform driver for the whole card, or just use simple-card. > > An other device is not needed. The layout is simple: > I2S_controller (CPU DAI) <-> HDMI_CODEC (CODEC DAI) > The HDMI CODEC is supported by the HDMI video driver (only one device), > so, it cannot be the card device. > ASoC does not use the CPU DAI device (I2S_controller), so, it is > natural to use it to handle the card. Still, duplicating the driver is not the solution. I agree with Chen-Yu that we want to leverage the driver that is already there. Maxime -- Maxime Ripard, Free Electrons Embedded Linux and Kernel engineering http://free-electrons.com --rmyuhci7t6uxvhth--