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: 6421741 Return-Path: X-Original-To: patchwork-alsa-devel@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 6A2C9C0432 for ; Sat, 16 May 2015 12:38:28 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id A5723205BA for ; Sat, 16 May 2015 12:38:27 +0000 (UTC) Received: from alsa0.perex.cz (alsa0.perex.cz [77.48.224.243]) by mail.kernel.org (Postfix) with ESMTP id D6A0D205AA for ; Sat, 16 May 2015 12:38:25 +0000 (UTC) Received: by alsa0.perex.cz (Postfix, from userid 1000) id AABF02651FC; Sat, 16 May 2015 14:38:24 +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 3DC7D2616EF; Sat, 16 May 2015 14:34:42 +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 2DC0D262634; Sat, 16 May 2015 14:34:41 +0200 (CEST) Received: from mail-wg0-f49.google.com (mail-wg0-f49.google.com [74.125.82.49]) by alsa0.perex.cz (Postfix) with ESMTP id 076AD264EF3 for ; Sat, 16 May 2015 14:33:18 +0200 (CEST) Received: by wguv19 with SMTP id v19so80024930wgu.1 for ; Sat, 16 May 2015 05:33: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:from:to:cc:subject:date:message-id:in-reply-to :references; bh=oVutwA0xLDfWPDM6ZN9087CUuX2MonE4zD0VcDE12yM=; b=UGdrR/OpP/HzVMKeqKyubcGuNOl2fpft7rpvmNHqEmgynrBSOnpYqHgSLMz3nEx0Kt yn8nG6l/p0uU4LLeB2X13vtAB83alwRTEz7PDtfEQYbgPl3D5AZs/4RfmoTdvJbFLK3g PZjLeYPya89jeRTRv9DMAu3AMIJowGDNOBnwzLUrH1eZtg6K8yR6Z9D4fSb29myUQCYF dX8DvBetgHOmx+aFYrxXz6P5UWq8hAIoCPn3d70JJ/frFnZ2VEGT/fBlbAclNGo/UtxP zt3YVDa13nWj78xSgj0Ctodijz3FDsuCz65OALozwD2RZGjVqqlvnZ3oVR3YEUwqv4DU 5tXg== X-Gm-Message-State: ALoCoQle4ZZbz/64kx5IvJfTvxlR9Qf5Tfd/zbX5eC5o2gx/cKMExcWEGCi771CcZi+9zzGf9CTV 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 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> 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 v2 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. 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]; };