diff options
author | Harsha Priya <harshapriya.n@intel.com> | 2020-09-30 13:41:39 +0200 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2020-09-30 16:52:48 +0200 |
commit | a0645daf16101bb9a6d87598c17e9a8b7bd60ea7 (patch) | |
tree | 59a61c0248b82ca63c4cca82ad45f1cb498c06d2 /crypto/ecdh.c | |
parent | ALSA: hda - Don't register a cb func if it is registered already (diff) | |
download | linux-a0645daf16101bb9a6d87598c17e9a8b7bd60ea7.tar.xz linux-a0645daf16101bb9a6d87598c17e9a8b7bd60ea7.zip |
ALSA: HDA: Early Forbid of runtime PM
For certain codecs (like Realtek), pm_runtime_forbid() is invoked
in the probe function after build_controls(). In a stress test,
its observed occasionally that runtime PM calls are invoked
before controls are built. This causes the codec to be
runtime suspended before probe completes. Because of this, not all
controls are enumerated correctly, and audio does not work until
system is rebooted.
This issue being common across all codecs, pm_runtime_forbid() is
called when the codec object is created to fix this issue.
A codec enables or disables runtime pm in its own probe function.
Multiple stress tests of 2000+ cycles has been done to test the fix.
Signed-off-by: Harsha Priya <harshapriya.n@intel.com>
Signed-off-by: Emmanuel Jillela <emmanuel.jillela@intel.com>
Reviewed-by: Kailang Yang <kailang@realtek.com>
Signed-off-by: Kai Vehmanen <kai.vehmanen@linux.intel.com>
Link: https://lore.kernel.org/r/20200930114140.3839617-2-kai.vehmanen@linux.intel.com
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'crypto/ecdh.c')
0 files changed, 0 insertions, 0 deletions