From owner-freebsd-advocacy@FreeBSD.ORG Wed Apr 2 11:34:16 2014 Return-Path: Delivered-To: freebsd-advocacy@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 61EB5967; Wed, 2 Apr 2014 11:34:16 +0000 (UTC) Received: from mail.0x20.net (mail.0x20.net [217.69.76.211]) (using TLSv1 with cipher DHE-RSA-CAMELLIA256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id E5FB8159; Wed, 2 Apr 2014 11:34:15 +0000 (UTC) Received: from e-new.0x20.net (mail.0x20.net [IPv6:2001:aa8:fffb:1::3]) (using TLSv1 with cipher DHE-RSA-CAMELLIA256-SHA (256/256 bits)) (No client certificate requested) by mail.0x20.net (Postfix) with ESMTPS id 108BC6A675D; Wed, 2 Apr 2014 13:34:14 +0200 (CEST) Received: from e-new.0x20.net (localhost [127.0.0.1]) by e-new.0x20.net (8.14.7/8.14.7) with ESMTP id s32BYDGQ068968; Wed, 2 Apr 2014 13:34:13 +0200 (CEST) (envelope-from lars@e-new.0x20.net) Received: (from lars@localhost) by e-new.0x20.net (8.14.7/8.14.7/Submit) id s32BYD0S068029; Wed, 2 Apr 2014 13:34:13 +0200 (CEST) (envelope-from lars) Date: Wed, 2 Apr 2014 13:34:13 +0200 From: Lars Engels To: David Chisnall Subject: Re: Leaving the Desktop Market Message-ID: <20140402113413.GC44074@e-new.0x20.net> References: <20140401094044.GX44074@e-new.0x20.net> <083e01cf4db9$f8f4e040$eadea0c0$@FreeBSD.org> <20140401174302.GU44074@e-new.0x20.net> <20140401195006.GA1368@tiny-r255948> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="jrSbkLCAP5lJDiYt" Content-Disposition: inline In-Reply-To: X-Editor: VIM - Vi IMproved 7.4 X-Operation-System: FreeBSD 8.4-RELEASE-p4 User-Agent: Mutt/1.5.23 (2014-03-12) X-Mailman-Approved-At: Wed, 02 Apr 2014 11:52:44 +0000 Cc: freebsd-advocacy@freebsd.org, "current@freebsd.org" , Matthias Apitz , Kevin Oberman , hackers@freebsd.org, dteske@freebsd.org, Jordan Hubbard X-BeenThere: freebsd-advocacy@freebsd.org X-Mailman-Version: 2.1.17 Precedence: list List-Id: FreeBSD Evangelism List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 02 Apr 2014 11:34:16 -0000 --jrSbkLCAP5lJDiYt Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Wed, Apr 02, 2014 at 10:22:32AM +0100, David Chisnall wrote: > On 1 Apr 2014, at 23:10, Kevin Oberman wrote: >=20 > > Audio output is pretty system dependent, but I had little problem getti= ng > > my audio to auto-switch to headphones when I plugged them in. The setup= is > > a bit ugly,but I only had to check the available PINs (ugly, ugly) and = set > > up stuff once. It just works. If you want my example set-up, I can post= it > > somewhere or you can look in the archives for it as I have posted it in= the > > past. >=20 > It would be good to have this in the handbook (and to see what we can > do to improve it). FreeBSD audio typically works out of the box and > it's great when it does[1], but it can be underdocumented black magic > to make it work when it doesn't. For example, I believe it's possible > to tell pcm that when it receives a stereo stream it should redirect > the left channel to the front and rear left, and the right channel to > the front and rear right, but I haven't yet worked out how to do this > - I'd have thought it was the kind of default that we'd want to have. >=20 > The use case that PulseAudio was [over]designed to fix was plugging in > USB headphones (or connecting a Bluetooth headset) and having existing > audio streams redirected there. This should be possible with the > existing sound stack, but there are some bits of plumbing missing. We > already do in-kernel mixing and resampling, which are the hard bits. > Duplicating streams and redirecting them are trivial by comparison. >=20 > David >=20 > [1] Although I had a slightly embarrassing moment when I spent an hour > hunting for docs to tell me how to configure my media centre box do > 5.1 output and then decided to just try it and found it worked out of > the box. AFAIK we already can configure HDA's sound output and input in many ways using sysctl(8). What's still missing is a user-friendly way to configure sound. There are some things that can be handled in one little program / script / TUI / GUI / CLI: - Default sound unit (hw.snd.default_unit) - Use the last inserted sound device as default? (hw.snd.default_auto)=20 - PIN Routing (dev.hdaa.%d.config) - Mixer settings Putting it all together in something called sndcontrol should not be too hard. It just takes someone(TM) to do it --jrSbkLCAP5lJDiYt Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.22 (FreeBSD) iKYEARECAGYFAlM79bVfFIAAAAAALgAoaXNzdWVyLWZwckBub3RhdGlvbnMub3Bl bnBncC5maWZ0aGhvcnNlbWFuLm5ldDE3RkMwOEUxNUUwOUJEMjE0ODlFMjA1MDI5 Q0U3NURBQzBGNzY5RjgACgkQKc512sD3afj83QCff6LSbQZdtxRzfGZFqMdgWZw3 0AgAnjzXM5yLM8NaQm13/hqalZeengsY =2EIo -----END PGP SIGNATURE----- --jrSbkLCAP5lJDiYt--