ALSA: hda - Add power state filtering
authorTakashi Iwai <tiwai@suse.de>
Thu, 24 Jan 2013 16:23:35 +0000 (17:23 +0100)
committerTakashi Iwai <tiwai@suse.de>
Thu, 24 Jan 2013 16:23:35 +0000 (17:23 +0100)
commit9419ab6b72325e20789a61004cf68dc9e909a009
treef9c7a7ddaec6208153716ae798e4374ae49f06a0
parent25368c47aee6d909923001918041f2e94bfa02ef
ALSA: hda - Add power state filtering

Add a hook to struct hda_codec for filtering the target power state of
each widget when powering up/down.  The current hackish EAPD check is
implemented as the default hook pointer, too.

This allows codec drivers to implement own power filter.  In the
upcoming changes, the generic parser will have the better power filter
based on the active paths.

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