]> git.baikalelectronics.ru Git - kernel.git/commit
ALSA: hda - Sync node attributes at resume from widget power saving
authorTakashi Iwai <tiwai@suse.de>
Sat, 4 Apr 2015 10:17:28 +0000 (12:17 +0200)
committerTakashi Iwai <tiwai@suse.de>
Sat, 4 Apr 2015 10:22:52 +0000 (12:22 +0200)
commitb944d0fed587f94286f74f228cff7d9dbe95095e
treed4f756b072131bef0c4b04b67e00aaa872fa371b
parente0e2954a2f8e4914918cf28b253b6706a7ab3fe4
ALSA: hda - Sync node attributes at resume from widget power saving

So far we assumed that the node attributes like amp values remain
during the power state transition of the node itself.  While this is
true for IDT/STAC codecs I've tested, but some other codecs don't seem
behaving in that way.

This patch implements a partial sync mechanism specific to the given
widget node.  Now we've merged the regmap support, and it can be
easily written with regcache_sync_region().

Tested-by: Hui Wang <hui.wang@canonical.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
include/sound/hda_regmap.h
sound/pci/hda/hda_generic.c