mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH v3 0/3] HDA controller PM and codec PM cleanups
@ 2020-10-27 13:00 Kai-Heng Feng
  2020-10-27 13:00 ` [PATCH v3 1/3] ALSA: hda: Refactor codec PM to use direct-complete optimization Kai-Heng Feng
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: Kai-Heng Feng @ 2020-10-27 13:00 UTC (permalink / raw)
  To: tiwai
  Cc: perex, hui.wang, kai.vehmanen, mwolf, alsa-devel, linux-kernel,
	Kai-Heng Feng

While working on the issue "ALSA: hda: fix jack detection with Realtek
codecs when in D3", I've found using pm_runtime_force_{suspend,resume}()
have surprising behavior, specifically, pm_runtime_need_not_resume()
uses pm_runtime_need_not_resume() to avoid calling resume callback, so
jackpoll was used to really power up the codec.

We can use direct-complete to do the keep the codec suspended throughout
the system PM flow, namely, keep the codec suspended all the way, unless
the codec needs to be woken up after resume.

For HDA controller, PCI core may enable direct-complete for it if
conditions are met. So make runtime and system PM distinctive to always
apply correct wake up setting.

At least point, hopefully all runtime PM issues are solved, let's enable
runtime PM by default again.

v3:
 - Drop "ALSA: hda: Stop mangling PCI IRQ"

Kai-Heng Feng (3):
  ALSA: hda: Refactor codec PM to use direct-complete optimization
  ALSA: hda: Separate runtime and system suspend
  ALSA: hda: Reinstate runtime_allow() for all hda controllers

 sound/pci/hda/hda_codec.c      | 45 +++++++++++++++---------
 sound/pci/hda/hda_controller.h |  3 +-
 sound/pci/hda/hda_intel.c      | 63 +++++++++++++++++++---------------
 3 files changed, 66 insertions(+), 45 deletions(-)

-- 
2.17.1


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2020-10-29  1:23 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-10-27 13:00 [PATCH v3 0/3] HDA controller PM and codec PM cleanups Kai-Heng Feng
2020-10-27 13:00 ` [PATCH v3 1/3] ALSA: hda: Refactor codec PM to use direct-complete optimization Kai-Heng Feng
2020-10-27 13:00 ` [PATCH v3 2/3] ALSA: hda: Separate runtime and system suspend Kai-Heng Feng
2020-10-27 13:00 ` [PATCH v3 3/3] ALSA: hda: Reinstate runtime_allow() for all hda controllers Kai-Heng Feng
2020-10-28 19:38 ` [PATCH v3 0/3] HDA controller PM and codec PM cleanups Takashi Iwai

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®