From owner-freebsd-current@FreeBSD.ORG Mon Oct 6 10:00:17 2008 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 114211065686; Mon, 6 Oct 2008 10:00:17 +0000 (UTC) (envelope-from doconnor@gsoft.com.au) Received: from cain.gsoft.com.au (cain.gsoft.com.au [203.31.81.10]) by mx1.freebsd.org (Postfix) with ESMTP id 8D63D8FC2C; Mon, 6 Oct 2008 10:00:12 +0000 (UTC) (envelope-from doconnor@gsoft.com.au) Received: from inchoate.gsoft.com.au (ppp121-45-233-220.lns10.adl6.internode.on.net [121.45.233.220]) (authenticated bits=0) by cain.gsoft.com.au (8.13.8/8.13.8) with ESMTP id m96A01jB097155 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES128-SHA bits=128 verify=NO); Mon, 6 Oct 2008 20:30:03 +1030 (CST) (envelope-from doconnor@gsoft.com.au) From: "Daniel O'Connor" To: "fluffles.net" Date: Mon, 6 Oct 2008 20:29:36 +1030 User-Agent: KMail/1.9.7 References: <1222892584.00020319.1222880402@10.7.7.3> <200810030945.00843.doconnor@gsoft.com.au> <48E9AB21.1010203@fluffles.net> In-Reply-To: <48E9AB21.1010203@fluffles.net> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="nextPart1558428.GQlzvQkV5q"; protocol="application/pgp-signature"; micalg=pgp-sha1 Content-Transfer-Encoding: 7bit Message-Id: <200810062029.56713.doconnor@gsoft.com.au> X-Spam-Score: -2.212 () BAYES_00,RDNS_DYNAMIC X-Scanned-By: MIMEDefang 2.63 on 203.31.81.10 Cc: Alexander Motin , freebsd-current@freebsd.org, Joel Dahl Subject: Re: regression in HDA functionality X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 06 Oct 2008 10:00:17 -0000 --nextPart1558428.GQlzvQkV5q Content-Type: text/plain; charset="iso-8859-15" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline On Mon, 6 Oct 2008, fluffles.net wrote: > > eg selecting the HDMI output is pointless if there is no HDMI link > > active (can you detect HDMI status?) > > As i understand, the problem is that with the new patch, more devices > are detected which changes the numbering of the pcm devices, thus > out-of-the-box sound output does not (always) work. > > Maybe a solution would be to *always* register pcm0, so it becomes > the default device. This device is not a real device but rather a > virtual device like a wrapper/link to one of the other "real" pcm > devices starting with pcm1. An algoritm could select which device > pcm0 points to, and be changeable in sysctl, defaulting to "auto" or > something. The auto setting could even be extended to change default > device if situation changes, like a new USB Audio device is plugged > in or the headphones-output is used. It might be hard to correctly > predict the desired behavior for everyone, but getting default audio > output (front speakers; stereo) to work out-of-the-box would be > great. This is already possible - using the hw.snd.default_unit sysctl (changes=20 what /dev/mixer et al do). That is what I was thinking - basically you watch for new sound devices=20 and decide which one to use (or sound events to say something is=20 plugged in) and set the sysctl accordingly. =2D-=20 Daniel O'Connor software and network engineer for Genesis Software - http://www.gsoft.com.au "The nice thing about standards is that there are so many of them to choose from." -- Andrew Tanenbaum GPG Fingerprint - 5596 B766 97C0 0E94 4347 295E E593 DC20 7B3F CE8C --nextPart1558428.GQlzvQkV5q Content-Type: application/pgp-signature; name=signature.asc Content-Description: This is a digitally signed message part. -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.9 (FreeBSD) iD8DBQBI6eGc5ZPcIHs/zowRAgYaAJ0bInreaBhcnfZjUbKSNig9ki0i5gCdG/pg sVjOh1fB5f2AN/nWur/EUwo= =ZLzX -----END PGP SIGNATURE----- --nextPart1558428.GQlzvQkV5q--