[alsa-devel] [PATCH] ASoC: Add a debug log to track DAPM widget power up/down
bgoswami at codeaurora.org
bgoswami at codeaurora.org
Fri May 24 09:54:27 CEST 2019
From: Banajit Goswami <bgoswami at codeaurora.org>
Add a debug log to help track widgets being powered-up and powered-down
by DAPM.
Signed-off-by: Banajit Goswami <bgoswami at 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
More information about the Alsa-devel
mailing list