All of lore.kernel.org
 help / color / mirror / Atom feed
From: Laxminath Kasam <lkasam@codeaurora.org>
To: broonie@kernel.org, tiwai@suse.com
Cc: Laxminath Kasam <lkasam@codeaurora.org>,
	alsa-devel@alsa-project.org, b_lkasam@codeaurora.org
Subject: [PATCH V1] Add debug print in soc-dapm
Date: Fri,  5 Mar 2021 12:24:02 +0530	[thread overview]
Message-ID: <1614927242-19251-1-git-send-email-lkasam@codeaurora.org> (raw)

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 <lkasam@codeaurora.org>
---
 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);
-- 
Qualcomm India Private Limited, on behalf of Qualcomm Innovation Center, Inc.,
is a member of Code Aurora Forum, a Linux Foundation Collaborative Project.


             reply	other threads:[~2021-03-05  6:55 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-03-05  6:54 Laxminath Kasam [this message]
2021-03-05  9:59 ` [PATCH V1] Add debug print in soc-dapm Mark Brown
2021-03-05 14:37   ` b_lkasam
2021-03-05 16:15     ` Mark Brown

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1614927242-19251-1-git-send-email-lkasam@codeaurora.org \
    --to=lkasam@codeaurora.org \
    --cc=alsa-devel@alsa-project.org \
    --cc=b_lkasam@codeaurora.org \
    --cc=broonie@kernel.org \
    --cc=tiwai@suse.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.