]> git.baikalelectronics.ru Git - kernel.git/commit
ASoC: ak4613: call dummy write for PW_MGMT1/3 when Playback
authorKuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Wed, 24 Jan 2018 05:11:42 +0000 (05:11 +0000)
committerMark Brown <broonie@kernel.org>
Wed, 24 Jan 2018 11:31:25 +0000 (11:31 +0000)
commit43ac77c8653d4d9d62e7bd5ee5f7da59345d6531
tree43841ce05e23cfe51d10a1172b6037fcbdfbe171
parentfc34a8d7a6e80eb2c2304f3fb1526e012599ae42
ASoC: ak4613: call dummy write for PW_MGMT1/3 when Playback

Power Down Release Command (PMVR, PMDAC, RSTN, PMDA1-PMDA6)
which are located on PW_MGMT1 / PW_MGMT3 register must be
write again after at least 5 LRCK cycle or later on each command.
Otherwise, Playback volume will be 0dB.
Basically, it should be

        1.   PowerDownRelease by Power Management1 <= call 1.x after 5LRCK
        1.x  Dummy write      to Power Management1
        2.   PowerDownRelease by Power Management3 <= call 2.x after 5LRCK
        2.x  Dummy write      to Power Management3

To avoid too many dummy write, this patch is merging these.

        1.   PowerDownRelease by Power Management1
        2.   PowerDownRelease by Power Management3   <= call after 5LRCK
        2.x  Dummy write      to Power Management1/3 <= merge dummy write

This patch adds dummy write when Playback Start timing.

Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/codecs/ak4613.c