From nobody Fri Apr 05 10:25:20 2024 X-Original-To: freebsd-multimedia@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4V9vl00WFnz5G941 for ; Fri, 5 Apr 2024 10:25:32 +0000 (UTC) (envelope-from christos@freebsd.org) Received: from margiolis.net (mail.margiolis.net [95.179.159.8]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA512) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4V9vkz2vjTz4hJ5; Fri, 5 Apr 2024 10:25:31 +0000 (UTC) (envelope-from christos@freebsd.org) Authentication-Results: mx1.freebsd.org; none DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; s=mail; bh=LK4eowwCLHDRHMg +VbOl6NLLhic/SzDx6OQ7vzHsGw4=; h=in-reply-to:references:subject:cc:to: from:date; d=margiolis.net; b=YvShhxRcn0kgoBQNkFMxLILjUwWMkcXmJ9nFs7Ff wF8S42GjHRj5FQGlTYSlXyKqJfBzm0Av1oyCI6IE7QkxpY35dSoZ+re2kjIEDLlPLmgXNG P2UlFcF7PPQq/IOoRlGFyBfC9p6SaojLswxvPIZOkm3DQzlDSsC1r3KTnDO5I= Received: from tpad (ip-45-81-121-44.ask4internet.com [45.81.121.44]) by margiolis.net (OpenSMTPD) with ESMTPSA id d535fb4b (TLSv1.3:AEAD-AES256-GCM-SHA384:256:NO); Fri, 5 Apr 2024 10:25:21 +0000 (UTC) Date: Fri, 5 Apr 2024 12:25:20 +0200 From: Christos Margiolis To: Rainer Hurling Cc: freebsd-multimedia@freebsd.org, markj@freebsd.org, jrm@freebsd.org, Baptiste Daroussin Subject: Re: Re: [Development report #9] Audio Stack Improvements Message-ID: References: List-Id: Multimedia discussions List-Archive: https://lists.freebsd.org/archives/freebsd-multimedia List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-multimedia@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Spamd-Bar: ---- X-Rspamd-Pre-Result: action=no action; module=replies; Message is reply to one we originated X-Spamd-Result: default: False [-4.00 / 15.00]; REPLY(-4.00)[]; ASN(0.00)[asn:20473, ipnet:95.179.144.0/20, country:US] X-Rspamd-Queue-Id: 4V9vkz2vjTz4hJ5 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