ASoC: wcd9xxx: use separate mutex for bandgap and clock get/put

Current bandgap and clock get/put uses the big codec lock which is widely
used by entire resource manager.  Embrace bandgap and clock resource
manager api with big codec lock can lead deadlock on certain device
switch case.  Introduce separate mutex only for bandgap and clock resource
manager api to be able to avoid mutex deadlock.

CRs-fixed: 501236
Change-Id: Ia9ee12d767c86ed3db2223f1a4721834b7d6768d
Signed-off-by: Joonwoo Park <joonwoop@codeaurora.org>
5 files changed