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: 48881 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 8AE892121F for ; Thu, 21 May 2015 21:54:46 +0000 (UTC) Received: by lbbqj7 with SMTP id qj7sf166964lbb.1 for ; Thu, 21 May 2015 14:54:45 -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=+bDKaiaM7X/lOOEpXpz6h71w13kOnOhTzH9Cxi6AvVY=; b=NRnB02GZK2VJ1HQUlt677TmcTYauAhO0i1Vdo9r/xPK+bcugD5Tvzz/htK9rhKr1wJ PC0iDPeNldfScXVm+G9ULMWEP/dv20zvi0aF5Fwx1f3NuHLN6KeXRbCzwkX2BHFMZ7Yz QljtEWby4uClTcwCtDJaqSEB85i4BOUinqXWzku5Gkdv1Cyds+MlhVueesjnG8ecwE/R RmiLMWnIosLkIHu0qnB1ZQIDJ+mTc/kGYXA9Fm0ihmpMXGPQmkFjgvWVIv38e6Q27zun hf0MIwQI2H0kEBarer6VIRiShJ2W87vlZgRn9iwk3JUrxIYik9oY6eHt7mUe46+i8UTb WjGQ== X-Gm-Message-State: ALoCoQksymJK3zmD2RyRY1kagWgoKGVg5EJdSBxPhI6YgZzVFzwiE6fW0HQr1lBfGiaGsf4abqZ4 X-Received: by 10.112.219.200 with SMTP id pq8mr4581935lbc.7.1432245285352; Thu, 21 May 2015 14:54:45 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.204.198 with SMTP id la6ls458939lac.91.gmail; Thu, 21 May 2015 14:54:45 -0700 (PDT) X-Received: by 10.152.28.97 with SMTP id a1mr3962612lah.9.1432245285174; Thu, 21 May 2015 14:54:45 -0700 (PDT) Received: from mail-lb0-f176.google.com (mail-lb0-f176.google.com. [209.85.217.176]) by mx.google.com with ESMTPS id o5si62060lao.159.2015.05.21.14.54.45 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 21 May 2015 14:54:45 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.217.176 as permitted sender) client-ip=209.85.217.176; Received: by lbbqq2 with SMTP id qq2so372600lbb.3 for ; Thu, 21 May 2015 14:54:45 -0700 (PDT) X-Received: by 10.112.182.4 with SMTP id ea4mr1870812lbc.35.1432245285066; Thu, 21 May 2015 14:54:45 -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 hn6csp893357lbb; Thu, 21 May 2015 14:54:43 -0700 (PDT) X-Received: by 10.70.41.165 with SMTP id g5mr9339709pdl.143.1432245281765; Thu, 21 May 2015 14:54:41 -0700 (PDT) Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id s14si207868pdi.38.2015.05.21.14.54.38; Thu, 21 May 2015 14:54:41 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-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 S1161180AbbEUVxk (ORCPT + 28 others); Thu, 21 May 2015 17:53:40 -0400 Received: from mail-wi0-f182.google.com ([209.85.212.182]:35707 "EHLO mail-wi0-f182.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1161127AbbEUVx2 (ORCPT ); Thu, 21 May 2015 17:53:28 -0400 Received: by wicmx19 with SMTP id mx19so29098529wic.0 for ; Thu, 21 May 2015 14:53:27 -0700 (PDT) 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 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 v3 06/10] ASoC: qcom: add bit map to track static dma channel allocations 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> Sender: linux-kernel-owner@vger.kernel.org Precedence: list List-ID: X-Mailing-List: linux-kernel@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.176 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 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]; };