ALSA: hda - Manage unsol tags in hda_jack.c
authorTakashi Iwai <tiwai@suse.de>
Thu, 27 Oct 2011 23:16:55 +0000 (01:16 +0200)
committerTakashi Iwai <tiwai@suse.de>
Wed, 16 Nov 2011 10:14:03 +0000 (11:14 +0100)
commit3a93897ea37cbb8277f8a4232c12c0c18168a7db
tree1c79df3bb270e86c61bdb13fab0bf66cbd3682ac
parent01a61e12b4602c82bde9797d0e153f3e53c95b04
ALSA: hda - Manage unsol tags in hda_jack.c

Manage the tags assigned for unsolicited events dynamically together
with the jack-detection routines.  Basically this is almost same as what
we've done in patch_sigmatel.c.  Assign the new tag number for each new
unsol event, associate with the given NID and the action type, etc.

With this change, now all pins looked over in snd_hda_jack_add_kctls()
are actually enabled for detection now even if the pins aren't used for
jack-retasking by the driver.

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