ASoC: wcd9310: Configure bandgap/clock block when needed.

The current code enables bandgap/clock block at boot but never
turns off these blocks when not in use. This results in higher
than expected power leakage in idle mode.

Disable bandgap and clock blocks when no audio is playing and
no headset is inserted.

CRs-Fixed: 330961
Change-Id: I1f51d99320ffe03ef1a569349405ad4cbaa9c868
Signed-off-by: Asish Bhattacharya <asishb@codeaurora.org>
1 file changed