From patchwork Mon Apr 14 00:57:12 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kuninori Morimoto X-Patchwork-Id: 3975671 Return-Path: X-Original-To: patchwork-alsa-devel@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 057A9BFF02 for ; Mon, 14 Apr 2014 01:09:50 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 3890F201B9 for ; Mon, 14 Apr 2014 01:09:49 +0000 (UTC) Received: from alsa0.perex.cz (alsa0.perex.cz [77.48.224.243]) by mail.kernel.org (Postfix) with ESMTP id 0AF6D2017B for ; Mon, 14 Apr 2014 01:09:48 +0000 (UTC) Received: by alsa0.perex.cz (Postfix, from userid 1000) id 13D31265207; Mon, 14 Apr 2014 03:09:47 +0200 (CEST) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Spam-Level: X-Spam-Status: No, score=-1.8 required=5.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, T_DKIM_INVALID, UNPARSEABLE_RELAY autolearn=no version=3.3.1 Received: from alsa0.perex.cz (localhost [IPv6:::1]) by alsa0.perex.cz (Postfix) with ESMTP id 1E101264FFB; Mon, 14 Apr 2014 03:07:25 +0200 (CEST) X-Original-To: alsa-devel@alsa-project.org Delivered-To: alsa-devel@alsa-project.org Received: by alsa0.perex.cz (Postfix, from userid 1000) id EA7A0261B11; Mon, 14 Apr 2014 03:07:20 +0200 (CEST) Received: from mail-pd0-f176.google.com (mail-pd0-f176.google.com [209.85.192.176]) by alsa0.perex.cz (Postfix) with ESMTP id 07B15264ECA for ; Mon, 14 Apr 2014 02:57:13 +0200 (CEST) Received: by mail-pd0-f176.google.com with SMTP id r10so7464915pdi.35 for ; Sun, 13 Apr 2014 17:57:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=date:message-id:from:subject:user-agent:to:cc:in-reply-to :references:mime-version:content-type; bh=U+Av+WAGvbpvllaZOWG6rmmh/FF3B477wxvL+7yy0vo=; b=hOGpDsgb0xnsDvGR1+v9bIURwQUUNYsguVTGBBr+9ISWw0tsOxgCbVMOBVqBcExaao wrLI0aUEbcV7+oJuGU/uU6SIFqaGrATXG9WHeHRAFd4w+pClr75/A5ZD63maFf+GQpDy ZAqtMJ2a5kQVO6kQ1tOjq/gTbuP06H2jTugTOCmTlwbv1P7gXhBsAgn7S5rKFTqYpm7T TNazPEGB9PMLJ64zISZbYzxKhHGTD+lrO6PWQTp4xpvZ4udjrol5WXdjT0Xmo4nDsDmb uEfL4PaSyxRY8BE3FdvgOTbxuI1CAfLAB6LzMA/WBce7K8QE25N4+cwke7gq11CHb+aE 0SXg== X-Received: by 10.66.149.37 with SMTP id tx5mr40928179pab.81.1397437032837; Sun, 13 Apr 2014 17:57:12 -0700 (PDT) Received: from remon.gmail.com (49.14.32.202.bf.2iij.net. [202.32.14.49]) by mx.google.com with ESMTPSA id vf7sm30222141pbc.5.2014.04.13.17.57.11 for (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Sun, 13 Apr 2014 17:57:12 -0700 (PDT) Date: Sun, 13 Apr 2014 17:57:12 -0700 (PDT) Message-ID: <87lhv820ey.wl%kuninori.morimoto.gx@gmail.com> From: Kuninori Morimoto User-Agent: Wanderlust/2.14.0 Emacs/23.3 Mule/6.0 To: Simon , broonie@kernel.org In-Reply-To: <87sipg20h1.wl%kuninori.morimoto.gx@gmail.com> References: <87sipg20h1.wl%kuninori.morimoto.gx@gmail.com> MIME-Version: 1.0 (generated by SEMI 1.14.6 - "Maruoka") Cc: alsa-devel@alsa-project.org, Magnus , Kuninori Morimoto , linux-sh@vger.kernel.org Subject: [alsa-devel] [PATCH 5/7] ARM: shmobile: lager: switch to use dai info for R-Car sound X-BeenThere: alsa-devel@alsa-project.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Alsa-devel mailing list for ALSA developers - http://www.alsa-project.org" 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 X-Virus-Scanned: ClamAV using ClamSMTP From: Kuninori Morimoto Now, R-Car sound driver supports dai info settings. switch to use it Signed-off-by: Kuninori Morimoto --- arch/arm/mach-shmobile/board-lager.c | 17 ++++++++++++----- 1 file changed, 12 insertions(+), 5 deletions(-) diff --git a/arch/arm/mach-shmobile/board-lager.c b/arch/arm/mach-shmobile/board-lager.c index f0104bf..6af09e1 100644 --- a/arch/arm/mach-shmobile/board-lager.c +++ b/arch/arm/mach-shmobile/board-lager.c @@ -567,20 +567,27 @@ static struct resource rsnd_resources[] __initdata = { }; static struct rsnd_ssi_platform_info rsnd_ssi[] = { - RSND_SSI_SET(0, 0, gic_spi(370), RSND_SSI_PLAY), - RSND_SSI_SET(0, 0, gic_spi(371), RSND_SSI_CLK_PIN_SHARE), + RSND_SSI(0, gic_spi(370), 0), + RSND_SSI(0, gic_spi(371), RSND_SSI_CLK_PIN_SHARE), }; -static struct rsnd_scu_platform_info rsnd_scu[2] = { +static struct rsnd_src_platform_info rsnd_src[2] = { /* no member at this point */ }; +static struct rsnd_dai_platform_info rsnd_dai = { + .playback = { .ssi = &rsnd_ssi[0], }, + .capture = { .ssi = &rsnd_ssi[1], }, +}; + static struct rcar_snd_info rsnd_info = { .flags = RSND_GEN2, .ssi_info = rsnd_ssi, .ssi_info_nr = ARRAY_SIZE(rsnd_ssi), - .scu_info = rsnd_scu, - .scu_info_nr = ARRAY_SIZE(rsnd_scu), + .src_info = rsnd_src, + .src_info_nr = ARRAY_SIZE(rsnd_src), + .dai_info = &rsnd_dai, + .dai_info_nr = 1, }; static struct asoc_simple_card_info rsnd_card_info = {