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: 48437 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-wg0-f69.google.com (mail-wg0-f69.google.com [74.125.82.69]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 5783A214A1 for ; Wed, 13 May 2015 12:03:18 +0000 (UTC) Received: by wgvl6 with SMTP id l6sf7970904wgv.2 for ; Wed, 13 May 2015 05:03:17 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:delivered-to:from:to:cc:subject :date:message-id:in-reply-to:references:sender:precedence:list-id :x-original-sender:x-original-authentication-results:mailing-list :list-post:list-help:list-archive:list-unsubscribe; bh=dId2OyLIl74PwGsYL9eJqPDV4JlqB9Yubro2mXX5Wg4=; b=QIMs3c9NyyOpZEjptCsajjtH3MAhGBg52afCNIfn6gdzUKG07FiDYl5J0PS1vAIhGR tD3583YLMvfIFkSzE0+m00DznmNwP3D5O4h7qAxvJ8BrzzeTr/rAohj2kq6rhQMjZWb7 lHP4EnEDw0FFmq4E5/TAx+5y8fzhO+CqjWG3ckFEMIoaBue9ijWme7z8XtNz23d9GG0O Pid29GGKXZx6rPiVSwbEkE3c+GHDU79YMN3fK6kY8Kq2XiiZRZGvemlTZ2Gk489XX+eI XhGIFUl1uYKLRWJfaCK6Uaj9H1hfSy8AqtVquJICneccYMM0jzcoYzObe3RGhJk9QrlY hZqQ== X-Gm-Message-State: ALoCoQlu9ztMmBnn4WwH/pSGuwGbNtaSwTqwFSuDJX6/FAIVEWQxnPq6+8hXwNeVUDVleyU6htrK X-Received: by 10.180.106.136 with SMTP id gu8mr14521451wib.6.1431518597688; Wed, 13 May 2015 05:03:17 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.205.99 with SMTP id lf3ls219131lac.54.gmail; Wed, 13 May 2015 05:03:17 -0700 (PDT) X-Received: by 10.112.126.162 with SMTP id mz2mr15406831lbb.97.1431518597528; Wed, 13 May 2015 05:03:17 -0700 (PDT) Received: from mail-lb0-f182.google.com (mail-lb0-f182.google.com. [209.85.217.182]) by mx.google.com with ESMTPS id q1si12249491lbr.116.2015.05.13.05.03.17 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 13 May 2015 05:03:17 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.217.182 as permitted sender) client-ip=209.85.217.182; Received: by lbcga7 with SMTP id ga7so27748677lbc.1 for ; Wed, 13 May 2015 05:03:17 -0700 (PDT) X-Received: by 10.112.150.100 with SMTP id uh4mr2141385lbb.112.1431518597393; Wed, 13 May 2015 05:03:17 -0700 (PDT) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patch@linaro.org Received: by 10.112.108.230 with SMTP id hn6csp487589lbb; Wed, 13 May 2015 05:03:16 -0700 (PDT) X-Received: by 10.70.130.43 with SMTP id ob11mr37147649pdb.35.1431518593857; Wed, 13 May 2015 05:03:13 -0700 (PDT) Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id r7si26807743pap.190.2015.05.13.05.03.12; Wed, 13 May 2015 05:03:13 -0700 (PDT) Received-SPF: none (google.com: devicetree-owner@vger.kernel.org does not designate permitted sender hosts) client-ip=209.132.180.67; Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S964982AbbEMMDG (ORCPT + 7 others); Wed, 13 May 2015 08:03:06 -0400 Received: from mail-wi0-f182.google.com ([209.85.212.182]:35973 "EHLO mail-wi0-f182.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S964980AbbEMMDD (ORCPT ); Wed, 13 May 2015 08:03:03 -0400 Received: by wizk4 with SMTP id k4so195387046wiz.1 for ; Wed, 13 May 2015 05:03:02 -0700 (PDT) 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 Cc: Rob Herring , Pawel Moll , Ian Campbell , Kumar Gala , Banajit Goswami , Kenneth Westfield , Liam Girdwood , Jaroslav Kysela , Takashi Iwai , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, alsa-devel@alsa-project.org, linux-arm-msm@vger.kernel.org, Srinivas Kandagatla Subject: [PATCH v1 09/13] ASoC: qcom: add bit map to track static dma channel allocations 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> Sender: devicetree-owner@vger.kernel.org Precedence: list List-ID: X-Mailing-List: devicetree@vger.kernel.org X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: srinivas.kandagatla@linaro.org X-Original-Authentication-Results: mx.google.com; spf=pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.217.182 as permitted sender) smtp.mail=patch+caf_=patchwork-forward=linaro.org@linaro.org Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org X-Google-Group-Id: 836684582541 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , 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]; };