Re: [PATCH v33 04/18] ALSA: pcm: notify drivers after linked prepare completes

From: Takashi Iwai

Date: Fri Dec 04 2026 - 03:21:53 EST


On Fri, 04 Dec 2026 02:03:32 +0100,
Joonho Lee wrote:
>
> Hi Takashi,
>
> I tested virtio-snd without "prepare_complete" on QEMU. At first guess I
> thought it needs a direct callback at that time, but I think that not
> introducing the callback from your introduction is much more beneficial.
>
> But in some cases, if both streams were already PREPARED when B's
> re-prepare failed, userspace could still call START on the group. A
> started on the device, B rejected START, and ALSA stopped A and returned
> -EPIPE. Is this rollback implementation policy is acceptable? Love to
> hear your thoughts.

I guess that would be fine as long as it doesn't break the existing
usage patterns. OTOH, it's no mandatory behavior, as the management
of linked streams is a matter of applications, after all.

That said, if the implementation doesn't look too intrusive and
verifications with existing apps using the links are done, that can be
a nice improvement.


thanks,

Takashi