From dd94d86a0926192d3248a646781d37c04556a1bf Mon Sep 17 00:00:00 2001 From: Hin-Tak Leung Date: Fri, 23 Apr 2021 21:03:22 +0100 Subject: [PATCH] Additional debug code to where the *_trigger()'s finish. Conflicts: ac108.c modified: seeed-voicecard.c --- ac101.c | 3 +++ ac108.c | 4 ++++ seeed-voicecard.c | 4 ++++ 3 files changed, 11 insertions(+) diff --git a/ac101.c b/ac101.c index 343f030..abac88a 100644 --- a/ac101.c +++ b/ac101.c @@ -1286,6 +1286,9 @@ int ac101_trigger(struct snd_pcm_substream *substream, int cmd, default: ret = -EINVAL; } + AC101_DBG("stream=%s cmd=%d;finished %d\n", + snd_pcm_stream_str(substream), + cmd, ret); return ret; } diff --git a/ac108.c b/ac108.c index 29e0a94..c3e0d8b 100644 --- a/ac108.c +++ b/ac108.c @@ -1088,6 +1088,10 @@ static int ac108_trigger(struct snd_pcm_substream *substream, int cmd, __ret: spin_unlock_irqrestore(&ac10x->lock, flags); + dev_dbg(dai->dev, "%s() stream=%s cmd=%d; finished %d\n", + __FUNCTION__, + snd_pcm_stream_str(substream), + cmd, ret); return ret; } diff --git a/seeed-voicecard.c b/seeed-voicecard.c index f08fbd8..353f2c8 100644 --- a/seeed-voicecard.c +++ b/seeed-voicecard.c @@ -240,6 +240,10 @@ static int seeed_voice_card_trigger(struct snd_pcm_substream *substream, int cmd ret = -EINVAL; } + dev_dbg(rtd->card->dev, "%s() stream=%s cmd=%d play:%d, capt:%d;finished %d\n", + __FUNCTION__, snd_pcm_stream_str(substream), cmd, + dai->playback_active, dai->capture_active, ret); + return ret; }