From nobody Thu Apr 4 17:13:33 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 4V9SrR4dcvz5FcS2 for ; Thu, 4 Apr 2024 17:13:43 +0000 (UTC) (envelope-from rhurlin@gwdg.de) Received: from mx-2023-1.gwdg.de (mx-2023-1.gwdg.de [134.76.10.21]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4V9SrQ4nTXz4j6c; Thu, 4 Apr 2024 17:13:42 +0000 (UTC) (envelope-from rhurlin@gwdg.de) Authentication-Results: mx1.freebsd.org; dkim=pass header.d=gwdg.de header.s=2023-rsa header.b=VG2svXIp; dmarc=pass (policy=none) header.from=gwdg.de; spf=pass (mx1.freebsd.org: domain of rhurlin@gwdg.de designates 134.76.10.21 as permitted sender) smtp.mailfrom=rhurlin@gwdg.de DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gwdg.de; s=2023-rsa; h=Content-Transfer-Encoding:Content-Type:In-Reply-To:From: References:CC:To:Subject:MIME-Version:Date:Message-ID:Sender:Reply-To: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=dfAk1905MTGn/VFksBh8kuxdkit+mH9Nw+Nw01wSCyI=; b=VG2svXIppOQtN8z0HANcwtIu6d 8lNvl6L4TCmD9DcjLVBnPc8SqNwtwhNfyaP7I80QlzCSzafA4MseBO7Kdmb1QiuppRUyfAJpiTUZj pfyJEvkwLvghKklYoT9h35p3Xd1MEDO7B6sCrsYnXKDtoM3VH3xWFHiqFH8CEciHaApW/AtI4ux+O qiqB4xhCpDV+pjPwYItWNBYRIAy1MCkZRLB/aZWqA5shgcpNVyRcdGxMHwCTJYIIAci7RBWAJWfLH 4lggOuC4ucJolp7VihHmGArYKGKGsgJPBNnmAtj0Xe5RuOa910ZgGmErPTbFVTE1ifDTS0t2ev8t4 xyfwXrFA==; Received: from xmailer.gwdg.de ([134.76.10.29]:49046) by mailer.gwdg.de with esmtp (GWDG Mailer) (envelope-from ) id 1rsQec-006Ls7-1S; Thu, 04 Apr 2024 19:13:34 +0200 Received: from mbx19-gwd-03.um.gwdg.de ([10.108.142.56] helo=email.gwdg.de) by mailer.gwdg.de with esmtps (TLS1.2:ECDHE-RSA-AES256-GCM-SHA384:256) (GWDG Mailer) (envelope-from ) id 1rsQec-0000wR-0i; Thu, 04 Apr 2024 19:13:34 +0200 Received: from [192.168.178.23] (10.250.9.199) by MBX19-GWD-03.um.gwdg.de (10.108.142.56) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256) id 15.2.1544.9; Thu, 4 Apr 2024 19:13:34 +0200 Message-ID: Date: Thu, 4 Apr 2024 19:13:33 +0200 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 User-Agent: Mozilla Thunderbird Subject: Re: [Development report #9] Audio Stack Improvements To: Christos Margiolis CC: , , , Baptiste Daroussin References: Content-Language: en-US From: Rainer Hurling In-Reply-To: Content-Type: text/plain; charset="UTF-8"; format=flowed Content-Transfer-Encoding: 8bit X-Originating-IP: [10.250.9.199] X-ClientProxiedBy: EXCMBX-03.um.gwdg.de (134.76.9.218) To MBX19-GWD-03.um.gwdg.de (10.108.142.56) X-Virus-Scanned: (clean) by clamav X-Spam-Level: - X-Spamd-Bar: ----- X-Spamd-Result: default: False [-5.68 / 15.00]; NEURAL_HAM_LONG(-1.00)[-1.000]; DWL_DNSWL_LOW(-1.00)[gwdg.de:dkim]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; NEURAL_HAM_SHORT(-1.00)[-0.995]; DMARC_POLICY_ALLOW(-0.50)[gwdg.de,none]; RCVD_DKIM_ARC_DNSWL_MED(-0.50)[]; R_SPF_ALLOW(-0.20)[+ip4:134.76.10.0/23]; R_DKIM_ALLOW(-0.20)[gwdg.de:s=2023-rsa]; RCVD_IN_DNSWL_MED(-0.20)[134.76.10.29:received]; MIME_GOOD(-0.10)[text/plain]; XM_UA_NO_VERSION(0.01)[]; TO_DN_SOME(0.00)[]; MIME_TRACE(0.00)[0:+]; RCVD_COUNT_THREE(0.00)[3]; ARC_NA(0.00)[]; RCVD_TLS_LAST(0.00)[]; FROM_HAS_DN(0.00)[]; DKIM_TRACE(0.00)[gwdg.de:+]; HAS_XOIP(0.00)[]; FROM_EQ_ENVFROM(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; MLMMJ_DEST(0.00)[freebsd-multimedia@freebsd.org]; ASN(0.00)[asn:207592, ipnet:134.76.0.0/16, country:DE]; MID_RHS_MATCH_FROM(0.00)[]; FREEFALL_USER(0.00)[rhurlin]; RCPT_COUNT_FIVE(0.00)[5] X-Rspamd-Queue-Id: 4V9SrQ4nTXz4j6c Am 03.04.24 um 13:31 schrieb Baptiste Daroussin: > On Tue 02 Apr 16:14, Christos Margiolis wrote: >> Committed DEVFS_CDEVPRIV(9) patch: >> - https://cgit.freebsd.org/src/commit/?id=dc831e93bad63f9faea09f1806a7733a40bff316 >> - Updated the SNDCTL_AUDIOINFO ioctl to write /dev/dspX instead of >> /dev/dspX.Y to ai->devnode. >> - Closed https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=246208 as >> accessing specific channels through device nodes is no longer >> possible. >> >> Committed asynchronous audio device detach patch: >> - https://cgit.freebsd.org/src/commit/?id=9eff58c6d52b66eb8abe7f724dabcd804a566df4 >> - Fixed a kern_poll() panic caught after applying the patch and >> hot-unplugging the audio device while jackd is running: >> https://cgit.freebsd.org/src/commit/?id=fba54d0179aabb3d94211ca80f94fe5b98ac6d3b >> - Will send call-for-testing and mail annoyed people once a snapshot >> build with the patch included is built. >> - Debugging an LOR reported in D44411, although it’s not related to the >> patch. >> >> Updates to /dev/sndstat: >> - https://cgit.freebsd.org/src/commit/?id=6d1cee1640e1c360917e483ece5ec1bde423b788 >> - https://reviews.freebsd.org/D44571 >> - https://reviews.freebsd.org/D44546 (Abandoned since it will break >> backwards compatibility and this functionality will be built into a >> new userland tool anyway.) >> >> Implementing missing OSSv4 ioctls: >> - https://reviews.freebsd.org/D44570 >> >> Minor patches: >> - https://cgit.freebsd.org/src/commit/?id=c136e6180e4762c1180d89cd2291fd9a935a721d >> - https://cgit.freebsd.org/src/commit/?id=b5e55dbf357472ffa39345b30b8b781e988a440f >> - https://cgit.freebsd.org/src/commit/?id=d46a6a77e8e14177d07e3a53f68b428e5d1cb416 >> >> Submitted a 2024Q1 report: >> https://cgit.freebsd.org/doc/commit/?id=df8f360e93a2fa210dc3a0a7aa4dae6e855a8076 >> >> This work is sponsored by the FreeBSD Foundation. > > 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. Best wishes, Rainer