From patchwork Thu May 21 21:53:21 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Srinivas Kandagatla X-Patchwork-Id: 6460271 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 99BB89F318 for ; Thu, 21 May 2015 21:57:15 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id C867B2053F for ; Thu, 21 May 2015 21:57:14 +0000 (UTC) Received: from alsa0.perex.cz (alsa0.perex.cz [77.48.224.243]) by mail.kernel.org (Postfix) with ESMTP id 7952420270 for ; Thu, 21 May 2015 21:57:13 +0000 (UTC) Received: by alsa0.perex.cz (Postfix, from userid 1000) id 856FE265A13; Thu, 21 May 2015 23:57:12 +0200 (CEST) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org 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 31BD2265A03; Thu, 21 May 2015 23:55:01 +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 E5D7A2659FC; Thu, 21 May 2015 23:54:58 +0200 (CEST) Received: from mail-wi0-f172.google.com (mail-wi0-f172.google.com [209.85.212.172]) by alsa0.perex.cz (Postfix) with ESMTP id B6C7D2659B3 for ; Thu, 21 May 2015 23:53:27 +0200 (CEST) Received: by wibt6 with SMTP id t6so28477079wib.0 for ; Thu, 21 May 2015 14:53:27 -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=bjqbuBOD7LzikEvQa3WLSm/BOtpDG7xUr9kfmigatFo=; b=N/1gkecOWqVg8qmmrFneKaoHs+MGDe0rIXny/7BVfOWv7czy4mvbuhGCWf2++wng4h XK+Q8XvKy1ufKIH4bQrME7hPFRIHcI7hsylm3X7JYUzYmySenOCmskw5/X48rgvaznb5 dsG4nuztzwWR1PLtW+kDmBozWAnONpcSU4SUWCxsMO2jL70rdtuwBczmwQbgoxLtJQd8 9LugzmHjjEB0s3kRkhEG6wtE7CWpc83QmkoxPKnAs5uw6F+qcZ6HKujAT2z2MINxPuTZ vjad5uncoaqvUgUs/br5AwR4snEpesqx+VyE6Sh2qkjqIY1wPpvknNb/qw9PnKOcXfsr azEQ== X-Gm-Message-State: ALoCoQmdAm+VfhSmCmMT/N0+Zg1le6Pc+06YEu/sT1Q4n0km19vWUn+wACDCuMRBGhSY+K4kbP73 X-Received: by 10.194.174.68 with SMTP id bq4mr1663646wjc.4.1432245207508; Thu, 21 May 2015 14:53:27 -0700 (PDT) Received: from srini-ThinkPad-X1-Carbon-2nd.dlink.com (host-2-96-95-164.as13285.net. [2.96.95.164]) by mx.google.com with ESMTPSA id g15sm4520600wiv.22.2015.05.21.14.53.23 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 21 May 2015 14:53:26 -0700 (PDT) From: Srinivas Kandagatla To: Patrick Lai , Mark Brown Date: Thu, 21 May 2015 22:53:21 +0100 Message-Id: <1432245201-9234-1-git-send-email-srinivas.kandagatla@linaro.org> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1432245125-8939-1-git-send-email-srinivas.kandagatla@linaro.org> References: <1432245125-8939-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 v3 06/10] 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 Acked-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]; };