From patchwork Tue Jul 5 09:46:29 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Peter Meerwald-Stadler X-Patchwork-Id: 9213933 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id DA6336048B for ; Tue, 5 Jul 2016 09:48:34 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id C8260289AE for ; Tue, 5 Jul 2016 09:48:34 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id B9D9B289B0; Tue, 5 Jul 2016 09:48:34 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-1.8 required=2.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_NONE,T_DKIM_INVALID autolearn=no version=3.3.1 Received: from alsa0.perex.cz (alsa0.perex.cz [77.48.224.243]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 4293B289AE for ; Tue, 5 Jul 2016 09:48:33 +0000 (UTC) Received: by alsa0.perex.cz (Postfix, from userid 1000) id 91BA3265325; Tue, 5 Jul 2016 11:48:31 +0200 (CEST) Received: from alsa0.perex.cz (localhost [127.0.0.1]) by alsa0.perex.cz (Postfix) with ESMTP id CCECA265326; Tue, 5 Jul 2016 11:48:27 +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 A18F2265326; Tue, 5 Jul 2016 11:48:26 +0200 (CEST) Received: from pmeerw.net (ns.pmeerw.net [84.19.176.92]) by alsa0.perex.cz (Postfix) with ESMTP id 4FDB62664FA for ; Tue, 5 Jul 2016 11:48:18 +0200 (CEST) Received: from localhost.localdomain (91-133-76-225.stat.cablelink.at [91.133.76.225]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) (Authenticated sender: pmeerw@pmeerw.net) by pmeerw.net (Postfix) with ESMTPSA id 168FD55C0E16; Tue, 5 Jul 2016 11:48:15 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=pmeerw.net; s=mail; t=1467712095; bh=jbRTfDU0zK8vu2XEnNXB6k2F7ef0FMJDlKS7Pst5lLw=; h=From:To:Cc:Subject:Date:From; b=lFKat25hUMTDjHBTOKLLSqPt7XzvHkt6WV3wha5gjzy3f6xUX7XTtwcBsupvinPsT 7YJlkRTOVpsCxUTqTdPRvJgYua2WdQw0SkoNKevja42XjjWQKjf4WDkxn3+PgJdlo7 CN/u/CO45WrYuwZ8YHtfiKFjb2aY6yQkf7eUO40c= From: Peter Meerwald To: Mark Brown Date: Tue, 5 Jul 2016 11:46:29 +0200 Message-Id: <20160705094629.5326-1-pmeerw@pmeerw.net> X-Mailer: git-send-email 2.9.0 Cc: Peter Meerwald-Stadler , alsa-devel@alsa-project.org, Nicolas Ferre , "Wu, Songjun" , linux-arm-kernel@lists.infradead.org Subject: [alsa-devel] [PATCH] ASoC: atmel_ssc_dai: Fix DMA params for different SSC 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: , MIME-Version: 1.0 Errors-To: alsa-devel-bounces@alsa-project.org Sender: alsa-devel-bounces@alsa-project.org X-Virus-Scanned: ClamAV using ClamSMTP From: Peter Meerwald follow-up patch from c706f2e55f ASoC: atmel_ssc_dai: distinguish the different SSC cpu_dai id is always 0, use platform_device id to distinguish DMA parameters of SSCs Signed-off-by: Peter Meerwald-Stadler Cc: "Wu, Songjun" Cc: Nicolas Ferre --- sound/soc/atmel/atmel_ssc_dai.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sound/soc/atmel/atmel_ssc_dai.c b/sound/soc/atmel/atmel_ssc_dai.c index 841d059..c7daea8 100644 --- a/sound/soc/atmel/atmel_ssc_dai.c +++ b/sound/soc/atmel/atmel_ssc_dai.c @@ -320,7 +320,7 @@ static int atmel_ssc_startup(struct snd_pcm_substream *substream, return ret; } - dma_params = &ssc_dma_params[dai->id][dir]; + dma_params = &ssc_dma_params[pdev->id][dir]; dma_params->ssc = ssc_p->ssc; dma_params->substream = substream;