Received: by 2002:a05:6a10:7420:0:0:0:0 with SMTP id hk32csp3424030pxb; Sun, 20 Feb 2022 19:42:41 -0800 (PST) X-Google-Smtp-Source: ABdhPJxjSHEHP/Gzd6S43AxJT9hxRkis9WTKDzy0D4ZGvBi3K62CpJG/Mmwoks/70eB5yiPzQ7+x X-Received: by 2002:a63:70b:0:b0:373:9e98:d8f9 with SMTP id 11-20020a63070b000000b003739e98d8f9mr14494983pgh.242.1645414961726; Sun, 20 Feb 2022 19:42:41 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1645414961; cv=none; d=google.com; s=arc-20160816; b=f9Cch+0jaC9QaFANd0ITvVZgwdzdclkQEzPzyBvDkfcBjizh0phfQbhdn9N/qRyxPk nBuFhAjZ+WOPd82QVbe6fVXonGxaxTMT0uYxBMKVdrlYU05dS4uXgKWqT6DqgaxM1Rh1 SrdyN4Fi+g2NcEonD0CxjSEAaq148FlBF/WM3D252S4X8D99yazkWQh4K0cbgjwCIp1n eDOyDT4c7ZShGGsWNp6ntnFKPzbThBur5YdrIvRfM6uQPppul1+VYd8qa6qYBOjEZaIS kTRT3fxl2hHpJjiqOdLuD00GaYr/kEJg31hStnu2qbDAGFmMVoxPvDSywL7xD11O4nB4 jyCg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to :organization:from:references:cc:to:content-language:subject :user-agent:mime-version:date:message-id:dkim-signature; bh=OEri4uDqfVq3Sq55bw1JpjblsjiHhv7blHvy92mJyQM=; b=m+excohw/Xdx2oedfx59oOWokxDkTYeOQFoX8JnMM+5qa5dZYOHMjNr9497ZCldnoj q/aPQLds+E3WPbW7Bu6Z/mRHe2Q8LDzXBH20EqDcTU4Hf0oNquAR99QTkruQjOf3TYrI HaOQswiu70uCR7Gt+IgsD7it/M6Pm0EHLRwy5lZCHqxMkUw0QGAp3dMcFukyvyplqqsy TVPhw2pOYaX0KSR4pLNnedfxd2+SJKYajUIlnvAtGhYdZK7amEjKHGKI6udg7w10WyR5 TY/46KMS/qYBtmKKSTpzk6JD5ezeqNCQs2KPy+p6NJqb9TTWOovHdnwRhSaScrw3zAEn 6lsA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcdkim header.b=kWTI+FBM; 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=quicinc.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id b21si7653005pgk.385.2022.02.20.19.42.26; Sun, 20 Feb 2022 19:42:41 -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=@quicinc.com header.s=qcdkim header.b=kWTI+FBM; 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=quicinc.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S243013AbiBSS5Q (ORCPT + 99 others); Sat, 19 Feb 2022 13:57:16 -0500 Received: from mxb-00190b01.gslb.pphosted.com ([23.128.96.19]:42846 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236969AbiBSS5N (ORCPT ); Sat, 19 Feb 2022 13:57:13 -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 D439C488BE; Sat, 19 Feb 2022 10:56:53 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=quicinc.com; i=@quicinc.com; q=dns/txt; s=qcdkim; t=1645297013; x=1676833013; h=message-id:date:mime-version:subject:to:cc:references: from:in-reply-to:content-transfer-encoding; bh=OEri4uDqfVq3Sq55bw1JpjblsjiHhv7blHvy92mJyQM=; b=kWTI+FBMYB1yp11DnYtcBWgtIFFCEOYbhKYsMKgOPBzz5pWJ8sRbS9Xb uSx7qW640h5vwXw7ZibsDTLmZyyaIFmvJabVOsq3sIg+dQcKVJsdZiw9Z Svsu4IOYmlYldLI6bjnTE8+cYv3GrQ0KiaozT/SSqGVlL0hRa3qkCPPsX s=; Received: from unknown (HELO ironmsg02-sd.qualcomm.com) ([10.53.140.142]) by alexa-out-sd-01.qualcomm.com with ESMTP; 19 Feb 2022 10:56:53 -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; 19 Feb 2022 10:56:52 -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; Sat, 19 Feb 2022 10:56:52 -0800 Received: from [10.216.20.52] (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.986.15; Sat, 19 Feb 2022 10:56:45 -0800 Message-ID: Date: Sun, 20 Feb 2022 00:26:42 +0530 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:91.0) Gecko/20100101 Thunderbird/91.6.1 Subject: Re: [RESEND v13 08/10] ASoC: qcom: Add lpass CPU driver for codec dma control Content-Language: en-US To: Stephen Boyd , , , , , , , , , , , , , , , , CC: Venkata Prasad Potturu References: <1644850708-11099-1-git-send-email-quic_srivasam@quicinc.com> <1644850708-11099-9-git-send-email-quic_srivasam@quicinc.com> From: "Srinivasa Rao Mandadapu (Temp)" Organization: Qualcomm In-Reply-To: Content-Type: text/plain; charset="UTF-8"; format=flowed Content-Transfer-Encoding: 7bit X-Originating-IP: [10.80.80.8] X-ClientProxiedBy: nasanex01a.na.qualcomm.com (10.52.223.231) To nalasex01a.na.qualcomm.com (10.47.209.196) X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A,RCVD_IN_DNSWL_MED, 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 On 2/18/2022 1:23 AM, Stephen Boyd wrote: Thanks for Your time Stephen!!! > 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? Okay. Will remove prints.