ASoC: da7219: Reset codec gracefully, if still active
authorAdam Thomson <Adam.Thomson.Opensource@diasemi.com>
Mon, 26 Sep 2016 13:29:20 +0000 (14:29 +0100)
committerMark Brown <broonie@kernel.org>
Mon, 26 Sep 2016 16:39:40 +0000 (09:39 -0700)
commita7f16ea90ecffde4d4915eb7c81b11428e636920
treed154b8b1069cb4e594349e24d65f30f0c18cea4c
parent8339f0b6b209b640afe8381aa9b5d7accfeaf848
ASoC: da7219: Reset codec gracefully, if still active

Currently the reset code in i2c_probe only resets the AAD part of
the device and not the entire codec. This patch updates the driver
to resolve this and ensures that if the codec is still active from
a previous boot then the audio paths are powered down prior to
reset.

Signed-off-by: Adam Thomson <Adam.Thomson.Opensource@diasemi.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/codecs/da7219.c
sound/soc/codecs/da7219.h