From nobody Thu Dec 14 23:39:33 2023 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 4SrpjN15n1z53wj0 for ; Thu, 14 Dec 2023 23:39:36 +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 4SrpjM5r4Lz3NhR; Thu, 14 Dec 2023 23:39:35 +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=DPMyMvlL0RGO9Et CPUtv7jUH9rjh7fPo6ALzj3NarxQ=; h=in-reply-to:references:subject:cc:to: from:date; d=margiolis.net; b=SF3ApjZ7P7Q444rAC9bKqVcLJ7fBdRnWeZBxs8Tn SYFHDD9KJVQeDVZD7hx+yIEjAwZif22clM3p1EncUnvz+zCqqES1Gk6KxBiTRH3i+pzKfS pedww9kZFWYa20L1dq9vKLNf/OKkhFgpk2Ve5/Jh+LukD9qElw71CT0GcpKqM= Received: from pleb (ppp-94-66-59-140.home.otenet.gr [94.66.59.140]) by margiolis.net (OpenSMTPD) with ESMTPSA id a97635e6 (TLSv1.3:AEAD-AES256-GCM-SHA384:256:NO); Thu, 14 Dec 2023 23:39:33 +0000 (UTC) Date: Fri, 15 Dec 2023 01:39:33 +0200 From: Christos Margiolis To: Baptiste Daroussin Cc: freebsd-multimedia@freebsd.org Subject: Re: RFC - Work on FreeBSD's Audio Stack Message-ID: References: <86ttomxg11.fsf@phe.ftfl.ca> <86y1dxpjzy.fsf@phe.ftfl.ca> <5gncptsagv7vr6omipmttdel73uq3dx3gvjz3nsvsleqlmqdmu@denmsyow3yzj> 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: <5gncptsagv7vr6omipmttdel73uq3dx3gvjz3nsvsleqlmqdmu@denmsyow3yzj> 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-Spamd-Bar: ---- X-Rspamd-Queue-Id: 4SrpjM5r4Lz3NhR Hello Baptiste, Baptiste Daroussin wrote: > Another issue which is painful with uaudio, more and more laptops have > uaudio devices by default instead of hda, and uaudio is not able to > suspend/resume if something is consuming it. > > This is the only hotpluggable device we have for snd card, when one is > going to suspend, the device is being detached not suspended (because > usb) and the decatch procedure goes through the pcm_unregister > function which loops forever hoping the application using the device > will die, which never happens, so suspend ends up in an infinite loop > in the kernel. > > Note the same happen if you disconnect any uaudio device while an > application is using it. Yeap, this is what I was mostly referring to when I wrote "Other USB audio bugs include 1) those mentioned in the snd uaudio(4) man page". Christos