Received: by 2002:a05:6a10:7420:0:0:0:0 with SMTP id hk32csp831023pxb; Thu, 17 Feb 2022 16:03:13 -0800 (PST) X-Google-Smtp-Source: ABdhPJxBTRmBI5fOlhwGIooL6TrnZpM9n/e8zvK8WnRNLo+fUNenl54gSzIolRTvXye6/7/tF1ej X-Received: by 2002:a17:90b:2484:b0:1b9:a8f6:182f with SMTP id nt4-20020a17090b248400b001b9a8f6182fmr9725940pjb.203.1645142593158; Thu, 17 Feb 2022 16:03:13 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1645142593; cv=none; d=google.com; s=arc-20160816; b=Up86avow90RNxHzZ7R7nYk1l8cQ+OFFwF7nvttzT2sCa32nh4Jp/giRH/F55/eSOan Gfk0RyWV0olZVcJMxJKqjua41Avq+fRzyXFP1XX43ikZ0oy50Mqh6x4MgwdOcG/YUu/1 xRhBDEGHly02iYq73UzTiZPyfo9idVjrW/vMksmyrUGD8Da+5X11PtAmZNjx1STdeFnb lwo3QqopPSbndUFSBgjDjNGJNEoPkhodYbmhv/rHCdbJ1+Zu3zAGktLkE8Ys+K/4G9L5 MvdcOgLLuW+l+i4b4H4XdgfpeKrhVBMfGxoACLNPSwtktPI5CcSPsNwKuLFxuasbMIOn /z0A== 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=M+doG4hOkesdbvT8ytk1W2x52hbEiy5SqUAs3PiTxWs=; b=YzXfZ5yhYb+zFm9ankgRXxnesJCmyQKE1Pp2fckn3iccAOYQ8S8vd2IBYcZXdGoy7R zC62LEfOIMB09App7rgleDOs7QSVH6wQr7Okw8Ybg94cGSgnIpSr/43ANvmSPYqYbIRC tpcICjBBG8CSRqOV7G/0krgArMkXnFzPNZ6/nvyg9ZIMTXzvPv2+Iv4OnLnPung+EQHh EYtzdnrV+laUOb0pZpqnnzS4551htonHACBshX5JjugciYC8c33QPhp/J1MNfgui9IHh Pe0THDyN4imGjkyHCz387clxlsDry9Xtj5HOYfa3w33nVKQ2YF5vomTMcXMbrmGTCzQn HZgg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=ajFOJekJ; 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=chromium.org Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id t36si1060793pfg.183.2022.02.17.16.03.12 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 17 Feb 2022 16:03:13 -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=@chromium.org header.s=google header.b=ajFOJekJ; 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=chromium.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 3E5743288B1; Thu, 17 Feb 2022 15:31:11 -0800 (PST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S245528AbiBQTx3 (ORCPT + 99 others); Thu, 17 Feb 2022 14:53:29 -0500 Received: from mxb-00190b01.gslb.pphosted.com ([23.128.96.19]:45346 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231487AbiBQTx1 (ORCPT ); Thu, 17 Feb 2022 14:53:27 -0500 Received: from mail-oi1-x229.google.com (mail-oi1-x229.google.com [IPv6:2607:f8b0:4864:20::229]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BA86C12E150 for ; Thu, 17 Feb 2022 11:53:12 -0800 (PST) Received: by mail-oi1-x229.google.com with SMTP id v25so782950oiv.2 for ; Thu, 17 Feb 2022 11:53:12 -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=M+doG4hOkesdbvT8ytk1W2x52hbEiy5SqUAs3PiTxWs=; b=ajFOJekJGOXYKnbIR0AGefnhQdw2TLlmHA+b7uKmBRNsNq/jFc4XFF4MnK/vW7GToR phKhASp9LCiozG918AR/TyIVQQ1cNfwdH9C062r2MJqEyS6n7fqiDXRB59yV1WSyqBEF 4Yupsavi+A8ybL/NfT6vOzUau4xa5t+rkHobQ= 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=M+doG4hOkesdbvT8ytk1W2x52hbEiy5SqUAs3PiTxWs=; b=NCickEQQHsib1hRt8K6S2qtA6wbye8inLbbE+ZpzZ3WN/+TH6G8HXm0LS1PllhdRIq kPPGqzUJwl76WTILm4KgQw3fW7eLjJWIpoQb1WJbdaX5Pc3IFKTTj7SB4Hv6RodEIsGa ROvN+LQRvfVrbYKXqROlw/z+ZmgC4fSn8GRj5bx0a6vjAvyldPv+SFFuMBaTBk8gdO+6 qa7MC2iAeMnZA9mpoSQMYFv6xAWIr5EKii//hka++lyPGU3m1QXy6YstojMRr0fpsKQM ZhLfDjQr+447WsTONWBHOZs3Mg5ijvn9IxTrktsMsDqktIv02REI5JkBiRQMegE4mA5G nPkA== X-Gm-Message-State: AOAM530dNsQe82TG15lTy3WGqeKMcPc9XUaGZHV0rfCiieoUI7ckoorG 9GtQxPEvM+MflSYuD76Br2NDuY9CoYvZxXLV0KZh1A== X-Received: by 2002:a05:6808:b2f:b0:2cf:9af3:1687 with SMTP id t15-20020a0568080b2f00b002cf9af31687mr1800955oij.112.1645127592064; Thu, 17 Feb 2022 11:53:12 -0800 (PST) Received: from 753933720722 named unknown by gmailapi.google.com with HTTPREST; Thu, 17 Feb 2022 11:53:11 -0800 MIME-Version: 1.0 In-Reply-To: References: <1644850708-11099-1-git-send-email-quic_srivasam@quicinc.com> <1644850708-11099-9-git-send-email-quic_srivasam@quicinc.com> From: Stephen Boyd User-Agent: alot/0.10 Date: Thu, 17 Feb 2022 11:53:11 -0800 Message-ID: Subject: Re: [RESEND v13 08/10] ASoC: qcom: Add lpass CPU driver for codec dma control 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.0 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,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 Quoting Srinivasa Rao Mandadapu (2022-02-16 01:42:42) > > On 2/15/2022 7:03 AM, Stephen Boyd wrote: > Thanks for your time Stephen!!! > > Quoting Srinivasa Rao Mandadapu (2022-02-14 06:58:26) > >> + struct snd_soc_pcm_runtime *soc_runtime = asoc_substream_to_rtd(substream); > >> + struct lpaif_dmactl *dmactl; > >> + int ret = 0, id; > >> + > >> + switch (cmd) { > >> + case SNDRV_PCM_TRIGGER_START: > >> + case SNDRV_PCM_TRIGGER_RESUME: > >> + case SNDRV_PCM_TRIGGER_PAUSE_RELEASE: > >> + __lpass_platform_codec_intf_init(dai, substream); > >> + break; > >> + case SNDRV_PCM_TRIGGER_STOP: > >> + case SNDRV_PCM_TRIGGER_SUSPEND: > >> + case SNDRV_PCM_TRIGGER_PAUSE_PUSH: > >> + __lpass_get_dmactl_handle(substream, dai, &dmactl, &id); > >> + if (!dmactl) { > >> + dev_err(soc_runtime->dev, "failed to get dmactl handle\n"); > > This same message is in many places. I really hope it never gets printed > > because finding out which line it got printed at is going to be > > impossible. > Okay. Will add function name in each print. Are they useful prints at all? They seem like development prints that won't trigger after the driver is developed. Why can't we just remove them?