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: 9213935 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 242366048B for ; Tue, 5 Jul 2016 09:50:12 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 11FF5289B0 for ; Tue, 5 Jul 2016 09:50:12 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 043FC289B2; Tue, 5 Jul 2016 09:50:12 +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=-4.1 required=2.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_MED,T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.9]) (using TLSv1.2 with cipher AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 8C269289B0 for ; Tue, 5 Jul 2016 09:50:11 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.85_2 #1 (Red Hat Linux)) id 1bKMyA-0002h5-3C; Tue, 05 Jul 2016 09:48:42 +0000 Received: from ns.pmeerw.net ([2001:1b60:2:23:4133:123:0:1] helo=pmeerw.net) by bombadil.infradead.org with esmtps (Exim 4.85_2 #1 (Red Hat Linux)) id 1bKMy6-0002AK-QA for linux-arm-kernel@lists.infradead.org; Tue, 05 Jul 2016 09:48:39 +0000 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 Subject: [PATCH] ASoC: atmel_ssc_dai: Fix DMA params for different SSC 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 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20160705_024839_079474_DC97423C X-CRM114-Status: UNSURE ( 7.97 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Peter Meerwald-Stadler , alsa-devel@alsa-project.org, Nicolas Ferre , "Wu, Songjun" , linux-arm-kernel@lists.infradead.org MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.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;