Commit d605bd02 authored by Charles Keepax's avatar Charles Keepax Committed by Mark Brown

ASoC: arizona: Add debug prints for output power up/down times

When debugging it is useful to check the total power up/down delay that
is executed as part of the coalesced output delay. This patch adds some
debug prints for this.
Signed-off-by: default avatarCharles Keepax <ckeepax@opensource.wolfsonmicro.com>
Signed-off-by: default avatarMark Brown <broonie@kernel.org>
parent 57a60cc3
...@@ -891,6 +891,8 @@ int arizona_out_ev(struct snd_soc_dapm_widget *w, ...@@ -891,6 +891,8 @@ int arizona_out_ev(struct snd_soc_dapm_widget *w,
case ARIZONA_OUT3R_ENA_SHIFT: case ARIZONA_OUT3R_ENA_SHIFT:
priv->out_up_pending--; priv->out_up_pending--;
if (!priv->out_up_pending) { if (!priv->out_up_pending) {
dev_dbg(codec->dev, "Power up delay: %d\n",
priv->out_up_delay);
msleep(priv->out_up_delay); msleep(priv->out_up_delay);
priv->out_up_delay = 0; priv->out_up_delay = 0;
} }
...@@ -925,6 +927,8 @@ int arizona_out_ev(struct snd_soc_dapm_widget *w, ...@@ -925,6 +927,8 @@ int arizona_out_ev(struct snd_soc_dapm_widget *w,
case ARIZONA_OUT3R_ENA_SHIFT: case ARIZONA_OUT3R_ENA_SHIFT:
priv->out_down_pending--; priv->out_down_pending--;
if (!priv->out_down_pending) { if (!priv->out_down_pending) {
dev_dbg(codec->dev, "Power down delay: %d\n",
priv->out_down_delay);
msleep(priv->out_down_delay); msleep(priv->out_down_delay);
priv->out_down_delay = 0; priv->out_down_delay = 0;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment