Re: [PATCH 0/2] ALSA: xen-front: Fix event channel stream lifetime bugs
From: Takashi Iwai
Date: Wed May 27 2026 - 01:29:31 EST
On Tue, 26 May 2026 14:48:25 +0200,
Cássio Gabriel wrote:
>
> 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@xxxxxxxxx>
> ---
> Cássio Gabriel (2):
> ALSA: xen-front: Reset event channel state on stream clear
> ALSA: xen-front: Connect event channel after stream prepare
Applied both patches now to for-next branch. Thanks.
Takashi