ALSA: hda - Create jack-detection kcontrols
authorTakashi Iwai <tiwai@suse.de>
Thu, 27 Oct 2011 22:03:22 +0000 (00:03 +0200)
committerLeann Ogasawara <leann.ogasawara@canonical.com>
Mon, 2 Apr 2012 20:18:11 +0000 (13:18 -0700)
commitea0c66e949efcd932927912a5f4f4f36c8f19444
tree6b634517292366799e1b0608fa9f58ec7c6f0c1b
parentf41eb00232b22ffd9672817ca601f6f13b0b31bf
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>

(backported from commit 01a61e12b4602c82bde9797d0e153f3e53c95b04,
Conflicts:
sound/pci/hda/patch_hdmi.c
sound/pci/hda/patch_via.c)
Signed-off-by: David Henningsson <david.henningsson@canonical.com>
Signed-off-by: Leann Ogasawara <leann.ogasawara@canonical.com>
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