From patchwork Fri Mar 5 06:54:02 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Laxminath Kasam X-Patchwork-Id: 12117867 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-16.8 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER,INCLUDES_PATCH, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 92A3BC433E0 for ; Fri, 5 Mar 2021 06:55:31 +0000 (UTC) Received: from alsa0.perex.cz (alsa0.perex.cz [77.48.224.243]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 2A00865014 for ; Fri, 5 Mar 2021 06:55:29 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 2A00865014 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=codeaurora.org Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=alsa-devel-bounces@alsa-project.org Received: from alsa1.perex.cz (alsa1.perex.cz [207.180.221.201]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by alsa0.perex.cz (Postfix) with ESMTPS id ADD881791; Fri, 5 Mar 2021 07:54:37 +0100 (CET) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa0.perex.cz ADD881791 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=alsa-project.org; s=default; t=1614927327; bh=fF1nozdViuj27h8Jb/mcM6WqZ88MukIJMXWbzqT8G9s=; h=From:To:Subject:Date:Cc:List-Id:List-Unsubscribe:List-Archive: List-Post:List-Help:List-Subscribe:From; b=abcDtpZGRaGfOCEmnTxhpkOqcfEpDw/xBbVtfyPZsrd9eAWF7yYGJQ6zLlFj2QXUw WlG19G1DO5B6N+wK6dljaZXjuGFvZEAh2wWMMdEwh7mhTR/UK1pS0FEiOUIxmMZ+xW Q3EoDDuMIrKGuV2GW3mfKwSptp1vPDurEZVnfGrw= Received: from alsa1.perex.cz (localhost.localdomain [127.0.0.1]) by alsa1.perex.cz (Postfix) with ESMTP id 05FE4F80257; Fri, 5 Mar 2021 07:54:37 +0100 (CET) Received: by alsa1.perex.cz (Postfix, from userid 50401) id 1ACFAF8025E; Fri, 5 Mar 2021 07:54:35 +0100 (CET) Received: from m42-2.mailgun.net (m42-2.mailgun.net [69.72.42.2]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by alsa1.perex.cz (Postfix) with ESMTPS id 27A84F80121 for ; Fri, 5 Mar 2021 07:54:22 +0100 (CET) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa1.perex.cz 27A84F80121 Authentication-Results: alsa1.perex.cz; dkim=pass (1024-bit key) header.d=mg.codeaurora.org header.i=@mg.codeaurora.org header.b="Z8G/QspZ" DKIM-Signature: a=rsa-sha256; v=1; c=relaxed/relaxed; d=mg.codeaurora.org; q=dns/txt; s=smtp; t=1614927264; h=Message-Id: Date: Subject: Cc: To: From: Sender; bh=ldQPc9/+wzxWkV9+KehIYRq1/W79dUSqVgFXmJOPEdg=; b=Z8G/QspZ8F5LYL5wr1R0UEjup1qbkJw/F8R3+wTtU6any21R5f00Em2bTHIZHKw09r5Jq5zZ KrQI4uL8Qr2mqRuIAzcAApachsAsj1TkCSBC3zEbwWB4XIGKUMCp5gyDto7hEgFJrEKNFs2P y39Ml2FIfapeapbQR5OmUVYFhaA= X-Mailgun-Sending-Ip: 69.72.42.2 X-Mailgun-Sid: WyI4ZmE2ZSIsICJhbHNhLWRldmVsQGFsc2EtcHJvamVjdC5vcmciLCAiYmU5ZTRhIl0= Received: from smtp.codeaurora.org (ec2-35-166-182-171.us-west-2.compute.amazonaws.com [35.166.182.171]) by smtp-out-n04.prod.us-east-1.postgun.com with SMTP id 6041d59a64e0747df9ff4a23 (version=TLS1.2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256); Fri, 05 Mar 2021 06:54:18 GMT Received: by smtp.codeaurora.org (Postfix, from userid 1001) id 4ADBDC433ED; Fri, 5 Mar 2021 06:54:17 +0000 (UTC) Received: from codeaurora.org (unknown [202.46.22.19]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-SHA256 (128/128 bits)) (No client certificate requested) (Authenticated sender: b_lkasam) by smtp.codeaurora.org (Postfix) with ESMTPSA id E75F6C433C6; Fri, 5 Mar 2021 06:54:14 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 smtp.codeaurora.org E75F6C433C6 Authentication-Results: aws-us-west-2-caf-mail-1.web.codeaurora.org; dmarc=none (p=none dis=none) header.from=codeaurora.org Authentication-Results: aws-us-west-2-caf-mail-1.web.codeaurora.org; spf=fail smtp.mailfrom=lkasam@codeaurora.org From: Laxminath Kasam To: broonie@kernel.org, tiwai@suse.com Subject: [PATCH V1] Add debug print in soc-dapm Date: Fri, 5 Mar 2021 12:24:02 +0530 Message-Id: <1614927242-19251-1-git-send-email-lkasam@codeaurora.org> X-Mailer: git-send-email 2.7.4 Cc: Laxminath Kasam , alsa-devel@alsa-project.org, b_lkasam@codeaurora.org X-BeenThere: alsa-devel@alsa-project.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: "Alsa-devel mailing list for ALSA developers - http://www.alsa-project.org" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: alsa-devel-bounces@alsa-project.org Sender: "Alsa-devel" Add debug print useful for issue analysis in soc-dapm. This print for dapm widgets useful for debugging to find widgets powering up and down. Signed-off-by: Laxminath Kasam --- sound/soc/soc-dapm.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/sound/soc/soc-dapm.c b/sound/soc/soc-dapm.c index b005f9e..09d35df 100644 --- a/sound/soc/soc-dapm.c +++ b/sound/soc/soc-dapm.c @@ -1717,6 +1717,13 @@ static void dapm_seq_run(struct snd_soc_card *card, break; } + /* + * Add this debug log to keep track of widgets being + * powered-up and powered-down. + */ + dev_dbg(w->dapm->dev, "dapm: powering %s widget %s\n", + power_up ? "up" : "down", w->name); + if (ret < 0) dev_err(w->dapm->dev, "ASoC: Failed to apply widget power: %d\n", ret);