From patchwork Wed May 13 12:02:41 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Srinivas Kandagatla X-Patchwork-Id: 48435 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-wi0-f200.google.com (mail-wi0-f200.google.com [209.85.212.200]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 07E13214A1 for ; Wed, 13 May 2015 12:02:54 +0000 (UTC) Received: by wiz9 with SMTP id 9sf10597210wiz.3 for ; Wed, 13 May 2015 05:02:53 -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=dQegFoeKPH+nTtAG/38mXx94p9RMCmFlz2eEOaaKxXw=; b=YQfDD2beTz3QU3aKx6id7pxyXzzN17dD4X5xWIQpCTTfJHvWPYP+/Zp+NxP0WuUUXS pNA3O60sRhDatDnOClT8AGNe7Icg7dZ8CJCzppX9iPNutz69NBYBL/+CjDKeEK8f+ZEa 6Kc4wJv3H8QgDhIcMCbNRYJGWjXdagSPe2K9yq7j6KSzRyE8XyxTHnLAzEOHC8gD+3D7 ZGKlTZyhv8TFAod09NErjzKkoipKUMIyos8Dh5IbZIjZlVr83Bg+uzSoKimxA+ccvFFk E49TWsTVPFWdyt0IcrDYt7PoNaoAt53O7qV9Sopi6EBk+XtmTy03xxwgAZXiv0ZMUbAK ZX7w== X-Gm-Message-State: ALoCoQmWpOgWktj8e4m2eNYzqwWTMxBR1G20FQWhisQE4LbaK4bjWXm3TyCoVaaHRpgUUFTMo1m2 X-Received: by 10.180.211.168 with SMTP id nd8mr5214941wic.4.1431518573346; Wed, 13 May 2015 05:02:53 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.163.65 with SMTP id yg1ls188445lab.26.gmail; Wed, 13 May 2015 05:02:53 -0700 (PDT) X-Received: by 10.152.246.34 with SMTP id xt2mr15816010lac.110.1431518573193; Wed, 13 May 2015 05:02:53 -0700 (PDT) Received: from mail-la0-f50.google.com (mail-la0-f50.google.com. [209.85.215.50]) by mx.google.com with ESMTPS id pz9si12257060lbb.92.2015.05.13.05.02.53 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 13 May 2015 05:02:53 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.215.50 as permitted sender) client-ip=209.85.215.50; Received: by laat2 with SMTP id t2so27600029laa.1 for ; Wed, 13 May 2015 05:02:53 -0700 (PDT) X-Received: by 10.152.29.161 with SMTP id l1mr15425684lah.76.1431518573065; Wed, 13 May 2015 05:02:53 -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 hn6csp487302lbb; Wed, 13 May 2015 05:02:51 -0700 (PDT) X-Received: by 10.70.40.164 with SMTP id y4mr36893577pdk.25.1431518570962; Wed, 13 May 2015 05:02:50 -0700 (PDT) Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id w4si26831071pdj.155.2015.05.13.05.02.50; Wed, 13 May 2015 05:02:50 -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 S964901AbbEMMCs (ORCPT + 5 others); Wed, 13 May 2015 08:02:48 -0400 Received: from mail-wi0-f174.google.com ([209.85.212.174]:38071 "EHLO mail-wi0-f174.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S964891AbbEMMCq (ORCPT ); Wed, 13 May 2015 08:02:46 -0400 Received: by wicnf17 with SMTP id nf17so52799183wic.1 for ; Wed, 13 May 2015 05:02:45 -0700 (PDT) X-Received: by 10.194.71.208 with SMTP id x16mr37829934wju.129.1431518565353; Wed, 13 May 2015 05:02:45 -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 g5sm32608090wjq.6.2015.05.13.05.02.43 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 13 May 2015 05:02:44 -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 v1 07/13] ASoC: qcom: add dma channel control offset to variant data Date: Wed, 13 May 2015 13:02:41 +0100 Message-Id: <1431518561-7582-1-git-send-email-srinivas.kandagatla@linaro.org> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1431518302-7139-1-git-send-email-srinivas.kandagatla@linaro.org> References: <1431518302-7139-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.215.50 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 ability to pass dma channel control bits start offset, which differ in differnet qcom SOCs. On apq8016 dma channel control bits start after an offset of 1. Signed-off-by: Srinivas Kandagatla --- sound/soc/qcom/lpass-platform.c | 2 +- sound/soc/qcom/lpass.h | 5 +++++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/sound/soc/qcom/lpass-platform.c b/sound/soc/qcom/lpass-platform.c index fc08891..8ab0ac1 100644 --- a/sound/soc/qcom/lpass-platform.c +++ b/sound/soc/qcom/lpass-platform.c @@ -91,7 +91,7 @@ static int lpass_platform_pcmops_hw_params(struct snd_pcm_substream *substream, unsigned int channels = params_channels(params); unsigned int regval; int bitwidth; - int ret, rdma_port = pcm_data->i2s_port; + int ret, rdma_port = pcm_data->i2s_port + v->rdmactl_audif_start; bitwidth = snd_pcm_format_width(format); if (bitwidth < 0) { diff --git a/sound/soc/qcom/lpass.h b/sound/soc/qcom/lpass.h index 75e9370..023170a 100644 --- a/sound/soc/qcom/lpass.h +++ b/sound/soc/qcom/lpass.h @@ -61,6 +61,11 @@ struct lpass_variant { u32 rdma_reg_stride; u32 rdma_channels; + /** + * on SOCs like APQ8016 the channel control bits start + * at different offset to ipq806x + **/ + u32 rdmactl_audif_start; /* SOC specific intialization like clocks */ int (*init)(struct platform_device *pdev); int (*exit)(struct platform_device *pdev);