Skip to content
Commit 62558ce1 authored by Takashi Iwai's avatar Takashi Iwai
Browse files

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: default avatarTakashi Iwai <tiwai@suse.de>
parent 50c62f06
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment