Re: Re: [Development report #9] Audio Stack Improvements

From: Christos Margiolis <christos_at_freebsd.org>
Date: Fri, 05 Apr 2024 10:25:20 UTC
Rainer Hurling wrote:
> Am 03.04.24 um 13:31 schrieb Baptiste Daroussin:
> > Thanks a log for your hard work! one thing I would like to report, I had an
> > issue with pulseaudio with latest kernel as of today.
> > 
> > On thing specific my laptop internal audio is actually uaudio which makes it
> > maybe a bit specific.
> > 
> > I have an application which queries pulseaudio every minute to get the status of
> > the mixer, this application starts pulseaudio if not present. It starts it a
> > first time, the process run but seems to hang somehow and becomes unkillable
> > (even via kill -9)
> > 
> > the backtraces shows: mi_switch+0xba _cv_wait+0xf8 getchns+0x9f
> > dsp_poll+0xc4 devfs_poll_f+0x7d kern_poll_kfds+0x3f6 kern_poll+0x9d
> > sys_ppoll+0x70 amd64_syscall+0x109 fast_syscall_common+0xf8
> > 
> > with a kernel from 10 days ago this wasn't happening.
> > 
> > if I change the PCM_WAIT() macro to use cv_wait_sig then everything seems to be
> > back to normal.
> > 
> > I don't know if that rings a bell or how to help you more on debugging this.
> > 
> > Best regards,
> > Bapt
> > 
> 
> I also have the problem that since the commits for this project on two
> CURRENT boxes sound output via PulseAudio is no longer possible.
> 
> "pactl info" reports that no connection to the server is possible.
> 
> PulseAudio gives the following messages on the console:
> 
> [00002b8cf70615060] vlcpuls audio output error: PulseAudio server connection
> failure: connection denied
> [00002b8cf70615060] main audio output error: no suitable audio output module
> [00002b8cf70615060] main decoder error: failed to create audio output
> 
> The patch of the PCM_WAIT() macro suggested by bapt does not bring any
> improvement on my computers.
> 
> In addition, I have the problem that the affected boxes are either extremely
> slow during shutdown or cannot complete the shutdown.
> 
> Thanks for your work on the audio system, very appreciated. Please let me
> know, if I should test something.

Apparently pulseaudio doesn't seem to work nice with the
DEVFS_CDEVPRIV(9) patch for an as-of-yet unknown reason, so after
request from bapt@ and markj@, I reverted the changes until this issue
is resolved.

Christos