From patchwork Thu Apr 30 17:17:50 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Srinivas Kandagatla X-Patchwork-Id: 47868 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-lb0-f197.google.com (mail-lb0-f197.google.com [209.85.217.197]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 4280720553 for ; Thu, 30 Apr 2015 17:18:10 +0000 (UTC) Received: by lbbrr5 with SMTP id rr5sf16474777lbb.3 for ; Thu, 30 Apr 2015 10:18:09 -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=ZcWpjkTBZdclrTwEN/g1o6vFoa42UrCWmWY72tu26Io=; b=fJLImYELw2OAgEzoe2QbMvE/3UxVnpKd/iQy5JJ4RuNHT69LFGuA2b537tTIFmFXhl GWgRLaxu0Gr1MKZq0OlNjm1A1x/ZIF6sNy8rUPtFAnpbwB+zR9nURu3YF43DnKv0svHm eEOBhRZ/WJP5p3ixzw6yQR1+bcAxk0hR3SM0Ia9mpdjY4aDgUu6+Mv2ETp45w6QZwAzP jjbTrq28ppNFbX1cYkj/TUJApbisfWMA1C9EFo3+YtYxnZCdRI4uKXxWfc/HkzuwESbh I9vsTu0liitEybfvJq903TkbdLAGnBSBjvz1lgLVIEPpZq8QBaf8JkKM98KwuyOrSFMP l1cw== X-Gm-Message-State: ALoCoQm9Zb6qqk4XkrweSFZQH4g0PwSwO3wdlsBRttZG38EpwCVHyiVJZ3MDjQG9BEo135HfRy1V X-Received: by 10.152.43.116 with SMTP id v20mr3119562lal.3.1430414289065; Thu, 30 Apr 2015 10:18:09 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.29.100 with SMTP id j4ls415424lah.92.gmail; Thu, 30 Apr 2015 10:18:08 -0700 (PDT) X-Received: by 10.152.5.134 with SMTP id s6mr4097021las.99.1430414288928; Thu, 30 Apr 2015 10:18:08 -0700 (PDT) Received: from mail-lb0-f171.google.com (mail-lb0-f171.google.com. [209.85.217.171]) by mx.google.com with ESMTPS id a1si2211754lbc.45.2015.04.30.10.18.08 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 30 Apr 2015 10:18:08 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.217.171 as permitted sender) client-ip=209.85.217.171; Received: by lbbzk7 with SMTP id zk7so49923209lbb.0 for ; Thu, 30 Apr 2015 10:18:08 -0700 (PDT) X-Received: by 10.152.27.1 with SMTP id p1mr4740343lag.112.1430414288687; Thu, 30 Apr 2015 10:18:08 -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.67.65 with SMTP id l1csp3242994lbt; Thu, 30 Apr 2015 10:18:08 -0700 (PDT) X-Received: by 10.66.120.47 with SMTP id kz15mr9060204pab.20.1430414280650; Thu, 30 Apr 2015 10:18:00 -0700 (PDT) Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id gv7si4340696pac.201.2015.04.30.10.17.59; Thu, 30 Apr 2015 10:18:00 -0700 (PDT) Received-SPF: none (google.com: linux-arm-msm-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 S1751385AbbD3RR6 (ORCPT + 5 others); Thu, 30 Apr 2015 13:17:58 -0400 Received: from mail-wg0-f43.google.com ([74.125.82.43]:35200 "EHLO mail-wg0-f43.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752613AbbD3RRz (ORCPT ); Thu, 30 Apr 2015 13:17:55 -0400 Received: by wgyo15 with SMTP id o15so69830397wgy.2 for ; Thu, 30 Apr 2015 10:17:54 -0700 (PDT) X-Received: by 10.194.47.165 with SMTP id e5mr10324912wjn.128.1430414274233; Thu, 30 Apr 2015 10:17:54 -0700 (PDT) Received: from srini-ThinkPad-X1-Carbon-2nd.dlink.com (host-2-98-219-188.as13285.net. [2.98.219.188]) by mx.google.com with ESMTPSA id b10sm3299490wiz.9.2015.04.30.10.17.52 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 30 Apr 2015 10:17:53 -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: [RFC PATCH 10/14] ASoC: qcom: add bit map to track static dma channel allocations Date: Thu, 30 Apr 2015 18:17:50 +0100 Message-Id: <1430414270-11300-1-git-send-email-srinivas.kandagatla@linaro.org> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1430414148-10869-1-git-send-email-srinivas.kandagatla@linaro.org> References: <1430414148-10869-1-git-send-email-srinivas.kandagatla@linaro.org> Sender: linux-arm-msm-owner@vger.kernel.org Precedence: list List-ID: X-Mailing-List: linux-arm-msm@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.171 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 c3016fe..82708d1 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]; };