From patchwork Wed Feb 10 10:19:02 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Srinivas Kandagatla X-Patchwork-Id: 8269811 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.29.136]) by patchwork2.web.kernel.org (Postfix) with ESMTP id AEC36BEEE5 for ; Wed, 10 Feb 2016 10:23:08 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id CCC20202EB for ; Wed, 10 Feb 2016 10:23:07 +0000 (UTC) Received: from alsa0.perex.cz (alsa0.perex.cz [77.48.224.243]) by mail.kernel.org (Postfix) with ESMTP id 5F404200FF for ; Wed, 10 Feb 2016 10:23:05 +0000 (UTC) Received: by alsa0.perex.cz (Postfix, from userid 1000) id 6F9BC265838; Wed, 10 Feb 2016 11:23:04 +0100 (CET) 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, RCVD_IN_DNSWL_NONE, T_DKIM_INVALID, UNPARSEABLE_RELAY autolearn=no version=3.3.1 Received: from alsa0.perex.cz (localhost [127.0.0.1]) by alsa0.perex.cz (Postfix) with ESMTP id F27DD26583C; Wed, 10 Feb 2016 11:20:30 +0100 (CET) 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 60A81265834; Wed, 10 Feb 2016 11:20:29 +0100 (CET) Received: from mail-wm0-f46.google.com (mail-wm0-f46.google.com [74.125.82.46]) by alsa0.perex.cz (Postfix) with ESMTP id 7604E265456 for ; Wed, 10 Feb 2016 11:19:05 +0100 (CET) Received: by mail-wm0-f46.google.com with SMTP id 128so20099930wmz.1 for ; Wed, 10 Feb 2016 02:19:05 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=QQA0SqZZhnm2uZAWXfXDH9KCOf3ES9qXaA/7Bry+iqo=; b=b6rmb8GTr9EhI3R8kyj1BCgZIYC9pf4+mGMo7mRjgfus3QjTlTGdg52nj/cCTqXGnU Ozu6IW8AKrThUukgAqXc4t+OzWY7gTB0VkmoOMhA1NsMpR2K1Izrvks8A7jiz958BTjY CUMoFmICFQ6TxWL2QqhywFFbMJuLwTPfT6fpk= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=QQA0SqZZhnm2uZAWXfXDH9KCOf3ES9qXaA/7Bry+iqo=; b=QJSVr7EgM1cGxmVQfDqXtdpiMhrwwbOSpUETuiR5IJwVCN8A2iFKsYf4nd3QdafxEp XEmWb03uW/+GoiQoYQhB12YZPktA6ecqV2YRehbPfaXEzd/gAwPueKrBPEMjr1JYx/PQ kdFrbMMPCGzKYjN4uqYH8ZPXoGYlX9syAWwRO7C7P8gJVMdULh8dfu4DDpig3/5rWVr5 QzMN3dGeiN02zn+M2HKA1J5DdIxnfdGln+qLNvNFilHP5ruHxjqxiZtQPsP53ciBOTs4 M/0m9Gd6DjLUTk8kkOsTHBWEg2izvrBDgJy+hciMthBI9S5TrJko0JDBRnJ7BMxghdq4 Z/Xg== X-Gm-Message-State: AG10YOSSGqQV2OEV3yfsmBYVE8zOsclszXFssN7/E8kBTOu4MX0Ysqzn26R8Ul/Cz63U+VDS X-Received: by 10.194.78.175 with SMTP id c15mr39369233wjx.16.1455099545248; Wed, 10 Feb 2016 02:19:05 -0800 (PST) Received: from localhost.localdomain (host-92-13-246-184.as43234.net. [92.13.246.184]) by smtp.gmail.com with ESMTPSA id t12sm3482895wmt.20.2016.02.10.02.19.04 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 10 Feb 2016 02:19:04 -0800 (PST) From: Srinivas Kandagatla To: Patrick Lai , alsa-devel@alsa-project.org, Mark Brown Date: Wed, 10 Feb 2016 10:19:02 +0000 Message-Id: <1455099542-577-1-git-send-email-srinivas.kandagatla@linaro.org> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1455099418-311-1-git-send-email-srinivas.kandagatla@linaro.org> References: <1455099418-311-1-git-send-email-srinivas.kandagatla@linaro.org> Cc: kwestfie@codeaurora.org, Banajit Goswami , Liam Girdwood , linux-arm-msm@vger.kernel.org, linux-kernel@vger.kernel.org, Takashi Iwai , Srinivas Kandagatla Subject: [alsa-devel] [PATCH v1 06/14] ASoC: qcom: rename rdma_ch_bit_map to dma_ch_bit_map 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 rdma_ch_bit_map can be reused for wrdma channel allocations as wrdma channel numbering start after rdma channel numbers. With capture support referring rdma_ch_bit_map for wrdma channel allocation is confusing, so renaming rdma_ch_bit_map to dma_ch_bit_map makes sense. Signed-off-by: Srinivas Kandagatla --- sound/soc/qcom/lpass-apq8016.c | 6 +++--- sound/soc/qcom/lpass.h | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/sound/soc/qcom/lpass-apq8016.c b/sound/soc/qcom/lpass-apq8016.c index 99061f4..ca3bbd5 100644 --- a/sound/soc/qcom/lpass-apq8016.c +++ b/sound/soc/qcom/lpass-apq8016.c @@ -137,20 +137,20 @@ static int apq8016_lpass_alloc_dma_channel(struct lpass_data *drvdata, int direction) { struct lpass_variant *v = drvdata->variant; - int chan = find_first_zero_bit(&drvdata->rdma_ch_bit_map, + int chan = find_first_zero_bit(&drvdata->dma_ch_bit_map, v->rdma_channels); if (chan >= v->rdma_channels) return -EBUSY; - set_bit(chan, &drvdata->rdma_ch_bit_map); + set_bit(chan, &drvdata->dma_ch_bit_map); return chan; } static int apq8016_lpass_free_dma_channel(struct lpass_data *drvdata, int chan) { - clear_bit(chan, &drvdata->rdma_ch_bit_map); + clear_bit(chan, &drvdata->dma_ch_bit_map); return 0; } diff --git a/sound/soc/qcom/lpass.h b/sound/soc/qcom/lpass.h index 8475b60..30714ad 100644 --- a/sound/soc/qcom/lpass.h +++ b/sound/soc/qcom/lpass.h @@ -50,7 +50,7 @@ struct lpass_data { struct lpass_variant *variant; /* bit map to keep track of static channel allocations */ - unsigned long rdma_ch_bit_map; + unsigned long dma_ch_bit_map; /* used it for handling interrupt per dma channel */ struct snd_pcm_substream *substream[LPASS_MAX_DMA_CHANNELS];