[alsa-devel] [PATCH 7/7] ASoC: max9867: Take chip out of shutdown

Ladislav Michl ladis at linux-mips.org
Tue Jan 30 12:11:12 CET 2018


Signed-off-by: Ladislav Michl <ladis at linux-mips.org>
---
 Note: It would be great to take only used parts of
       codec out of shutdown and put them to sleep
       again once unused.

 sound/soc/codecs/max9867.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/sound/soc/codecs/max9867.c b/sound/soc/codecs/max9867.c
index 6272cf5df4a9..06d11b9f4286 100644
--- a/sound/soc/codecs/max9867.c
+++ b/sound/soc/codecs/max9867.c
@@ -158,8 +158,7 @@ static int max9867_prepare(struct snd_pcm_substream *substream,
 	struct snd_soc_codec *codec = dai->codec;
 	struct max9867_priv *max9867 = snd_soc_codec_get_drvdata(codec);
 
-	regmap_update_bits(max9867->regmap, MAX9867_PWRMAN,
-		MAX9867_SHTDOWN_MASK, MAX9867_SHTDOWN_MASK);
+	regmap_write(max9867->regmap, MAX9867_PWRMAN, 0xff);
 	return 0;
 }
 
-- 
2.15.1



More information about the Alsa-devel mailing list