From: Dong Aisheng Date: Fri, 20 Jul 2012 09:20:24 +0000 (+0800) Subject: ASoC: mxs-saif: fix clock prepare and enable unbalance issue X-Git-Tag: v3.6-rc2~34^2^2~13 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c2e1d9073fc98f471067c0257a31b4818306ebe1;p=pandora-kernel.git ASoC: mxs-saif: fix clock prepare and enable unbalance issue Currently we directly call a clock_enable in trigger function without a clk_prepare as pair first. This will cause system hang immediately when run capture because the clock was not prepared(playback does not hang because the clock was prepared already by get_mclk before), a warning message in clock framework may cause a deadlock to reclaim clock lock (see: pl011_console_write). Here we prepare clock first in hw_param, then enable it in trigger function to guarantee the balance. Signed-off-by: Dong Aisheng Acked-by: Shawn Guo Signed-off-by: Mark Brown --- Reading git-diff-tree failed