Received: by 2002:a05:6a10:1a4d:0:0:0:0 with SMTP id nk13csp6376738pxb; Tue, 15 Feb 2022 00:44:51 -0800 (PST) X-Google-Smtp-Source: ABdhPJyjyFGmK9tMXbeJOYVj41hZnPK+4b02e9cpov03uAZemXNF9QYTWoSgJsGukKhyGRw9qfh1 X-Received: by 2002:a17:90b:4a4b:: with SMTP id lb11mr3148739pjb.81.1644914691046; Tue, 15 Feb 2022 00:44:51 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1644914691; cv=none; d=google.com; s=arc-20160816; b=V5UHsXN7pFB6njShVqmuDXAb8onyI3PgEfeYz88uAqWd7hDeuz8+vM0tO5gIq1PGqy QMxCVS9nU66QE1gsxKzW1p/unImhwOF+jJcNbrT+7+a951+MlfJEgR41METpQGof6z54 FaW3jSs0XBLx5trLtjaz84rI1DrEbQ2RAst1bjZ9yT5uSLT+istkp13uzJMfDkWsINUh syyY/P5JswQWm+v/M2h8iMq9+Rjb/7n0EsxATzrLbD87D/11QXrVaaFJ5tG7DUUT/UPq qzz2MFJYpGWOMtLJuD35XLsQ+fzXkTK+YPCQ46FAhRCqsRS6FLzBMfwPktadR0aQCmxg 636A== 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=2z0HLBtdwl7RuykFNoLcrOpeQoN2RrPQlxsn50U+srI=; b=Xw83BUyf5TmCYiZoWOFtwfDx8xDxZ1+ybhfNxPVPdQmCp5xC/rKKEUm5zyPe7IJdRg ZTkQu4w9hbyIQOsoNYfPyjtKTXo3EKvDPe2m2dSNV6nJnd9OPaZddeFfnh0KxarAQdMM 4e2EIGIFMwHoAaBMQ1zh5jh1vwn5NUVLwEixE1kOHqie1iE/vQmEdWxi1wFhn5Jwry8j vstdMOQGAajdSIaJwZQnYIpacJPjP7DU25BEMFpHyGJVPl89dSayBH10ioxVstv8hjC3 QTyeaDWZZKdf5NbA5Xg5mQ0MqWDaSZAzMxl2pRkGxFvC76F7cc3GLD3OywL9t+NZwg+x DkiA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=Q85Iy1x0; 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 p24si3441778plq.16.2022.02.15.00.44.36; Tue, 15 Feb 2022 00:44:51 -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=Q85Iy1x0; 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 S232984AbiBOBMS (ORCPT + 99 others); Mon, 14 Feb 2022 20:12:18 -0500 Received: from mxb-00190b01.gslb.pphosted.com ([23.128.96.19]:39566 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229445AbiBOBMR (ORCPT ); Mon, 14 Feb 2022 20:12:17 -0500 Received: from mail-oo1-xc2d.google.com (mail-oo1-xc2d.google.com [IPv6:2607:f8b0:4864:20::c2d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5539DDEBF for ; Mon, 14 Feb 2022 17:12:09 -0800 (PST) Received: by mail-oo1-xc2d.google.com with SMTP id c7-20020a4ad207000000b002e7ab4185d2so21428889oos.6 for ; Mon, 14 Feb 2022 17:12:09 -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=2z0HLBtdwl7RuykFNoLcrOpeQoN2RrPQlxsn50U+srI=; b=Q85Iy1x0nXlLnvvWd0qW9X3s9tgMAJ7AnlBSq3D89DE5VcsaJ25zy163dK52rAgG+C G1Rp6kBsRRKD5HB17M3DH8DPVV2g7hkKKTDgG9GLsFrH4GEKh57ytrF0L8TgjrWgWNpx beKuRv5pUE2ndVw+oZhC8NrzutWuu1E2niMDc= 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=2z0HLBtdwl7RuykFNoLcrOpeQoN2RrPQlxsn50U+srI=; b=NpdJc+9OTRg1/iwBJTn5iSie8GdpxG9YPaHVQXjUwIqFi3Ttsa60zNrAFWsBQHGCMJ WKiydENhzuBCc3hxZFm8TSqRgYv2U78QZZU99/RX/kkKgIxK0L057tJMaq2mvqBTHa/t eCvZyuuHOnFzwfrFNRC2+1PhsGhmw7nrb9/FTWAbKdZn9FqK5XKPbvasuzkOFJnfisGk mvG9QqkAwH8Fdl+elzLhFeWDCkxzXS/GYZyJ9CF0ipzw9qxWIEKKBjJL7jjAwlzG0fU9 t37FKDeCEUQagyUMII1MK50BJUHSDjdTK/4bYFysXdVGz5T/G7rRCROBiDaXJUzBYJa+ ciaQ== X-Gm-Message-State: AOAM531LvFjWxXlRuocyyvoN/X4sSTOkIgOcSHyNJpb5Ex9zNYPHfzp6 6nF0sMwzMTxhnvSNXWcpiRLstPsreYkgPpn6xSKwng== X-Received: by 2002:a05:6870:d413:: with SMTP id i19mr598159oag.54.1644887528729; Mon, 14 Feb 2022 17:12:08 -0800 (PST) Received: from 753933720722 named unknown by gmailapi.google.com with HTTPREST; Mon, 14 Feb 2022 17:12:08 -0800 MIME-Version: 1.0 In-Reply-To: <1644850708-11099-6-git-send-email-quic_srivasam@quicinc.com> References: <1644850708-11099-1-git-send-email-quic_srivasam@quicinc.com> <1644850708-11099-6-git-send-email-quic_srivasam@quicinc.com> From: Stephen Boyd User-Agent: alot/0.10 Date: Mon, 14 Feb 2022 17:12:08 -0800 Message-ID: Subject: Re: [RESEND v13 05/10] ASoC: qcom: Add register definition for codec rddma and wrdma 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=ham 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:23) > This patch adds register definitions for codec read dma and write dma git grep "This patch" -- Documentation/process/ > lpass interface. > > Signed-off-by: Srinivasa Rao Mandadapu > Co-developed-by: Venkata Prasad Potturu > Signed-off-by: Venkata Prasad Potturu > Reviewed-by: Srinivas Kandagatla > diff --git a/sound/soc/qcom/lpass.h b/sound/soc/qcom/lpass.h > index 7cc3763..e059c4a 100644 > --- a/sound/soc/qcom/lpass.h > +++ b/sound/soc/qcom/lpass.h > @@ -39,6 +39,29 @@ > return -EINVAL; \ > } while (0) > > +static inline bool is_cdc_dma_port(int dai_id) > +{ > + switch (dai_id) { > + case LPASS_CDC_DMA_RX0 ... LPASS_CDC_DMA_RX9: > + case LPASS_CDC_DMA_TX0 ... LPASS_CDC_DMA_TX8: > + case LPASS_CDC_DMA_VA_TX0 ... LPASS_CDC_DMA_VA_TX8: > + return true; > + default: Drop case > + return false; > + } return false; would be shorter. > +} > + > +static inline bool is_rxtx_cdc_dma_port(int dai_id) > +{ > + switch (dai_id) { > + case LPASS_CDC_DMA_RX0 ... LPASS_CDC_DMA_RX9: > + case LPASS_CDC_DMA_TX0 ... LPASS_CDC_DMA_TX8: > + return true; > + default: > + return false; > + } Same. > +} > + > struct lpaif_i2sctl { > struct regmap_field *loopback; > struct regmap_field *spken;