mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH v2 0/3] ALSA: pcm: Retain components across codec teardown
@ 2026-10-24 11:41 Cen Zhang
  2026-10-24 11:41 ` [PATCH v2 1/3] ALSA: pcm: Retain components across native minor lookups Cen Zhang
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: Cen Zhang @ 2026-10-24 11:41 UTC (permalink / raw)
  To: perex, tiwai
  Cc: linux-sound, linux-kernel, tiwai, baijiaju1990, jjzuming, zzzccc427

A pending PCM opener can retain the card without retaining a PCM removed
by codec-only unbind. A late codec probe can also publish PCM devices
before a subsequent registration failure starts cleanup.

Retain native and OSS PCM lookups through file release, close admission
at component disconnect, and drain codec users before probe-error cleanup.
Keep the existing proc rundown outside open_mutex at disconnect, and wait
for PCM references in final cleanup after the lookup gate is closed.

---
Cen Zhang (3):
  ALSA: pcm: Retain components across native minor lookups
  ALSA: pcm: oss: Retain the PCM from minor lookup through release
  ALSA: hda: Drain PCM users before cleaning up a failed codec probe

 include/sound/pcm.h      | 11 ++++++
 sound/core/oss/pcm_oss.c | 20 +++++++----
 sound/core/pcm.c         | 74 ++++++++++++++++++++++++++++++++++++++--
 sound/core/pcm_native.c  | 44 ++++++++++++++++--------
 sound/hda/common/bind.c  |  3 ++
 5 files changed, 128 insertions(+), 24 deletions(-)

Changes in v2:
- Replace the setup-list-only fix with separate native PCM, OSS PCM and HDA
  probe-error lifetime fixes.
- Retain PCM references from minor lookup through file release and roll back
  partially registered minors.
- Rebase onto current for-next while preserving proc rundown outside
  open_mutex at device disconnect.
- Drain codec PCM users before probe-error cleanup removes driver state.
- Describe the native HDA codec sysfs-unbind and PCM cleanup sequence
  explicitly in the core patch.

Link to v1: https://lore.kernel.org/r/pm-pmb-a4703edca61d34aa679b-v6-680f350d78e44f9de7a7@gmail.com

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

end of thread, other threads:[~2026-10-26  8:39 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-10-24 11:41 [PATCH v2 0/3] ALSA: pcm: Retain components across codec teardown Cen Zhang
2026-10-24 11:41 ` [PATCH v2 1/3] ALSA: pcm: Retain components across native minor lookups Cen Zhang
2026-10-24 11:41 ` [PATCH v2 2/3] ALSA: pcm: oss: Retain the PCM from minor lookup through release Cen Zhang
2026-10-24 11:41 ` [PATCH v2 3/3] ALSA: hda: Drain PCM users before cleaning up a failed codec probe Cen Zhang
2026-10-26  8:39 ` [PATCH v2 0/3] ALSA: pcm: Retain components across codec teardown 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®