ASoC: dmic: Allow GPIO operations to sleep
authorMark Brown <broonie@kernel.org>
Wed, 22 Apr 2020 08:35:50 +0000 (09:35 +0100)
committerMark Brown <broonie@kernel.org>
Wed, 22 Apr 2020 12:15:57 +0000 (13:15 +0100)
commit5d7e0b1516dfc5901d1e394f17eb55b360e7d3d3
treeca15eddb0399fc9d99a2adb6c08efc513ce054b2
parent4aa86e05be84b0692846799fce16c233a170c559
ASoC: dmic: Allow GPIO operations to sleep

If there is a power GPIO provided we control it from DAPM context so there
is no problem with a sleeping GPIO, use the _cansleep() version of the API
to allow this.

Signed-off-by: Mark Brown <broonie@kernel.org>
Reviewed-by: Tzung-Bi Shih <tzungbi@google.com>
Link: https://lore.kernel.org/r/20200422083550.50711-1-broonie@kernel.org
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/codecs/dmic.c