From patchwork Sat May 16 12:33:14 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Srinivas Kandagatla X-Patchwork-Id: 48606 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-la0-f71.google.com (mail-la0-f71.google.com [209.85.215.71]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 4692421411 for ; Sat, 16 May 2015 12:36:50 +0000 (UTC) Received: by laed2 with SMTP id d2sf16261133lae.0 for ; Sat, 16 May 2015 05:36:49 -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=O0ytQSDO7bRK943SgEtSFnJvXDRqoBPag6l8vFfXNH8=; b=hfg6s4mAW1eOBArIie4afWxpY8IwDcKLVaUM/Y6BwbpdDQOL9matBK2pBktLOB4ehU xtZATkgvXWJB6nkcxJqkupJss+BmBd7aNx4heBiTCQPh54+x51B7tcB8TzIQFRNluW3W tQZj6HwsYJ5jYG1Wd9Bj0RostPcE2XspTh3OFMobqxOEuiPTCHTNyXnzlMDVYIMwhy6f Nh+T77UGRoe75EgG8C9KwVzh/ysUUgr9lSNnvGlk6l4mZ90pjJPuOJiF9xDWHEroKPb3 33+BEEbpBNlM/cXOLij2plPPx/+AO7Oa2CWyCwweJGMbEOJwTHK64Yudj0JQxM81Rlj7 EA3Q== X-Gm-Message-State: ALoCoQnHcRNM8Rz3fi2S5l810QBg1UyOY754376zNOq8609ADxso6kBE82wU1m0GmhznKkR2XdyI X-Received: by 10.112.162.228 with SMTP id yd4mr10703096lbb.8.1431779809173; Sat, 16 May 2015 05:36:49 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.22.99 with SMTP id c3ls578899laf.96.gmail; Sat, 16 May 2015 05:36:48 -0700 (PDT) X-Received: by 10.112.157.100 with SMTP id wl4mr10727248lbb.20.1431779808961; Sat, 16 May 2015 05:36:48 -0700 (PDT) Received: from mail-la0-f41.google.com (mail-la0-f41.google.com. [209.85.215.41]) by mx.google.com with ESMTPS id b2si2971970lbd.52.2015.05.16.05.36.48 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sat, 16 May 2015 05:36:48 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.215.41 as permitted sender) client-ip=209.85.215.41; Received: by lagv1 with SMTP id v1so159034092lag.3 for ; Sat, 16 May 2015 05:36:48 -0700 (PDT) X-Received: by 10.112.199.133 with SMTP id jk5mr10972701lbc.32.1431779808505; Sat, 16 May 2015 05:36:48 -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 hn6csp2710030lbb; Sat, 16 May 2015 05:36:47 -0700 (PDT) X-Received: by 10.68.167.131 with SMTP id zo3mr27008584pbb.123.1431779804550; Sat, 16 May 2015 05:36:44 -0700 (PDT) Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id kc8si7072460pbc.130.2015.05.16.05.36.43; Sat, 16 May 2015 05:36:44 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of devicetree-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755200AbbEPMdW (ORCPT + 7 others); Sat, 16 May 2015 08:33:22 -0400 Received: from mail-wi0-f171.google.com ([209.85.212.171]:38770 "EHLO mail-wi0-f171.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755196AbbEPMdT (ORCPT ); Sat, 16 May 2015 08:33:19 -0400 Received: by wicnf17 with SMTP id nf17so20736673wic.1 for ; Sat, 16 May 2015 05:33:17 -0700 (PDT) X-Received: by 10.194.58.11 with SMTP id m11mr27660110wjq.92.1431779597793; Sat, 16 May 2015 05:33:17 -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 u9sm7150131wjx.15.2015.05.16.05.33.15 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Sat, 16 May 2015 05:33:17 -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 v2 09/13] ASoC: qcom: add bit map to track static dma channel allocations Date: Sat, 16 May 2015 13:33:14 +0100 Message-Id: <1431779594-2249-1-git-send-email-srinivas.kandagatla@linaro.org> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1431779462-1732-1-git-send-email-srinivas.kandagatla@linaro.org> References: <1431779462-1732-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.215.41 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. Tested-by: Kenneth Westfield 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]; };