From nobody Wed May 22 23:35:37 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 4Vl7322t9Fz5LG7y; Wed, 22 May 2024 23:35:42 +0000 (UTC) (envelope-from christos@freebsd.org) Received: from smtp.freebsd.org (smtp.freebsd.org [IPv6:2610:1c1:1:606c::24b:4]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "smtp.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Vl7322G3fz4ZT2; Wed, 22 May 2024 23:35:42 +0000 (UTC) (envelope-from christos@freebsd.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1716420942; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=xITu3GUVddTiQSPU+VxUx7hi3ANTzglZ2GVd8A+hlsk=; b=TvIwn+gJUGb7PFqJa7p9YOwFnc4aPkFEo34qt9OC5uHhPCTlLNNBvn++O45e6N2kBn7mpU C6l/lhbg1NXcG0RjjDwabjNXgc273haZEDImu+mpRg+0xVlzV79A+1SjMGS23g7iIu7a4s ZKsCU4GGlHEQQSqy8owGxgVWE9lsXJB5B20MPSdj16lwy6Oq4kSeIlZYnJ+3ZR6cJKOORK vDULRP7RBIpH/hFQNZxgo9xSZxgckIWoSJS1AfFgXEUXxQinb1Xxe5fJGcZg9AszdSFiJr N6SuOtIknhlEi78Dv+ajoj0yBfhw6yfN/uZ5pMwdz57ybZefBxBgZKgrN1ycIQ== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1716420942; a=rsa-sha256; cv=none; b=s3c0eFmiHIOC81+FtqkwmZzOqNM2aVY134JSmHTrfMcpnkfl+3U1RHHsaiDbA4qkXTYOUR qWDvtTLpbNgs3vS9YCPm2WlQLg8GRHoDNeOvRRkZMfnMs6q5UwBuxBYbAp6B9lgd4GuvDm vH6VYosnkz5F4uzL5HzyDCMM6u8G+lE9pu1YTuDeccjp6iIvuDvYsNvlGQEK7LtjBSoakf W8zfC+Pc6stCTS49m4ChhlM6J2SXwa+p3agNy2nSGFL3T1bgv3Gud3qp+IMP855EbUKADQ 5h4zQUIB4Rvkf0n+LOQ6z/MFpIj3Jz1MF460ufg5Snn730yfX2abI/CBWDiHpg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1716420942; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:dkim-signature; bh=xITu3GUVddTiQSPU+VxUx7hi3ANTzglZ2GVd8A+hlsk=; b=fcWJMJlwvGxUO6gAVJ5Hl2FTfYZKAMopx5luZALxx3wh6GDjV3MXQ1gnUw3ufC7LKFpAH+ 1Dt3kpG8WYo3+I9FXliUznPQyHMt3jB9UyJoeCxvfL6KyG60OOJaRfEONq7dR9xYmR9q+i JohG+p9/4hl3shJghKy9sNuZFqM4QjfQj44bXkUEmwLbsLqN9Yff8fcSKl+A4jZuxEgua9 dvEFgyarM+/TCnWinWy5S8zBRCrytpBbf+Zw2CYLoAeg0bYQM2uP7TSYN7r0Cs9IAoLOyG N1jVhJZQMjsv4uyMSSTllNYjEKBJktjs9+lPyhWM9TOF170u8iwsSxqTVFGAag== 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) (Authenticated sender: christos/mail) by smtp.freebsd.org (Postfix) with ESMTPSA id 4Vl7315nBRz17t9; Wed, 22 May 2024 23:35:41 +0000 (UTC) (envelope-from christos@freebsd.org) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; s=mail; bh=q+OSPO5CJqWbyMo XYRVjgF8TVSz48Ihb/X6HU7kztSg=; h=in-reply-to:references:subject:cc:to: from:date; d=margiolis.net; b=oJFrbmt5tWziZiO7xoA6wnlgJpuST71Ar7miuzCc lqhlxOjLgqKgn7hGd9CXt5yI2KF0OFQcJc8jWi0V1vvwU33xG7jhXAEBVZF012vP7bQM9c X6AEWcvo0OndpaqRTyk7OVt8385jQSK/MUlKuFTXe3Csb26YSK6t6NW4TV7+8= Received: from tpad (ip-45-81-121-44.ask4internet.com [45.81.121.44]) by margiolis.net (OpenSMTPD) with ESMTPSA id 0615238b (TLSv1.3:AEAD-AES256-GCM-SHA384:256:NO); Wed, 22 May 2024 23:35:38 +0000 (UTC) Date: Thu, 23 May 2024 01:35:37 +0200 From: Christos Margiolis To: Pavel Timofeev Cc: freebsd-multimedia@freebsd.org, freebsd-hackers@freebsd.org Subject: Re: Call-for-testing: Asynchronous audio device detach 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=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: Hello Pavel, Pavel Timofeev wrote: > Hello > > This functionality has always been in my personal list of desires. > Thank you for implementing this! > > I don't have many USB sound devices nowadays. Only a couple of usb > headphones. > So I tried 15-CURRENT main-n269827-b07689d1f2a2 under gnome and it worked > well with some basic things. > The system survives usb headphone disconnect (unlike before) and switches > to another output after a few seconds (not immediately however). > This is what I experience during youtube video playback in chromium. Can you elaborate on "not immediately"? Is there a hang during this time window? > > I'll try to extend the test and play with it more soon. > > I'm really glad this is fixed now! > Thanks to everyone involved in this! > > On Fri, Apr 12, 2024 at 1:40 PM Christos Margiolis > wrote: > > > Hello, > > > > Yesterday I committed a patch [1] which adds support for asynchronous > > device detach for audio devices, something that many people with > > detachable audio devices (e.g USB) have been asking for for years > > [2][3][4][5][6][many more...]. I would like to ask you to give it a try > > and let me know if everything works properly. Note that this patch > > depends on dc831e93bad6 [7], so make sure to apply this one as well. > > > > Christos > > > > [1] > > https://cgit.freebsd.org/src/commit/?id=44e128fe9d92c1a544b801cb56e907a66ef34691 > > [2] https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=194727 > > [3] > > https://forums.freebsd.org/threads/not-entering-sleep-state-due-to-audio.82597/ > > [4] > > https://forums.freebsd.org/threads/forcing-off-the-computer-endlessly-waiting-for-sound-application-to-exit-at-sleep-suspend-time.80412/ > > [5] https://www.davidschlachter.com/misc/freebsd-usb-audio > > [6] > > https://randomnixfix.wordpress.com/2021/10/23/why-the-freebsd-desktop-and-my-linux-rant/ > > [7] > > https://cgit.freebsd.org/src/commit/?id=e8c0d15a64fadb4a330f2da7244becaac161bb70