projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
57a60cc
)
ASoC: arizona: Add debug prints for output power up/down times
author
Charles Keepax
<
[email protected]
>
Tue, 27 Sep 2016 15:35:44 +0000
(16:35 +0100)
committer
Mark Brown
<
[email protected]
>
Tue, 27 Sep 2016 16:07:07 +0000
(09:07 -0700)
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: Charles Keepax <
[email protected]
>
Signed-off-by: Mark Brown <
[email protected]
>
sound/soc/codecs/arizona.c
patch
|
blob
|
history
diff --git
a/sound/soc/codecs/arizona.c
b/sound/soc/codecs/arizona.c
index fae6ccf8405bde7b522c511d52b589507e050270..7a99f77bbe84c5749f323271cefe97ca28ca9523 100644
(file)
--- a/
sound/soc/codecs/arizona.c
+++ b/
sound/soc/codecs/arizona.c
@@
-891,6
+891,8
@@
int arizona_out_ev(struct snd_soc_dapm_widget *w,
case ARIZONA_OUT3R_ENA_SHIFT:
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);
priv->out_up_delay = 0;
}
@@
-925,6
+927,8
@@
int arizona_out_ev(struct snd_soc_dapm_widget *w,
case ARIZONA_OUT3R_ENA_SHIFT:
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);
priv->out_down_delay = 0;
}