diff options
author | Subhransu S. Prusty <subhransu.s.prusty@intel.com> | 2016-04-01 11:06:26 +0300 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2016-04-02 19:28:02 +0300 |
commit | 1b377ccddd14cd04df4b9523a426b34f928002bc (patch) | |
tree | 8e775c246a1e8f2066db866305dd70223245b94e /sound/core | |
parent | 0fee1798af81b1428d8d5886ea48116444e635fc (diff) | |
download | linux-1b377ccddd14cd04df4b9523a426b34f928002bc.tar.xz |
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>
Diffstat (limited to 'sound/core')
0 files changed, 0 insertions, 0 deletions