Date: Tue, 7 Jun 2011 17:01:52 +0000 (UTC) From: Alexander Motin <mav@FreeBSD.org> To: cvs-src-old@freebsd.org Subject: cvs commit: src/sys/dev/sound/pcm sound.c Message-ID: <201106071702.p57H2DRs011631@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
mav 2011-06-07 17:01:52 UTC
FreeBSD src repository
Modified files:
sys/dev/sound/pcm sound.c
Log:
SVN rev 222826 on 2011-06-07 17:01:52Z by mav
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.
Revision Changes Path
1.126 +36 -18 src/sys/dev/sound/pcm/sound.c
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201106071702.p57H2DRs011631>
