From: Marek Vasut Date: Tue, 28 May 2013 18:55:56 +0000 (+0200) Subject: ASoC: sgtl5000: Fix VAG_POWER enabling/disabling order X-Git-Tag: omap-for-v3.11/fixes-for-merge-window~15^2~3^2~24^2~10^2~6 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=dd4d2d6dfb49e8916064f2cb07f0ad7b32a82fb7;p=pandora-kernel.git ASoC: sgtl5000: Fix VAG_POWER enabling/disabling order The VAG_POWER must be enabled after all other bits in CHIP_ANA_POWER and disabled before any other bit in CHIP_ANA_POWER. See the SGTL5000 datasheet (Table 31, BIT 7, page 42-43). Failing to follow this order will result in ugly loud "POP" noise at the end of playback. To achieve such order, use the _PRE and _POST DAPM widgets to trigger the power_vag_event, where the event type check has to be fixed accordingly as well. Signed-off-by: Marek Vasut Signed-off-by: Mark Brown --- Reading git-diff-tree failed