svn commit: r222826 - head/sys/dev/sound/pcm

Alexander Motin mav at FreeBSD.org
Tue Jun 7 17:48:16 UTC 2011


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


More information about the svn-src-head mailing list