Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 9fce9438 authored by Banajit Goswami's avatar Banajit Goswami
Browse files

ASoC: Add debug message to track widget power up/down



Add a debug message which can be used for tracking widgets being
power-up and powered-down by DAPM, mainly used for debugging
purpose.

Change-Id: I291a381da44edca3bc2bb07be53b1969c03a48f0
Signed-off-by: default avatarBanajit Goswami <bgoswami@codeaurora.org>
parent 62b084ce
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -1432,6 +1432,11 @@ static void dapm_seq_run(struct snd_soc_dapm_context *dapm,
			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);