From: Takashi Iwai Date: Wed, 29 Jul 2009 12:23:09 +0000 (+0200) Subject: ALSA: hda - Avoid overwrite of jack events with STAC/IDT X-Git-Tag: v2.6.32-rc1~732^2~13^2~56 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=62558ce15759ee93223132258588320967e1e521;p=pandora-kernel.git ALSA: hda - Avoid overwrite of jack events with STAC/IDT Since only one event can be associated to a (pin) widget, it's safer to avoid the multiple mapping. This patch fixes the behavior of the STAC/IDT codec driver. Now stac_get_event() doesn't take the type argument but simply returns the first hit element. Then enable_pin_detect() checks the validity of the type, and returns non-zero only if a valid entry. The caller can call stac_issue_unsol_event() after checking the return value. Signed-off-by: Takashi Iwai --- Reading git-diff-tree failed