Re: [PATCH v4 0/3] ALSA: opl3: Fix sequencer timer and channel lifetimes
From: Takashi Iwai
Date: Mon Oct 26 2026 - 04:02:08 EST
On Sat, 24 Oct 2026 18:49:48 +0200,
Cen Zhang wrote:
>
> OPL3 can receive a fixed-duration note before its timer is initialized,
> and the card-owned voice array can retain channel pointers after either
> sequencer port has freed its channel set. The delayed-note timer can also
> remain queued after the sequencer client has been deleted.
>
> Initialize the timer before publishing ports, key off active voices and
> clear their aliases before freeing each channel set, and shut down the
> shared timer after client deletion has drained both event producers.
> Retire higher-numbered partners before their 4-op primaries so no active
> hardware KEYON is skipped when the primary changes its partner's state.
>
> This series applies to tiwai/sound.git for-next at d74eb09af56b.
>
> ---
> Cen Zhang (3):
> ALSA: opl3: Initialize the timer before publishing a sequencer port
> ALSA: opl3: Clear voice channels before freeing their sets
> ALSA: opl3: Shut down the timer after draining sequencer ports
Applied all three patches now. Thanks.
Takashi