Re: pulseaudio / alc1220 sound clicks interruptions etc

From: Amar Takhar <verm_at_darkbeer.org>
Date: Tue, 03 Jun 2025 23:59:50 UTC
On 2025-06-04 01:15 +0200, Tomek CEDRO wrote:
> After some short time I noticed the various hiccups are still here,
> gfx seems like software render now, but at least there are no noisy
> spikes in the audio just occasional hiccups / glitches.

If I play 4K video it's really bad 8K video is even worse.  Through a web 
browser is a lot worse.  If I use hardware decoding there are no issues the 
hiccups are slight.

> In the htop I can see that all CPUs are changing their frequency
> probably to save power and this seems to come from hardware itself. I
> have powerd running too but without it problem still here.

I set all my CPUs to 100% no difference.


> Maybe some tuning of kern.sched sysctls may help? Have you tried them Amar?

I've tried everything.  :) I think it's something to do with how the scheduler 
and audio stack are interacting but I haven't looked at it too hard yet it's one 
of those things where I've gotten used to it and I plan on upgrading this 
machine again though hearing your issues doesn't give me confidence the issue 
will go away.

In one of my comments on one of those issues I pointed out I attached a debug 
log from dmesg.  How does yours compare to that?  Is yours also related to 
buffering issues?

The messages coincide with the audible hiccups.


Amar.