diff options
author | Takashi Iwai <[email protected]> | 2023-01-05 10:35:30 +0100 |
---|---|---|
committer | Takashi Iwai <[email protected]> | 2023-01-07 09:29:38 +0100 |
commit | 15a59cb0a3d6ddf2cb79f8dc3081b3130aad3767 (patch) | |
tree | 0d9b165f5f66a1b709978bbd795a9d19c08486ea /tools/perf/scripts/python/check-perf-trace.py | |
parent | 9c694fbfe6f36017b060ad74c7565cb379852e40 (diff) |
ALSA: hda: cs35l41: Don't return -EINVAL from system suspend/resume
The recent commit to support the system suspend for CS35L41 caused a
regression on the models with CS35L41_EXT_BOOST_NO_VSPK_SWITC boost
type, as the suspend/resume callbacks just return -EINVAL. This is
eventually handled as a fatal error and blocks the whole system
suspend/resume.
For avoiding the problem, this patch corrects the return code from
cs35l41_system_suspend() and _resume() to 0, and replace dev_err()
with dev_err_once() for stop spamming too much.
Fixes: 88672826e2a4 ("ALSA: hda: cs35l41: Support System Suspend")
Cc: <[email protected]>
Link: https://lore.kernel.org/all/[email protected]
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Takashi Iwai <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/check-perf-trace.py')
0 files changed, 0 insertions, 0 deletions