Commit 07c9983b567d0ef33aefc063299de95a987e12a8

Authored by Hui Wang
Committed by Takashi Iwai
1 parent 7fe3530427

Revert "ALSA: hda: call runtime_allow() for all hda controllers"

This reverts commit 9a6418487b56 ("ALSA: hda: call runtime_allow()
for all hda controllers").

The reverted patch already introduced some regressions on some
machines:
 - on gemini-lake machines, the error of "azx_get_response timeout"
   happens in the hda driver.
 - on the machines with alc662 codec, the audio jack detection doesn't
   work anymore.

Fixes: 9a6418487b56 ("ALSA: hda: call runtime_allow() for all hda controllers")
BugLink: https://bugzilla.kernel.org/show_bug.cgi?id=208511
Cc: <stable@vger.kernel.org>
Signed-off-by: Hui Wang <hui.wang@canonical.com>
Link: https://lore.kernel.org/r/20200803064638.6139-1-hui.wang@canonical.com
Signed-off-by: Takashi Iwai <tiwai@suse.de>

Showing 1 changed file with 0 additions and 1 deletions Side-by-side Diff

sound/pci/hda/hda_intel.c
... ... @@ -2352,7 +2352,6 @@
2352 2352  
2353 2353 if (azx_has_pm_runtime(chip)) {
2354 2354 pm_runtime_use_autosuspend(&pci->dev);
2355   - pm_runtime_allow(&pci->dev);
2356 2355 pm_runtime_put_autosuspend(&pci->dev);
2357 2356 }
2358 2357