From nobody Thu May 09 15:56:35 2024 X-Original-To: freebsd-hackers@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 4VZxTY4K1Qz5JyWL; Thu, 09 May 2024 15:56:49 +0000 (UTC) (envelope-from timp87@gmail.com) Received: from mail-pj1-x102d.google.com (mail-pj1-x102d.google.com [IPv6:2607:f8b0:4864:20::102d]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "GTS CA 1D4" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4VZxTX4hRwz4HHq; Thu, 9 May 2024 15:56:48 +0000 (UTC) (envelope-from timp87@gmail.com) Authentication-Results: mx1.freebsd.org; dkim=pass header.d=gmail.com header.s=20230601 header.b=Xg44xeTo; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (mx1.freebsd.org: domain of timp87@gmail.com designates 2607:f8b0:4864:20::102d as permitted sender) smtp.mailfrom=timp87@gmail.com Received: by mail-pj1-x102d.google.com with SMTP id 98e67ed59e1d1-2b433dd2566so838701a91.2; Thu, 09 May 2024 08:56:48 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1715270207; x=1715875007; darn=freebsd.org; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=9NsyOH4IDxXlJ1qlpMWzwZEfQhONOQjDERi21aDixcQ=; b=Xg44xeToB+TVrXipNWtMrIdSFAVhzl2A8G87/iINxrPryoVzbGb1FhuUxPvaenuSq6 6VCM4tEKeqOwSO5cHGhoNwHM4RFcpjl0HmRj2diWA84Ok0PVIKOzppMNa66ZV3eR8Ug9 kJovZYrwec7BFUFjbuQutZOD4pZ/u64g9CaSVavOw722lL+sp7svYTLSoyQTxGf5/o7s B53NCVL3LvHRZwDqjPnTY5/N8fBm1mPr5i9hZ6aitH5UW2/KNERs94d5lD7KfIwu2vzu jTY+0BwnKo0iURR4PSpjEQ0OkbqZjZTTtK5qw8vMBZYGvxRlafpZl5557Xh+kzLu6J5g 3pQg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1715270207; x=1715875007; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=9NsyOH4IDxXlJ1qlpMWzwZEfQhONOQjDERi21aDixcQ=; b=pUqDnKVu3fD8AbC9bkNTIjYAWI6oSmQVbzEwT+bVaMngdCKFPcnhjYd2ix71tvQRTE qO8rT+APU8da04GsWPJsjMvn3CbQBQfDAoX1vWidRis93mzMGEtzMUSPefIEegbcx0iS eNL4K86bZNrAJKc3U+h+cP/oJWvgJVgxcY0Fcmw6Rv3p5PpOMsGhg5m0GDj84uQE+0BQ G0ypVGS805UKnoWKhw3+oRbQDj1s9jO/1BB2x8ZZg96x8pCHTXn9M1I0PYPsXn+LQ5Jy xC4dAWVHQjVPoWkaZ0tR1HRKfdgnGq1KrY2luSt7nfUAfaCUjlUNYcNcehPdJnAw+Bgi uRgA== X-Forwarded-Encrypted: i=1; AJvYcCUQT0GIiKJWzGb9Elz22eSW1ZttT3prbOsyBr4WRIoNCPLdz2Ld4X9hpsP6YdJ5zu8+gsy8B0/R/8s2Rlz19QZEO2j28ZhBgGmA7ow= X-Gm-Message-State: AOJu0Yx8Thps2J6fhDFE1EV1xWKDV4HSr/F639Mnt0WEKyOUqzu88NsD KhvEl080fCTJv7g0t4bliiVn6EnVxyoFiib5z+SVESOj157CtUy9ThY9+kdRC6oHLdfY5yalGQI ZmcxQz8ra5sDPOPqujM1oJoonS/DlckU3 X-Google-Smtp-Source: AGHT+IErOVgq0l1nfEC1klfnFV3QEUiEcRY/sK0e0UuK9c81wZ0BAtNhox0cRC2XafPxUZHzVgi5WawqieypFXzbjBg= X-Received: by 2002:a17:90b:506:b0:2b4:abc7:d642 with SMTP id 98e67ed59e1d1-2b61639b687mr5890613a91.6.1715270206695; Thu, 09 May 2024 08:56:46 -0700 (PDT) List-Id: Technical discussions relating to FreeBSD List-Archive: https://lists.freebsd.org/archives/freebsd-hackers List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-hackers@FreeBSD.org MIME-Version: 1.0 References: In-Reply-To: From: Pavel Timofeev Date: Thu, 9 May 2024 09:56:35 -0600 Message-ID: Subject: Re: Call-for-testing: Asynchronous audio device detach To: Christos Margiolis Cc: freebsd-multimedia@freebsd.org, freebsd-hackers@freebsd.org Content-Type: multipart/alternative; boundary="0000000000005d3382061807779c" X-Spamd-Bar: --- X-Spamd-Result: default: False [-3.99 / 15.00]; NEURAL_HAM_LONG(-1.00)[-1.000]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; NEURAL_HAM_SHORT(-0.99)[-0.991]; DMARC_POLICY_ALLOW(-0.50)[gmail.com,none]; R_DKIM_ALLOW(-0.20)[gmail.com:s=20230601]; R_SPF_ALLOW(-0.20)[+ip6:2607:f8b0:4000::/36:c]; MIME_GOOD(-0.10)[multipart/alternative,text/plain]; MISSING_XM_UA(0.00)[]; ASN(0.00)[asn:15169, ipnet:2607:f8b0::/32, country:US]; RCVD_COUNT_ONE(0.00)[1]; MIME_TRACE(0.00)[0:+,1:+,2:~]; ARC_NA(0.00)[]; FREEMAIL_ENVFROM(0.00)[gmail.com]; TO_DN_SOME(0.00)[]; FREEMAIL_FROM(0.00)[gmail.com]; RCVD_IN_DNSWL_NONE(0.00)[2607:f8b0:4864:20::102d:from]; RCPT_COUNT_THREE(0.00)[3]; FROM_EQ_ENVFROM(0.00)[]; FROM_HAS_DN(0.00)[]; DWL_DNSWL_NONE(0.00)[gmail.com:dkim]; TO_MATCH_ENVRCPT_ALL(0.00)[]; MID_RHS_MATCH_FROMTLD(0.00)[]; RCVD_TLS_LAST(0.00)[]; MLMMJ_DEST(0.00)[freebsd-multimedia@freebsd.org,freebsd-hackers@freebsd.org]; DKIM_TRACE(0.00)[gmail.com:+] X-Rspamd-Queue-Id: 4VZxTX4hRwz4HHq --0000000000005d3382061807779c Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable 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. 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=E2=80=AFPM 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=3D44e128fe9d92c1a544b801cb56e907a= 66ef34691 > [2] https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D194727 > [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-wai= ting-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=3De8c0d15a64fadb4a330f2da7244beca= ac161bb70 > > --0000000000005d3382061807779c Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Hello

This functionality has always bee= n 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=C2=A0mai= n-n269827-b07689d1f2a2 under gnome and it worked well with some basic=C2=A0= things.
The system survives usb headphone disconnect (unlike befo= re) and switches to another output after a few seconds (not immediately how= ever).
This is what I experience during youtube video playback in= chromium.

I'll try to extend the test and pla= y with it more soon.

I'm really glad this is f= ixed now!
Thanks to everyone involved in this!

On Fri, Apr 1= 2, 2024 at 1:40=E2=80=AFPM Christos Margiolis <christos@freebsd.org> 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.f= reebsd.org/src/commit/?id=3D44e128fe9d92c1a544b801cb56e907a66ef34691 [2] https://bugs.freebsd.org/bugzilla/show= _bug.cgi?id=3D194727
[3] https://forums.fr= eebsd.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/free= bsd-usb-audio
[6] https://= randomnixfix.wordpress.com/2021/10/23/why-the-freebsd-desktop-and-my-linux-= rant/
[7] https://cgit.f= reebsd.org/src/commit/?id=3De8c0d15a64fadb4a330f2da7244becaac161bb70
--0000000000005d3382061807779c--