Received: by 2002:a05:6a10:1a4d:0:0:0:0 with SMTP id nk13csp6224594pxb; Mon, 14 Feb 2022 19:22:18 -0800 (PST) X-Google-Smtp-Source: ABdhPJy/5k6AaIIMFQwDptgu2OGn7BMqONtF8QnRJSQ+T7pb3Uj7R234F47xaP7IfKWs3dA+7gb5 X-Received: by 2002:a17:907:168a:: with SMTP id hc10mr561431ejc.621.1644895338684; Mon, 14 Feb 2022 19:22:18 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1644895338; cv=none; d=google.com; s=arc-20160816; b=r0wS9FH+uHJ8sz3ed/3PEMQ/ScfGQo8mBPxYqcI3R3kP0wiKXHBTPnE1sgkgCu0okL fk7hvjDKPEzg9NA6aj2EI+dCDugan4z3rLLfAY8dQ7vXHBRFpRkosy2CkaE2g8SGJ+/Y LgfQFes8xIdiTV3zzLmb/zFTOE438ozsTcRYHMv4oTtPGZN0uh+I9l+YoqEfvA7UtNja 3Z+wycOpo9MdsnMyP7cM/qa9KkVrqP80y3II7YpKSVpQfF0XLU+bbdR2FpatycIuESWb 7MChs15JkqJEi2ak4GbOiGLwBuCSN6W9V/inLSd+E/BRbIkSywn6i9I3QBNuyW35RFFI lSDg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:user-agent:from :references:in-reply-to:mime-version:dkim-signature; bh=RgimEFXarng+CHJGO74owebgIrlsqSjainYTmRZCU0k=; b=OwoH1BvjLSzCLa17h59zucnvLm6nrT67abOUPvZyNrVt6ySqwoN/jgSEfsYDGPnfmI cIWqm4faMW756w/V8d8d0mSuO5u05Rf4eylBupvKd5lzDc/PPWAeMyUk3cuJeAHNKu57 OSEtRLW1KALnqRNFHd1MOzC+p76l4pXLZGSsXEwvf7D1btQBAjb/B6K17nQwlfpYBrVO Zw8Lg5wqDuCfo56ACU2utzMyrlL6zxSrpsPp3h+85ANRtyY/YXR4JAyPq6XbV9MKy64g nvVwlR76ig71AGqieIdAJSGj2L5VAl/6ThbpLCRdhkSsK8j+bcMBmL81Q9IIBMy3fTCT eXLA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b="S/NpqL9/"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id di2si26505820ejc.62.2022.02.14.19.21.51; Mon, 14 Feb 2022 19:22:18 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b="S/NpqL9/"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232958AbiBOBFv (ORCPT + 99 others); Mon, 14 Feb 2022 20:05:51 -0500 Received: from mxb-00190b01.gslb.pphosted.com ([23.128.96.19]:49024 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232115AbiBOBFu (ORCPT ); Mon, 14 Feb 2022 20:05:50 -0500 Received: from mail-ot1-x329.google.com (mail-ot1-x329.google.com [IPv6:2607:f8b0:4864:20::329]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 27358CE5AB for ; Mon, 14 Feb 2022 17:05:41 -0800 (PST) Received: by mail-ot1-x329.google.com with SMTP id x52-20020a05683040b400b0059ea92202daso12749692ott.7 for ; Mon, 14 Feb 2022 17:05:41 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=mime-version:in-reply-to:references:from:user-agent:date:message-id :subject:to:cc; bh=RgimEFXarng+CHJGO74owebgIrlsqSjainYTmRZCU0k=; b=S/NpqL9/qAIdkV/WGVMxj+X9fr42dFGU/nVFDcntxJriCJu2R236PSnfzJLMvfHkJQ GHesSnaYC1+XSqwVlvff8Xz1DyEr6bh2eNgKCL3hSPPuKOArzF4kLlt+gO8CtqrtGfAc 3gMh4sbT3GZIwl/oth65y3m2W+4cnY0z7jiOk= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:in-reply-to:references:from :user-agent:date:message-id:subject:to:cc; bh=RgimEFXarng+CHJGO74owebgIrlsqSjainYTmRZCU0k=; b=azZG/CbG7rw10LnuAKCqwZPqfgCu86X2TFt7Y2qdrUIXQMM4JesFb+z8PrNBOiyTY6 o6Y1OkZgP82DSOOMAuDSmJOSpnnqZfts+BMEqo7XM6mgXsEffkkpAxGoV6pK7yHVSaSs LKpHEIBQvOHVQq5ponv8ZkNqcZlhDiSJxw+uc6MPZUB1t2T0HXjjeG3OEAcU0IV7LY8F d1/zVJ9/NEhgpuukCFww43XbMxDVwgv5Cnt860Fa0KronDB+7fhf+noJykGyzvCmTVR7 rkBKR3H/OocTOCfW4PoYXatkINRiMoXUt8pzPra6Hlo3jLkqxMVpfj9uM9yQ3Vo6mtcm ZY5Q== X-Gm-Message-State: AOAM532vp5jy0isY2Jgw+QhQTTitSFEYwYpe6j7TkyTUDOydCi5vrFQj JQX4f1oyKRQBYr65ucZCbzAVxZBiRWBwKOHefc/jTQ== X-Received: by 2002:a05:6830:1d8f:: with SMTP id y15mr585565oti.77.1644887140462; Mon, 14 Feb 2022 17:05:40 -0800 (PST) Received: from 753933720722 named unknown by gmailapi.google.com with HTTPREST; Mon, 14 Feb 2022 17:05:40 -0800 MIME-Version: 1.0 In-Reply-To: <1644850708-11099-4-git-send-email-quic_srivasam@quicinc.com> References: <1644850708-11099-1-git-send-email-quic_srivasam@quicinc.com> <1644850708-11099-4-git-send-email-quic_srivasam@quicinc.com> From: Stephen Boyd User-Agent: alot/0.10 Date: Mon, 14 Feb 2022 17:05:39 -0800 Message-ID: Subject: Re: [RESEND v13 03/10] ASoC: qcom: lpass: Add dma fields for codec dma lpass interface To: Srinivasa Rao Mandadapu , agross@kernel.org, alsa-devel@alsa-project.org, bgoswami@codeaurora.org, bjorn.andersson@linaro.org, broonie@kernel.org, devicetree@vger.kernel.org, judyhsiao@chromium.org, lgirdwood@gmail.com, linux-arm-msm@vger.kernel.org, linux-kernel@vger.kernel.org, perex@perex.cz, quic_plai@quicinc.com, robh+dt@kernel.org, rohitkr@codeaurora.org, srinivas.kandagatla@linaro.org, tiwai@suse.com Cc: Venkata Prasad Potturu Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-2.2 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Quoting Srinivasa Rao Mandadapu (2022-02-14 06:58:21) > Add lpass interface memebers to support audio path over codec dma. > > Signed-off-by: Srinivasa Rao Mandadapu > Co-developed-by: Venkata Prasad Potturu > Signed-off-by: Venkata Prasad Potturu > Reviewed-by: Srinivas Kandagatla > --- > sound/soc/qcom/lpass.h | 116 +++++++++++++++++++++++++++++++++++++++++++++++++ > 1 file changed, 116 insertions(+) > > diff --git a/sound/soc/qcom/lpass.h b/sound/soc/qcom/lpass.h > index f0d21cd..7cc3763 100644 > --- a/sound/soc/qcom/lpass.h > +++ b/sound/soc/qcom/lpass.h > @@ -234,12 +294,66 @@ struct lpass_variant { > struct reg_field wrdma_enable; > struct reg_field wrdma_dyncclk; > > + /*CDC RXTX RD_DMA */ Please add space after /* > + struct reg_field rxtx_rdma_intf; > + struct reg_field rxtx_rdma_bursten; > + struct reg_field rxtx_rdma_wpscnt; > + struct reg_field rxtx_rdma_fifowm; > + struct reg_field rxtx_rdma_enable; > + struct reg_field rxtx_rdma_dyncclk; > + struct reg_field rxtx_rdma_burst8; > + struct reg_field rxtx_rdma_burst16; > + struct reg_field rxtx_rdma_dynburst; > + struct reg_field rxtx_rdma_codec_enable; > + struct reg_field rxtx_rdma_codec_pack; > + struct reg_field rxtx_rdma_codec_intf; > + struct reg_field rxtx_rdma_codec_fs_sel; > + struct reg_field rxtx_rdma_codec_ch; > + struct reg_field rxtx_rdma_codec_fs_delay; > + > + /*CDC RXTX WR_DMA */ Same > + struct reg_field rxtx_wrdma_intf; > + struct reg_field rxtx_wrdma_bursten; > + struct reg_field rxtx_wrdma_wpscnt; > + struct reg_field rxtx_wrdma_fifowm; > + struct reg_field rxtx_wrdma_enable; > + struct reg_field rxtx_wrdma_dyncclk; > + struct reg_field rxtx_wrdma_burst8; > + struct reg_field rxtx_wrdma_burst16; > + struct reg_field rxtx_wrdma_dynburst; > + struct reg_field rxtx_wrdma_codec_enable; > + struct reg_field rxtx_wrdma_codec_pack; > + struct reg_field rxtx_wrdma_codec_intf; > + struct reg_field rxtx_wrdma_codec_fs_sel; > + struct reg_field rxtx_wrdma_codec_ch; > + struct reg_field rxtx_wrdma_codec_fs_delay; > + > + /*CDC VA WR_DMA */ > + struct reg_field va_wrdma_intf; > + struct reg_field va_wrdma_bursten; > + struct reg_field va_wrdma_wpscnt; > + struct reg_field va_wrdma_fifowm; > + struct reg_field va_wrdma_enable; > + struct reg_field va_wrdma_dyncclk; > + struct reg_field va_wrdma_burst8; > + struct reg_field va_wrdma_burst16; > + struct reg_field va_wrdma_dynburst; > + struct reg_field va_wrdma_codec_enable; > + struct reg_field va_wrdma_codec_pack; > + struct reg_field va_wrdma_codec_intf; > + struct reg_field va_wrdma_codec_fs_sel; > + struct reg_field va_wrdma_codec_ch; > + struct reg_field va_wrdma_codec_fs_delay; > + > /** This shouldn't have two stars as it isn't kerneldoc > * on SOCs like APQ8016 the channel control bits start > * at different offset to ipq806x > **/ > u32 dmactl_audif_start; > u32 wrdma_channel_start; > + u32 rxtx_wrdma_channel_start; > + u32 va_wrdma_channel_start; > + > /* SOC specific initialization like clocks */ > int (*init)(struct platform_device *pdev); > int (*exit)(struct platform_device *pdev); > @@ -251,10 +365,12 @@ struct lpass_variant { > int num_dai; > const char * const *dai_osr_clk_names; > const char * const *dai_bit_clk_names; > + const char * const *cdc_dma_clk_names; > > /* SOC specific clocks configuration */ > const char **clk_name; > int num_clks; > + int cdc_dma_num_clks; Why not size_t? Negative numbers are useful here?