From patchwork Mon Feb 1 17:29:07 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Srinivas Kandagatla X-Patchwork-Id: 8181921 X-Patchwork-Delegate: agross@codeaurora.org Return-Path: X-Original-To: patchwork-linux-arm-msm@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork1.web.kernel.org (Postfix) with ESMTP id 1AACC9F1C0 for ; Mon, 1 Feb 2016 17:31:28 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 3B62C203B1 for ; Mon, 1 Feb 2016 17:31:27 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 600CC203AC for ; Mon, 1 Feb 2016 17:31:26 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754658AbcBAR3O (ORCPT ); Mon, 1 Feb 2016 12:29:14 -0500 Received: from mail-wm0-f45.google.com ([74.125.82.45]:33918 "EHLO mail-wm0-f45.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754073AbcBAR3L (ORCPT ); Mon, 1 Feb 2016 12:29:11 -0500 Received: by mail-wm0-f45.google.com with SMTP id 128so81942872wmz.1 for ; Mon, 01 Feb 2016 09:29:10 -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=NzRnjx+7UCnQTB/O++2iBV2I38KDAuq7uxP3syBIbNM=; b=SARtUI/XrDMXkLzFh3mrhBNX1HrH6PDl/hgur7TUVZduMmtR1H4ukh59PMQqB8b91p H1GHZAMSpTCFTaaXtPaa4xgPO76BIMvcw3py2QDVkWunEZkzP1VhvtbHRaHdGqf3FZEO d+DGimiKh3wbRy6mrmsjIpGV51UXXaqUlIpt8= 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=NzRnjx+7UCnQTB/O++2iBV2I38KDAuq7uxP3syBIbNM=; b=EnYhmEHkv+TN11pBiZEzYLwUXpd3bjxGDfp6aCyGEOOnwUwfxea0ojpPjbDZRv81zg HKqbfm6FaejI6qk7KEBYyi+3QYgytgRy74H5/vCr6pd9jcs6PFuZ9eenpiHNY22GIW7Q plcW571LuBB9fFAeF/u33/tc1Cx+Nl+OIBoAxMga6/08u1j/80Z2wvOmApzVDFoqDsIq oq5B2AhBKxae00r21SVFgjgyomYG4madqNbHDLAraWWKg0TlkyriQLputG0hxdrfKG0m Zl9NGm5+GtZWWpa4LxtNlRPxqM9ANEpWapPPLLGgv5BYkyuhq3pmlr/TiCW53upq2oIU z75g== X-Gm-Message-State: AG10YORqa7Jn3Z9yJqV3xaYj2dzmzkgNM8zgeqphuM43cBlVN/VyRikB+I6RK8MRTk9BNnGc X-Received: by 10.28.30.132 with SMTP id e126mr13914974wme.42.1454347750191; Mon, 01 Feb 2016 09:29:10 -0800 (PST) Received: from localhost.localdomain (host-92-13-246-184.as43234.net. [92.13.246.184]) by smtp.gmail.com with ESMTPSA id p9sm30161072wjy.41.2016.02.01.09.29.09 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 01 Feb 2016 09:29:09 -0800 (PST) From: Srinivas Kandagatla To: Patrick Lai , alsa-devel@alsa-project.org Cc: Banajit Goswami , Liam Girdwood , Mark Brown , Jaroslav Kysela , Takashi Iwai , linux-kernel@vger.kernel.org, linux-arm-msm@vger.kernel.org, Srinivas Kandagatla Subject: [PATCH RFC 09/15] ASoC: qcom: rename rdma_ch_bit_map to dma_ch_bit_map Date: Mon, 1 Feb 2016 17:29:07 +0000 Message-Id: <1454347747-10758-1-git-send-email-srinivas.kandagatla@linaro.org> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1454347622-9970-1-git-send-email-srinivas.kandagatla@linaro.org> References: <1454347622-9970-1-git-send-email-srinivas.kandagatla@linaro.org> Sender: linux-arm-msm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org X-Spam-Status: No, score=-7.3 required=5.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_HI,RP_MATCHES_RCVD,T_DKIM_INVALID,UNPARSEABLE_RELAY autolearn=ham version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.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 2d43842..df44f09 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];