mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH 0/2] ALSA: xen-front: Fix event channel stream lifetime bugs
@ 2026-05-26 12:48 Cássio Gabriel
  2026-05-26 12:48 ` [PATCH 1/2] ALSA: xen-front: Reset event channel state on stream clear Cássio Gabriel
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Cássio Gabriel @ 2026-05-26 12:48 UTC (permalink / raw)
  To: Takashi Iwai, Oleksandr Andrushchenko, Jaroslav Kysela
  Cc: xen-devel, linux-sound, linux-kernel, Cássio Gabriel

Fix two related event-channel issues in the Xen ALSA frontend.

The first patch resets the event channel's expected incoming event
id when a stream is cleared, and drops stale queued events from
the previous stream instance.

The second patch keeps the request channel connected from .open(),
where it is needed for hw-rule queries and stream open requests,
but delays the event channel until after a successful .prepare().
This prevents current-position events from reaching the ALSA position
handler before runtime buffer and period geometry are valid.

Signed-off-by: Cássio Gabriel <cassiogabrielcontato@gmail.com>
---
Cássio Gabriel (2):
      ALSA: xen-front: Reset event channel state on stream clear
      ALSA: xen-front: Connect event channel after stream prepare

 sound/xen/xen_snd_front_alsa.c    | 17 ++++++++++++-----
 sound/xen/xen_snd_front_evtchnl.c | 28 +++++++++++++++++++---------
 sound/xen/xen_snd_front_evtchnl.h |  6 ++++--
 3 files changed, 35 insertions(+), 16 deletions(-)
---
base-commit: 31d40472d5699a6139fe3a2ad6558645a99b7422
change-id: 20260423-alsa-xen-event-channel-fixes-6e4b40e649f7

Best regards,
--  
Cássio Gabriel <cassiogabrielcontato@gmail.com>


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

end of thread, other threads:[~2026-05-27  5:29 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-05-26 12:48 [PATCH 0/2] ALSA: xen-front: Fix event channel stream lifetime bugs Cássio Gabriel
2026-05-26 12:48 ` [PATCH 1/2] ALSA: xen-front: Reset event channel state on stream clear Cássio Gabriel
2026-05-26 12:48 ` [PATCH 2/2] ALSA: xen-front: Connect event channel after stream prepare Cássio Gabriel
2026-05-27  5:29 ` [PATCH 0/2] ALSA: xen-front: Fix event channel stream lifetime bugs 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®