From mboxrd@z Thu Jan 1 00:00:00 1970 From: Stephen Warren Subject: Re: [PATCH 45/54 v2] ASoC: switch over to use snd_soc_register_component() on sh4 hac Date: Thu, 21 Mar 2013 22:44:43 -0600 Message-ID: <514BE1BB.2080703@wwwdotorg.org> References: <87txo96xiu.wl%kuninori.morimoto.gx@renesas.com> <8738vpf3qd.wl%kuninori.morimoto.gx@renesas.com> <87a9pxca4i.wl%kuninori.morimoto.gx@renesas.com> <514B3CEE.9060609@wwwdotorg.org> <877gl0ffgz.wl%kuninori.morimoto.gx@renesas.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from avon.wwwdotorg.org (avon.wwwdotorg.org [70.85.31.133]) by alsa0.perex.cz (Postfix) with ESMTP id DD61F2661B5 for ; Fri, 22 Mar 2013 05:44:44 +0100 (CET) In-Reply-To: <877gl0ffgz.wl%kuninori.morimoto.gx@renesas.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: Kuninori Morimoto Cc: Linux-ALSA , Lars-Peter Clausen , Mark Brown , Peter Ujfalusi , Simon , Liam Girdwood , Kuninori Morimoto List-Id: alsa-devel@alsa-project.org On 03/21/2013 06:25 PM, Kuninori Morimoto wrote: > > Hi Stephen > > Thank you for checking patch > >>> static int hac_soc_platform_probe(struct platform_device *pdev) >>> { >>> - return snd_soc_register_dais(&pdev->dev, sh4_hac_dai, >>> - ARRAY_SIZE(sh4_hac_dai)); >>> + return snd_soc_register_component(&pdev->dev, &sh4_hac_component, >>> + sh4_hac_dai, ARRAY_SIZE(sh4_hac_dai)); >>> } >> >> Again, ARRAY_SIZE(sh4_hac_dai) == 1 or 2 based on #ifdef >> CONFIG_CPU_SUBTYPE_SH7760, so the names might change due to falling back >> to snd_soc_register_dai() instead of snd_soc_register_dais(). > > The user of this driver was only sh7760-ac97.c in upstream kernel, > and it have CONFIG_CPU_SUBTYPE_SH7760 (ARRAY_SIZE() == 2). > So, it always use dais() Oh yes, the Kconfig that enables this driver depends on CPU_SUBTYPE_SH7760. I wonder why the ifdef is there.