]> git.baikalelectronics.ru Git - kernel.git/commit
ALSA: hda - Create jack-detection kcontrols
authorTakashi Iwai <tiwai@suse.de>
Thu, 27 Oct 2011 22:03:22 +0000 (00:03 +0200)
committerTakashi Iwai <tiwai@suse.de>
Wed, 16 Nov 2011 10:12:17 +0000 (11:12 +0100)
commit9dc25a25dc769a874a906b29e4ae29dfcb86e0ca
tree04f817cb8cec2bae3edcc9a873aea1b674b146ad
parentf35bf94b996a8196b5ecc6f024110c2be6c96b9c
ALSA: hda - Create jack-detection kcontrols

Create kcontrols for pin jack-detections, which work similarly like
jack-input layer.  Each control will notify when the jack is plugged or
unplugged, and also user can read the value at any time via the normal
control API.

The control elements are created with iface=CARD, so that they won't
appear in the mixer apps.

So far, only the pins that enabled the jack-detection are registered.
For covering all pins, the transition of the common unsol-tag handling
would be needed.  Stay tuned.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/pci/hda/hda_jack.c
sound/pci/hda/hda_jack.h
sound/pci/hda/patch_cirrus.c
sound/pci/hda/patch_conexant.c
sound/pci/hda/patch_hdmi.c
sound/pci/hda/patch_realtek.c
sound/pci/hda/patch_sigmatel.c
sound/pci/hda/patch_via.c