Date: Tue, 07 Jun 2011 20:47:32 +0300 From: Alexander Motin <mav@FreeBSD.org> To: Hans Petter Selasky <hselasky@c2i.net> Cc: "svn-src-head@freebsd.org" <svn-src-head@freebsd.org>, "svn-src-all@freebsd.org" <svn-src-all@freebsd.org>, "src-committers@freebsd.org" <src-committers@freebsd.org> Subject: Re: svn commit: r222826 - head/sys/dev/sound/pcm Message-ID: <4DEE6434.5030406@FreeBSD.org> In-Reply-To: <201106071930.49724.hselasky@c2i.net> References: <201106071701.p57H1qvN092370@svn.freebsd.org> <201106071930.49724.hselasky@c2i.net>
next in thread | previous in thread | raw e-mail | index | archive | help
Hans Petter Selasky wrote: > On Tuesday 07 June 2011 19:01:52 Alexander Motin wrote: >> Author: mav >> Date: Tue Jun 7 17:01:52 2011 >> New Revision: 222826 >> URL: http://svn.freebsd.org/changeset/base/222826 >> >> Log: >> Make automatic hw.snd.default_unit choice a bit more intelligent. Instead >> of just setting it to the first registered device, reevaluate it for each >> device registered, trying to choose best candidate, unless one was >> forced. For now use such preference order: play&rec, play, rec. >> >> As side effect, this should workaround the situation when HDMI audio >> output of the video card, usually not connected to anything, becomes >> default, that requires manual user intervention to make sound working. If >> at some point this won't be enough, we can try to fetch some additional >> priority flags from the device driver. > > Idea: I would be cool if some GTK mixer apps can set this value. Definitely. This patch only tries to set more or less reasonable initial default, which later may need to be tuned. I am personally using two different playback devices depending on situation: digital (SPDIF) pcm1 at home and analog pcm0 when out. Now I am switching it via sysctl, but obviously it is not the "right way". -- Alexander Motin
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4DEE6434.5030406>