From mboxrd@z Thu Jan 1 00:00:00 1970 From: Maxime Ripard Subject: Re: [PATCH v2 01/14] ASoC: sun4i-codec: Move data structures to add create_card call to quirks Date: Thu, 3 Nov 2016 09:23:14 +0100 Message-ID: <20161103082314.gtrb42pttayndnbc@lukather> References: <20161103075556.29018-1-wens@csie.org> <20161103075556.29018-2-wens@csie.org> 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="oby3df2u5a7cmzgr" Return-path: Sender: linux-sunxi-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Content-Disposition: inline In-Reply-To: <20161103075556.29018-2-wens-jdAy2FN1RRM@public.gmane.org> List-Post: , List-Help: , List-Archive: , List-Unsubscribe: , To: Chen-Yu Tsai Cc: Liam Girdwood , Mark Brown , Jaroslav Kysela , Takashi Iwai , Rob Herring , Mark Rutland , alsa-devel-K7yf7f+aM1XWsZ/bQMPhNw@public.gmane.org, linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r@public.gmane.org, linux-kernel-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, devicetree-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, linux-sunxi-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org List-Id: devicetree@vger.kernel.org --oby3df2u5a7cmzgr Content-Type: text/plain; charset=UTF-8 Content-Disposition: inline On Thu, Nov 03, 2016 at 03:55:43PM +0800, Chen-Yu Tsai wrote: > The audio codec on later Allwinner SoCs have a different layout and > audio path compared to the A10/A20. However the PCM parts are still > the same. > > The different layout and audio paths mean we need a different > create_card function for different families, so they can create > DAPM endpoint widgets and routes. > > This patch moves the regmap configs, quirks and of_device_id > structures to just before the probe function, so we can, among other > things, include a pointer for the create_card function. None of the > lines of code were changed. > > Signed-off-by: Chen-Yu Tsai Acked-by: Maxime Ripard Thanks! Maxime -- Maxime Ripard, Free Electrons Embedded Linux and Kernel engineering http://free-electrons.com --oby3df2u5a7cmzgr--