]> git.karo-electronics.de Git - karo-tx-linux.git/commit
ASoC: hdac_hdmi: Fix codec power state in S3 during playback
authorSubhransu S. Prusty <subhransu.s.prusty@intel.com>
Fri, 1 Apr 2016 08:06:26 +0000 (13:36 +0530)
committerMark Brown <broonie@kernel.org>
Sat, 2 Apr 2016 16:28:02 +0000 (09:28 -0700)
commit1b377ccddd14cd04df4b9523a426b34f928002bc
tree8e775c246a1e8f2066db866305dd70223245b94e
parent0fee1798af81b1428d8d5886ea48116444e635fc
ASoC: hdac_hdmi: Fix codec power state in S3 during playback

If the system enters S3 during a playback, codec power needs to
be turned OFF during suspend and restored during resume. With
this patch the AFG node is set to D3 and codec power is turned
OFF during controller suspend call.

During resume, the codec power is left in ON state if the
playback was in progress while suspending.

Also setting power state for AFG node is optimized. With this the
loop with timeout is removed and codec_read is used instead.

Signed-off-by: Subhransu S. Prusty <subhransu.s.prusty@intel.com>
Signed-off-by: Vinod Koul <vinod.koul@intel.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/codecs/hdac_hdmi.c