From: Takashi Iwai Date: Tue, 28 Aug 2012 16:59:20 +0000 (-0700) Subject: ALSA: hda - Fix D3 clock stop check for codecs with own set_power_state op X-Git-Tag: v3.7-rc1~81^2~61 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=432c641e013d6e294e2ddf06d32a610eb1d4d856;p=pandora-kernel.git ALSA: hda - Fix D3 clock stop check for codecs with own set_power_state op When a codec provides its own set_power_state op, the D3-clock-stop isn't checked correctly. And the recent changes for repeating the state-setting operation isn't applied to such a codec, too. This patch fixes these issues by moving the call of codec's own op to the place where the generic power-set operation is done, and move the power-state synchronization code out of snd_hda_set_power_state_to_all() so that it can be called always at the end of power-up/down sequence, and updates the D3 clock-stop flag properly. Signed-off-by: Takashi Iwai --- Reading git-diff-tree failed