From patchwork Thu Jun 5 08:05:13 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kuninori Morimoto X-Patchwork-Id: 4303951 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 CCF9EBEEA7 for ; Thu, 5 Jun 2014 08:05:45 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 214B320306 for ; Thu, 5 Jun 2014 08:05:45 +0000 (UTC) Received: from alsa0.perex.cz (alsa0.perex.cz [77.48.224.243]) by mail.kernel.org (Postfix) with ESMTP id 01484202E5 for ; Thu, 5 Jun 2014 08:05:44 +0000 (UTC) Received: by alsa0.perex.cz (Postfix, from userid 1000) id 007D4265350; Thu, 5 Jun 2014 10:05:42 +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_SIGNED, NO_DNS_FOR_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 A5DA7265468; Thu, 5 Jun 2014 10:05:28 +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 EB926265478; Thu, 5 Jun 2014 10:05:27 +0200 (CEST) Received: from mail-pd0-f180.google.com (mail-pd0-f180.google.com [209.85.192.180]) by alsa0.perex.cz (Postfix) with ESMTP id 29F40265350 for ; Thu, 5 Jun 2014 10:05:15 +0200 (CEST) Received: by mail-pd0-f180.google.com with SMTP id y13so744241pdi.11 for ; Thu, 05 Jun 2014 01:05:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=date:sender:message-id:to:cc:in-reply-to:references:from:subject :user-agent:mime-version:content-type; bh=lOtcCOKY1Vrw970pmBdeTLfmMf9NvCFcKO//9o/wDwM=; b=We98KiE/KAzkZXmo8kWT/A/e/tYEQF8dlHgaBZWGPoFfclV0noO3/GcMK41obsAfWf NK9RVkctoOZhrjH+At8L1sKTtDKdaF6jEps7Y4qnXjsLlTtvsswUb8lZEfxl5Amf09dr bfc32RPGFMS1Jsg1IajPxMPDSxu1U43nBntkXdHgaDJM9LBjAOA/X5G12lMz5HHYzGc8 dAPUnfZUUELKmhppkAMzkLgRg0Ob4pQ8cpZaLttUKq6s3xOHAGWTJhL38bpNfh3ZP/mk b75L+6964SBJRYKaxN5IebINONQr00atVoPk8V1d36sr8PQtBd4g9VyAifmnWMA15Mkc wn7Q== X-Received: by 10.68.193.193 with SMTP id hq1mr73286331pbc.107.1401955514257; Thu, 05 Jun 2014 01:05:14 -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 pq3sm19540475pbb.57.2014.06.05.01.05.12 for (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Thu, 05 Jun 2014 01:05:13 -0700 (PDT) Date: Thu, 05 Jun 2014 01:05:13 -0700 (PDT) Message-ID: <87vbsfixxj.wl%kuninori.morimoto.gx@renesas.com> To: Mark Brown In-Reply-To: <87wqcvixyj.wl%kuninori.morimoto.gx@gmail.com> References: <87wqcvixyj.wl%kuninori.morimoto.gx@gmail.com> From: Kuninori Morimoto User-Agent: Wanderlust/2.14.0 Emacs/23.3 Mule/6.0 MIME-Version: 1.0 (generated by SEMI 1.14.6 - "Maruoka") Cc: Linux-ALSA , Simon , Liam Girdwood Subject: [alsa-devel] [PATCH 1/2] ASoC: rsnd: fixup loop exit timing of dma name search 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 Current dma name search loop didn't care about SSI index This patch fixes it. Signed-off-by: Kuninori Morimoto --- sound/soc/sh/rcar/core.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/sound/soc/sh/rcar/core.c b/sound/soc/sh/rcar/core.c index ebb5d46..2d28a7a 100644 --- a/sound/soc/sh/rcar/core.c +++ b/sound/soc/sh/rcar/core.c @@ -298,7 +298,6 @@ static void rsnd_dma_of_name(struct rsnd_dma *dma, for (i = 1; i < MOD_MAX; i++) { if (!src) { mod[i] = ssi; - break; } else if (!dvc) { mod[i] = src; src = NULL; @@ -309,6 +308,9 @@ static void rsnd_dma_of_name(struct rsnd_dma *dma, if (mod[i] == this) index = i; + + if (mod[i] == ssi) + break; } if (is_play) {