diff options
author | Subhransu S. Prusty | 2016-04-01 13:36:26 +0530 |
---|---|---|
committer | Mark Brown | 2016-04-02 09:28:02 -0700 |
commit | 1b377ccddd14cd04df4b9523a426b34f928002bc (patch) | |
tree | 8e775c246a1e8f2066db866305dd70223245b94e /sound/soc/codecs/ssm2518.h | |
parent | 0fee1798af81b1428d8d5886ea48116444e635fc (diff) |
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/soc/codecs/ssm2518.h')
0 files changed, 0 insertions, 0 deletions