freebsd-nq/share
Alexander Motin d9360bbfc4 Rewrite jack presence detection and implement automatic recording source
selection in snd_hda(4) driver.

Now driver tracks jack presence detection status for every CODEC pin. For
playback associations, when configured, that information, same as before,
can be used to automatically redirect audio to headphones. Also same as
before, these events are used to track digital display connection status
and fetch ELD. Now in addition to that driver uses that information to
automatically switch recording source of the mixer to the connected input.

When there are devices with no jack detection and with one both connected,
last ones will have the precedence. As result, on most laptops after boot
internal microphone should be automatically selected. But if external one
(for example, headset) connected, it will be selected automatically.
When external mic disconnected, internal one will be selected again.

Automatic recording source selection is enabled by default now to make
recording work out of the box without touching mixer. But it can be
disabled or limited only to attach time using hint.pcm.X.rec.autosrc loader
tunables or dev.pcm.X.rec.autosrc sysctls.

MFC after:	2 months
Sponsored by:	iXsystems, Inc.
2012-01-25 20:46:10 +00:00
..
colldef
dict
doc Spelling fixes for share/ 2011-12-30 11:11:54 +00:00
examples Comment cosmetics: end more sentences with full stops. 2012-01-18 14:41:26 +00:00
i18n
info
man Rewrite jack presence detection and implement automatic recording source 2012-01-25 20:46:10 +00:00
me
misc Copyright years updated. 2012-01-13 06:18:23 +00:00
mk Allow crunchgen binary link generation to be disabled. 2012-01-05 21:49:43 +00:00
mklocale
monetdef Fix the number of decimal digits used for Swiss Francs (0 -> 2). Found by the libc++ test suite. If there is some locale test suite somewhere, it might be worth running it... 2011-11-12 14:39:20 +00:00
msgdef
numericdef
security
sendmail
skel skel/.shrc: Improve commented CDPATH example for POSIX requirements. 2011-06-10 13:47:11 +00:00
snmp
syscons Include descriptions for keymaps missing from INDEX.keymaps. This fixes 2011-09-13 21:15:23 +00:00
tabset
termcap Spelling fixes for share/ 2011-12-30 11:11:54 +00:00
timedef
zoneinfo
Makefile
Makefile.inc