Received: by 2002:a05:6a10:7420:0:0:0:0 with SMTP id hk32csp565227pxb; Tue, 15 Feb 2022 22:14:39 -0800 (PST) X-Google-Smtp-Source: ABdhPJzuErtXwbk3snk/jsXFXoj55m3uyIHhnnN0cFsF6NErNg8oAOf9kbSpLkTGAqtBVneBL2ce X-Received: by 2002:a17:902:7b8d:b0:14b:8884:b4ad with SMTP id w13-20020a1709027b8d00b0014b8884b4admr980490pll.120.1644992079058; Tue, 15 Feb 2022 22:14:39 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1644992079; cv=none; d=google.com; s=arc-20160816; b=sT3XFoeaZZQEqAmK6maQ2malJ77zdGWmgoF2hR1GtFb3H00hDDllmxGcrLBbdDLn7E EnThM4kvoTfiLKQtcKpYdTYh5SRriSWA8ubG+0wG7qAXYH9lUJYL7XU6WTrLW/+rQDnx VI6VptzIJS+3qKtawzrcDe/uV3m1ajNcmoTiMFM10J8848IXmjNuf+E48V9D6cQ/QNQI xC+lDK7+24HK2/z02tM7D2xRrwAMcTVnH5Zbt0gHUxBxhSoVk5jT/INpMipY3COqgjKL aWxMBGyuEWbk84iQlwlDHvnOwN70K83wdpIcjsYTvZq7443VsftFBWfW8cxKWhbF4/KS 4hIg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-language:content-transfer-encoding :in-reply-to:mime-version:user-agent:date:message-id:organization :from:references:cc:to:subject:dkim-signature; bh=ylavwFYQD6KGHhXFsIL//yJI76kYPD2M2lrrfVfYUGw=; b=y1uMohsfueQ0t2BWWeCf/rDtM0RpQRiDEauL9RvtxtMmtLf9gJk3MFfB1vj2Dn1TTd Elcn5dA2Cgr2x+fV2Jt2Ya80hQGchWe+Y5WBOuUZJ0nurBaZDpU56Ug6HR8uOJ7K4ekn 3EWDBn/vYsl+5kw0C+qIMPrQPJXttHpljGlprgdkX9McZVaTrrBsYcPw0dC4N7YSkLUl fWVi96J3RGlWPPTcrR/VzLz6U/gdxJ1uCxcLStZM8Hkra+owUgDJp2zcNIX8RmuHFvrC cGJOeB9R1IvrMgy3iIaMr856zWIZZiaYrSQvz3VhBEDdMf9brSSdhRbNdzj2Na3a7uUS MBOA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcdkim header.b=CFY+xCOm; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=quicinc.com Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id z6si37595832pfe.233.2022.02.15.22.14.38 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 15 Feb 2022 22:14:39 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcdkim header.b=CFY+xCOm; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=quicinc.com Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id ABFFA18E106; Tue, 15 Feb 2022 22:13:33 -0800 (PST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1344571AbiBPFOz (ORCPT + 99 others); Wed, 16 Feb 2022 00:14:55 -0500 Received: from mxb-00190b01.gslb.pphosted.com ([23.128.96.19]:33418 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1344556AbiBPFOx (ORCPT ); Wed, 16 Feb 2022 00:14:53 -0500 Received: from alexa-out-sd-01.qualcomm.com (alexa-out-sd-01.qualcomm.com [199.106.114.38]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 77E77F9570; Tue, 15 Feb 2022 21:14:41 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=quicinc.com; i=@quicinc.com; q=dns/txt; s=qcdkim; t=1644988481; x=1676524481; h=subject:to:cc:references:from:message-id:date: mime-version:in-reply-to:content-transfer-encoding; bh=ylavwFYQD6KGHhXFsIL//yJI76kYPD2M2lrrfVfYUGw=; b=CFY+xCOmeY3nuwQpj8kWQ311B21R4Rtb6KjM2BEdcoie80TD0w6A7pxT FbBP5aqYCdgO6OGCTNS2GfmPanYH3bt1wCVmsOArwbMEYvIicowVYwvDG 7MqysXt2TUkjl55TKoWel1FRpFVKyF190aGLtijbVOwBlnAFQn3EMkxkD Q=; Received: from unknown (HELO ironmsg02-sd.qualcomm.com) ([10.53.140.142]) by alexa-out-sd-01.qualcomm.com with ESMTP; 15 Feb 2022 21:14:40 -0800 X-QCInternal: smtphost Received: from nasanex01c.na.qualcomm.com ([10.47.97.222]) by ironmsg02-sd.qualcomm.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 15 Feb 2022 21:14:33 -0800 Received: from nalasex01a.na.qualcomm.com (10.47.209.196) by nasanex01c.na.qualcomm.com (10.47.97.222) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.986.15; Tue, 15 Feb 2022 21:14:32 -0800 Received: from [10.216.55.237] (10.80.80.8) by nalasex01a.na.qualcomm.com (10.47.209.196) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.922.19; Tue, 15 Feb 2022 21:14:27 -0800 Subject: Re: [RESEND v13 05/10] ASoC: qcom: Add register definition for codec rddma and wrdma To: Stephen Boyd , , , , , , , , , , , , , , , , CC: Venkata Prasad Potturu References: <1644850708-11099-1-git-send-email-quic_srivasam@quicinc.com> <1644850708-11099-6-git-send-email-quic_srivasam@quicinc.com> From: Srinivasa Rao Mandadapu Organization: Qualcomm Message-ID: <13d0bb5c-4f63-12a0-3c2c-c2d0e0211026@quicinc.com> Date: Wed, 16 Feb 2022 10:44:24 +0530 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:78.0) Gecko/20100101 Thunderbird/78.14.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset="utf-8"; format=flowed Content-Transfer-Encoding: 7bit Content-Language: en-US X-Originating-IP: [10.80.80.8] X-ClientProxiedBy: nasanex01b.na.qualcomm.com (10.46.141.250) To nalasex01a.na.qualcomm.com (10.47.209.196) X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,NICE_REPLY_A,RDNS_NONE,SPF_HELO_NONE, T_SCC_BODY_TEXT_LINE autolearn=no 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 On 2/15/2022 6:42 AM, Stephen Boyd wrote: Thanks for your time Stephen!!! > 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/ Okay. Will remove and reword the commit message. > >> 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 Okay. will remove it. > >> + return false; >> + } > return false; > > would be shorter. Okay. will change it. > >> +} >> + >> +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. Okay. > >> +} >> + >> struct lpaif_i2sctl { >> struct regmap_field *loopback; >> struct regmap_field *spken;