summaryrefslogtreecommitdiffstats
path: root/sys/kern/vfs_cache.c
diff options
context:
space:
mode:
authormav <mav@FreeBSD.org>2012-01-25 20:46:10 +0000
committermav <mav@FreeBSD.org>2012-01-25 20:46:10 +0000
commit30761935c6caad4e8f25453ffd5804be83563d02 (patch)
tree50223e7ec4f1c609359930286e8c90f08229c358 /sys/kern/vfs_cache.c
parente59865bdd01bbff3136a728d65b9ac431721698f (diff)
downloadFreeBSD-src-30761935c6caad4e8f25453ffd5804be83563d02.zip
FreeBSD-src-30761935c6caad4e8f25453ffd5804be83563d02.tar.gz
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.
Diffstat (limited to 'sys/kern/vfs_cache.c')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud