From patchwork Wed Jun 11 06:41:03 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kuninori Morimoto X-Patchwork-Id: 4333741 Return-Path: X-Original-To: patchwork-alsa-devel@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork1.web.kernel.org (Postfix) with ESMTP id 7E9189F333 for ; Wed, 11 Jun 2014 06:41:28 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id C00EF202EC for ; Wed, 11 Jun 2014 06:41:27 +0000 (UTC) Received: from alsa0.perex.cz (alsa0.perex.cz [77.48.224.243]) by mail.kernel.org (Postfix) with ESMTP id 610A7202DD for ; Wed, 11 Jun 2014 06:41:26 +0000 (UTC) Received: by alsa0.perex.cz (Postfix, from userid 1000) id 9DBCE26567D; Wed, 11 Jun 2014 08:41:24 +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 2C454265327; Wed, 11 Jun 2014 08:41:14 +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 B990E265351; Wed, 11 Jun 2014 08:41:13 +0200 (CEST) Received: from mail-pa0-f43.google.com (mail-pa0-f43.google.com [209.85.220.43]) by alsa0.perex.cz (Postfix) with ESMTP id 785E9265307 for ; Wed, 11 Jun 2014 08:41:05 +0200 (CEST) Received: by mail-pa0-f43.google.com with SMTP id rd3so1568502pab.30 for ; Tue, 10 Jun 2014 23:41:03 -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:mime-version :content-type; bh=7CxHgWJ2uQ3LlD1JrLvV6r6gWxreWF5n7lxHsQQR6VA=; b=SW+k6QSq9Y77PkxxE1T9sFGeL5O23a+mZ8saQAkt8JTlLr/ctJFZtbOtw5k7w0+gzk sFLTaIyFbHPUeJakZxFVNI37N3AlK2leFl+k74ykpTRP1/V7MqHFds20QTO+qEB0/Zdk c7hLlbUcvYwiRMJJr8e0sA2eG3j7KpY8TjI99tVrmKwAQLVgGgBVu1rbNpWL2ZbyUSpg YK+6FITw8gI+cxWTKaSzdLj++k+Lb2bXJrz+VUNW9L4cVnXuBNwwu+IaClmVPOFjMu9m fNcqzRA7LFsjanO4sWe+TWY2J8trc773R1beHyDUSYE3qsWfE+0+GoD32pXYEORdWjHO JN3Q== X-Received: by 10.68.234.2 with SMTP id ua2mr2558332pbc.81.1402468863686; Tue, 10 Jun 2014 23:41:03 -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 wt6sm24430549pac.29.2014.06.10.23.41.02 for (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Tue, 10 Jun 2014 23:41:03 -0700 (PDT) Date: Tue, 10 Jun 2014 23:41:03 -0700 (PDT) Message-ID: <87fvjcj6d3.wl%kuninori.morimoto.gx@gmail.com> From: Kuninori Morimoto User-Agent: Wanderlust/2.14.0 Emacs/23.3 Mule/6.0 To: Mark Brown MIME-Version: 1.0 (generated by SEMI 1.14.6 - "Maruoka") Cc: Dan Carpenter , Linux-ALSA , Simon , Liam Girdwood , Kuninori Morimoto Subject: [alsa-devel] [PATCH] ASoC: rsnd: fixup index of src/dst mod when capture 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 Index of dma name should use -1, not +1 when capture case. Thank you Dan. Reported-by: Dan Carpenter Signed-off-by: Kuninori Morimoto --- sound/soc/sh/rcar/core.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sound/soc/sh/rcar/core.c b/sound/soc/sh/rcar/core.c index 2d0f98f..5a4d7e0 100644 --- a/sound/soc/sh/rcar/core.c +++ b/sound/soc/sh/rcar/core.c @@ -289,7 +289,7 @@ static void rsnd_dma_of_name(struct rsnd_dma *dma, dst_mod = mod[index]; } else { src_mod = mod[index]; - dst_mod = mod[index + 1]; + dst_mod = mod[index - 1]; } index = 0;