ASoC: DMIC: Get PM resources during DMIC_CTRL access
authorMisael Lopez Cruz <misael.lopez@ti.com>
Wed, 18 May 2011 22:00:44 +0000 (17:00 -0500)
committerRuslan Bilovol <x0155540@ti.com>
Wed, 29 Jun 2011 11:46:12 +0000 (14:46 +0300)
commit0401222b5302b10710cc95645067d028cca15a51
tree652bfaca29d91d16edf5438ca1d77f791b1a7887
parentaca0ad5b518cfee74dcbdc1c0f3c2bd25aa7560a
ASoC: DMIC: Get PM resources during DMIC_CTRL access

When disabling DMIC lines while request is ongoing, DMIC driver was
accessing DMIC_CTRL register without properly acquiring/releasing
PM resources. Adding corresponding PM runtime calls around this
section ensures that it's safe to access DMIC_CTRL register.

Change-Id: I8a0290b80506e00c79bf5a7a8c8860236b121948
Signed-off-by: Misael Lopez Cruz <misael.lopez@ti.com>
Signed-off-by: Axel Castaneda Gonzalez <x0055901@ti.com>
sound/soc/omap/omap-dmic.c