ASoC: WCD9310: Fix sequence for clock source change

For scenarios that need changing the clock source to the codec,
the sequence for switching the clock source was not done
correctly, causing the wrong clock to be selected.

If the correct clock is not selected, it is possible that playback
of audio might cause codec overflow issues due to mismatch in
rate at which the codec can consume data and rate at which data is
made availabe to the codec.
Fix the sequence for switching the clock source, this avoids
possible overflow issue during audio playback.

CRs-fixed: 329223
Change-Id: I410a4dd65cc236c28b788bc5b02db5237157ea6b
Signed-off-by: Bhalchandra Gajare <gajare@codeaurora.org>
1 file changed