ASoC: wcd9xxx: don't change clock frequency while bandgap/clock are on

After subsystem restart, codec drivers enable bandgap and clock if those
were enabled before subsystem restart to restore previous state.
The bandgap and clock enablement is followed by codec re-initialization
which includes master clock frequency change.
When master clock frequency changes while bandgap/clock are on, there is
chance to make hardware goes into bad state which results in audio mute
issue.

Change bandgap and clock enable sequence to guarantee that those are
enabled after master clock frequency changes completed.

CRs-fixed: 513412
Change-Id: I9bcd1ed55ec0bd7fe790caf0dd01bbe8b4c4c52c
Signed-off-by: Joonwoo Park <joonwoop@codeaurora.org>
2 files changed