-
Notifications
You must be signed in to change notification settings - Fork 140
ASoC: SOF: ipc4-pcm: new spcm_dbg_ratelimited() wrapper and use it for inaccurate delay print #5538
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ASoC: SOF: ipc4-pcm: new spcm_dbg_ratelimited() wrapper and use it for inaccurate delay print #5538
Conversation
kv2019i
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Typo in commit, otherwise good.
| */ | ||
| #define spcm_dbg(__spcm, __dir, __fmt, ...) \ | ||
| dev_dbg((__spcm)->scomp->dev, "pcm%u (%s), dir %d: " __fmt, \ | ||
| (__spcm)->pcm.pcm_id, (__spcm)->pcm.pcm_name, __dir, \ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
s/reate/rate/
790c564 to
e7ae91a
Compare
|
Changes since v1:
|
sound/soc/sof/ipc4-pcm.c
Outdated
| dev_dbg_ratelimited(sdev->dev, | ||
| "inaccurate delay, host %llu dai_cnt %llu", host_cnt, dai_cnt); | ||
| spcm_dbg_ratelimited(spcm, substream->stream, | ||
| "inaccurate delay, host %llu dai_cnt %llu", host_cnt, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
do you have an alignment issue here?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
that is odd as locally it looks OK, but not in the patch...
e7ae91a to
f2aae3b
Compare
|
Changes since v2:
|
Add dev_dbg_ratelimited() wrapper for snd_sof_pcm specific debug prints that needs rate limited. Signed-off-by: Peter Ujfalusi <peter.ujfalusi@linux.intel.com>
use the new spcm_dbg_ratelimited(), the patch needs to be picked and sent alongside of this... spcm prints help to add context, so we know which PCM reports the incorrect delay. Signed-off-by: Peter Ujfalusi <peter.ujfalusi@linux.intel.com>
This will add context:
before:
snd_sof:sof_ipc4_pcm_pointer: sof-audio-pci-intel-mtl 0000:00:1f.3: inaccurate delay, host 256 dai_cnt 119474
after:
snd_sof:sof_ipc4_pcm_pointer: sof-audio-pci-intel-mtl 0000:00:1f.3: pcm5 (HDMI1), dir 0: inaccurate delay, host 256 dai_cnt 119474
The series for the delay fixes will need to pick this first patch for upstream.