You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[Bug][HDA][WHL] Can't stay in runtime PM suspend status when headset connected. #2003
The root cause is the sof-dev branch merged this upstream commit: 76f7dec (ALSA: hda/realtek - Add Headset Button supported for ThinkPad X1), with this commit, if we set the codec to auto-suspend, the codec driver will trigger a fake key event during calling rt_suspend(), so the driver will rt_resume() and rt_suspend() periodically.
This issue also exists in the legacy hda driver, and please set CONFIG_SND_HDA_POWER_SAVE_DEFAULT to 1 otherwise rt_pm is not neabled in the hda codec driver.
Activity
ClarexZhou commentedon Apr 9, 2020
The root cause is the sof-dev branch merged this upstream commit: 76f7dec (ALSA: hda/realtek - Add Headset Button supported for ThinkPad X1), with this commit, if we set the codec to auto-suspend, the codec driver will trigger a fake key event during calling rt_suspend(), so the driver will rt_resume() and rt_suspend() periodically.
This issue also exists in the legacy hda driver, and please set CONFIG_SND_HDA_POWER_SAVE_DEFAULT to 1 otherwise rt_pm is not neabled in the hda codec driver.
So it is not my patches introduced this regression, my patches exposed a hidden problem. I just sent a patch for fixing this problem: https://mailman.alsa-project.org/pipermail/alsa-devel/2020-March/165395.html
from #1837 (comment)
ClarexZhou commentedon Apr 10, 2020
close as a codec issue and the fix has already been applied in upstream https://mailman.alsa-project.org/pipermail/alsa-devel/2020-March/165400.html