[alsa-devel] [PATCH] ASoC: wm_adsp: Add info print to note that the DSP has shutdown
It can be useful for debugging purposes to see at what point the DSP has powered down, so add a message to inform us of this.
Signed-off-by: Charles Keepax ckeepax@opensource.wolfsonmicro.com --- sound/soc/codecs/wm_adsp.c | 2 ++ 1 files changed, 2 insertions(+), 0 deletions(-)
diff --git a/sound/soc/codecs/wm_adsp.c b/sound/soc/codecs/wm_adsp.c index 4fbcab6..a15f75b 100644 --- a/sound/soc/codecs/wm_adsp.c +++ b/sound/soc/codecs/wm_adsp.c @@ -1637,6 +1637,8 @@ int wm_adsp2_event(struct snd_soc_dapm_widget *w, list_del(&alg_region->list); kfree(alg_region); } + + adsp_info(dsp, "Shutdown complete\n"); break;
default:
On Tue, Jan 21, 2014 at 04:05:37PM +0000, Charles Keepax wrote:
It can be useful for debugging purposes to see at what point the DSP has powered down, so add a message to inform us of this.
break;adsp_info(dsp, "Shutdown complete\n");
I'd have expected this to be _dbg() rather than info? In general stuff like enumeration or "we might crash immediately if this goes wrong" would get logged normally.
participants (2)
-
Charles Keepax
-
Mark Brown