Skip to content

Conversation

@ujfalusi
Copy link
Collaborator

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.

kv2019i
kv2019i previously approved these changes Sep 18, 2025
Copy link
Collaborator

@kv2019i kv2019i left a 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, \
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

s/reate/rate/

@ujfalusi ujfalusi force-pushed the peter/sof/pr/innacurate-pcm-delay-print branch from 790c564 to e7ae91a Compare September 18, 2025 13:50
@ujfalusi
Copy link
Collaborator Author

Changes since v1:

  • typo in commit message fixed

bardliao
bardliao previously approved these changes Sep 22, 2025
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,
Copy link
Collaborator

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?

Copy link
Collaborator Author

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...

@ujfalusi ujfalusi dismissed stale reviews from bardliao and kv2019i via f2aae3b September 23, 2025 05:14
@ujfalusi ujfalusi force-pushed the peter/sof/pr/innacurate-pcm-delay-print branch from e7ae91a to f2aae3b Compare September 23, 2025 05:14
@ujfalusi
Copy link
Collaborator Author

Changes since v2:

  • parameter alignment fix in patch2

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>
@ujfalusi ujfalusi merged commit bfdb5f7 into thesofproject:topic/sof-dev Oct 1, 2025
10 of 16 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants