All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] ASoC: Add a debug log to track DAPM widget power up/down
@ 2019-05-24  7:54 bgoswami
  2019-05-24 11:29 ` Mark Brown
  0 siblings, 1 reply; 4+ messages in thread
From: bgoswami @ 2019-05-24  7:54 UTC (permalink / raw)
  To: broonie; +Cc: alsa-devel, Banajit Goswami, srinivas.kandagatla, plai

From: Banajit Goswami <bgoswami@codeaurora.org>

Add a debug log to help track widgets being powered-up and powered-down
by DAPM.

Signed-off-by: Banajit Goswami <bgoswami@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 29cdfbf4c888..9bab90410de5 100644
--- a/sound/soc/soc-dapm.c
+++ b/sound/soc/soc-dapm.c
@@ -1665,6 +1665,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);
-- 
The Qualcomm Innovation Center, Inc. is a member of the Code Aurora Forum,
a Linux Foundation Collaborative Project

^ permalink raw reply related	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2019-05-28 15:20 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-05-24  7:54 [PATCH] ASoC: Add a debug log to track DAPM widget power up/down bgoswami
2019-05-24 11:29 ` Mark Brown
2019-05-28  1:15   ` Banajit Goswami
2019-05-28 15:20     ` Mark Brown

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.