ALSA: hda - Proper power-map toggling for input pins
authorTakashi Iwai <tiwai@suse.de>
Fri, 5 Dec 2008 12:09:27 +0000 (13:09 +0100)
committerTakashi Iwai <tiwai@suse.de>
Fri, 5 Dec 2008 12:09:27 +0000 (13:09 +0100)
commit12dde4c6d6e9092cf63094e84dc1fe4e505dd6d0
treea4ff353b79e346d663be73200a00385591e46722
parente6e3ea25b1679b55728a8a470a50a8fff61e8a45
ALSA: hda - Proper power-map toggling for input pins

The current code overrides the event type on input pins always to
PWR_EVENT.  Although this still works (PWR_EVENT and INSERT_EVENT
are handled samely), it'd be better to avoid such overrides.

Also, currently the unsol events are registered even for fixed pins
which will never raise the pin-detection event.

This patch fixes both issues.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/pci/hda/patch_sigmatel.c