From patchwork Wed May 13 12:02:59 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Srinivas Kandagatla X-Patchwork-Id: 6396521 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.29.136]) by patchwork1.web.kernel.org (Postfix) with ESMTP id ECE3A9F1C2 for ; Wed, 13 May 2015 12:08:17 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 75AAC2028D for ; Wed, 13 May 2015 12:08:12 +0000 (UTC) Received: from alsa0.perex.cz (alsa0.perex.cz [77.48.224.243]) by mail.kernel.org (Postfix) with ESMTP id 3D63E20381 for ; Wed, 13 May 2015 12:08:11 +0000 (UTC) Received: by alsa0.perex.cz (Postfix, from userid 1000) id 4B98326621A; Wed, 13 May 2015 14:08:10 +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.9 required=5.0 tests=BAYES_00, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 Received: from alsa0.perex.cz (localhost [IPv6:::1]) by alsa0.perex.cz (Postfix) with ESMTP id 00431266299; Wed, 13 May 2015 14:05:31 +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 AB59A266299; Wed, 13 May 2015 14:05:30 +0200 (CEST) Received: from mail-wg0-f42.google.com (mail-wg0-f42.google.com [74.125.82.42]) by alsa0.perex.cz (Postfix) with ESMTP id E48EF266323 for ; Wed, 13 May 2015 14:03:02 +0200 (CEST) Received: by wgnd10 with SMTP id d10so38667739wgn.2 for ; Wed, 13 May 2015 05:03:02 -0700 (PDT) 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=OSfAGS948G30nOKrA7LF+EyrbN7kHoOwgL5Y/jfoLD0=; b=Vh+ZwV9y0g01BN1pVKDSh2oQ8kLTxyIh8Gug0/FrZ/hmAzKFMLEALNUtVkVq/rk17R mCtDq25Da/tZlSc0+4FLB0M0A1CQrxrnTL6H7EVLYxLH1Id6chveKGYv7b/nzxmvxky/ GrfR+DEbz57SNh5DR5dMUrF2YiRu3gPBILoT33Y/zc5UhCmdZJlq4uogixs40+rIq1Pz 1Wih8Q/fdnsaJuazRrR6kJnsvoi6Vrj0zyYip2rOfuIrQl5LBtdRTZgZvaN1xNA8mudj NUHDFzNFsdACC8o1inRwmzJT3uJTKSyx/qLcShW0iUYRQ3/5G4goZt1dyldZk1V5FODP yEXA== X-Gm-Message-State: ALoCoQlKzqgtge31HVlTFn8XInll2UsyoavvXixnqc6ytp3v0+uHeWcRrBtEfwppCLcHqwyRNj0o X-Received: by 10.180.106.195 with SMTP id gw3mr13895487wib.25.1431518582702; Wed, 13 May 2015 05:03:02 -0700 (PDT) Received: from srini-ThinkPad-X1-Carbon-2nd.dlink.com (host-78-144-121-184.as13285.net. [78.144.121.184]) by mx.google.com with ESMTPSA id j1sm7713543wia.22.2015.05.13.05.03.00 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 13 May 2015 05:03:02 -0700 (PDT) From: Srinivas Kandagatla To: Patrick Lai , Mark Brown Date: Wed, 13 May 2015 13:02:59 +0100 Message-Id: <1431518579-7667-1-git-send-email-srinivas.kandagatla@linaro.org> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1431518302-7139-1-git-send-email-srinivas.kandagatla@linaro.org> References: <1431518302-7139-1-git-send-email-srinivas.kandagatla@linaro.org> Cc: devicetree@vger.kernel.org, Kenneth Westfield , Banajit Goswami , Pawel Moll , Ian Campbell , Takashi Iwai , linux-kernel@vger.kernel.org, linux-arm-msm@vger.kernel.org, Liam Girdwood , Rob Herring , Srinivas Kandagatla , Kumar Gala , alsa-devel@alsa-project.org Subject: [alsa-devel] [PATCH v1 09/13] ASoC: qcom: add bit map to track static dma channel allocations 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 This patch adds dma channel bit mask to lpass data to keep track of dma channel allocations. This flag would be used in apq8016 lpass driver. Signed-off-by: Srinivas Kandagatla --- sound/soc/qcom/lpass.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/sound/soc/qcom/lpass.h b/sound/soc/qcom/lpass.h index d572e7b..deecae9 100644 --- a/sound/soc/qcom/lpass.h +++ b/sound/soc/qcom/lpass.h @@ -49,6 +49,9 @@ struct lpass_data { /* SOC specific variations in the LPASS IP integration */ struct lpass_variant *variant; + /* bit map to keep track of static channel allocations */ + unsigned long rdma_ch_bit_map; + /* used it for handling interrupt per dma channel */ struct snd_pcm_substream *substream[LPASS_MAX_DMA_CHANNELS]; };