From owner-freebsd-current@FreeBSD.ORG Mon Oct 6 11:53:38 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 CE3861065686; Mon, 6 Oct 2008 11:53:38 +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 3B48F8FC27; Mon, 6 Oct 2008 11:53:38 +0000 (UTC) (envelope-from doconnor@gsoft.com.au) Received: from inchoate.gsoft.com.au (ppp121-45-245-112.lns11.adl6.internode.on.net [121.45.245.112]) (authenticated bits=0) by cain.gsoft.com.au (8.13.8/8.13.8) with ESMTP id m96BrTCh000638 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES128-SHA bits=128 verify=NO); Mon, 6 Oct 2008 22:23:29 +1030 (CST) (envelope-from doconnor@gsoft.com.au) From: "Daniel O'Connor" To: "Alexander Leidinger" Date: Mon, 6 Oct 2008 22:22:58 +1030 User-Agent: KMail/1.9.7 References: <1222892584.00020319.1222880402@10.7.7.3> <48E9AB21.1010203@fluffles.net> <20081006114838.75492pa2uian85wk@webmail.leidinger.net> In-Reply-To: <20081006114838.75492pa2uian85wk@webmail.leidinger.net> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="nextPart1404943.4oaEIzQb6O"; protocol="application/pgp-signature"; micalg=pgp-sha1 Content-Transfer-Encoding: 7bit Message-Id: <200810062223.23478.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 , bsd@fluffles.net 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 11:53:39 -0000 --nextPart1404943.4oaEIzQb6O Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline On Mon, 6 Oct 2008, Alexander Leidinger wrote: > We have /dev/dsp, which points by default to the first registered > soundcard. > > > 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 > > The default I wrote above, can be changed with a sysctl. You specify > the device number (0 for pcm0, 1 for pcm1, ...). So except for one > part (auto), we already have what you suggest. > > The difficult part is the "auto". What's the right thing to choose? > Think a little bit about it, what's right for one person is wrong for > another one. A person which has everything connected digitally wants > the digital by default for sure, but a person which has analog and > digital connected, can not get a mind reading machine to see a > sensible default. And what about those which have the soundcard > connected to an amplifier, and the graphic card also offers the HDMI > sound channel to the screen? Does this person want the sound only via > the amplifier, or does he want it via the build-in speakers of the > screen (he may want the normal stuff routed to the screen, but at > some point turn on the amplifier and use it instead)? Have an option in rc.conf read by a script that takes devd events and=20 does what the user wants. > > 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. > > So everytime I connect an USB Audio device it means I want to switch > to it? Maybe it's a headset and I only want to make phone calls with > it (by telling the phone application to use specific devices), but > for the rest I want to use the already existing sound output. Why not just allow a user to override it in rc.conf? Being able to have auto (ie what I plugged in most recently) and fixed=20 (manually set it to what you want) would probably cover 90% of cases=20 for minimal work. =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 --nextPart1404943.4oaEIzQb6O 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) iD8DBQBI6fwy5ZPcIHs/zowRAv2EAJ9d/arkSmq87XPoi0yaJ9vT3HJirACgmvmI UE+IugJnXQjXl+cBtxS5ZKc= =cJQL -----END PGP SIGNATURE----- --nextPart1404943.4oaEIzQb6O--