OSDN Git Service

ASoC: max9867: keep ADCs and DACs always on
authorPavel Dobias <dobias@2n.cz>
Fri, 22 May 2020 14:29:57 +0000 (16:29 +0200)
committerMark Brown <broonie@kernel.org>
Fri, 22 May 2020 18:14:08 +0000 (19:14 +0100)
commit29c859df7b52080f0809b8a0b9d7b86fff379ef9
tree05a49c021b0839a37c62013e58d3fd1f093acede
parent980b63f8d040a791e8d751b8065d12ad7865f976
ASoC: max9867: keep ADCs and DACs always on

Updating power management register requires toggling the shutdown
bit otherwise it causes unexpected behavior of the codec.
However, toggling the shutdown bit results in loud speaker crackling.
Setup the power management register only at startup to avoid that.

Signed-off-by: Pavel Dobias <dobias@2n.cz>
Link: https://lore.kernel.org/r/20200522142957.18364-3-dobias@2n.cz
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/codecs/max9867.c
sound/soc/codecs/max9867.h