Re: [PATCH] ALSA: seq_oss: return full count for successful SEQ_FULLSIZE writes
From: Takashi Iwai
Date: Fri Mar 27 2026 - 08:00:34 EST
On Tue, 24 Mar 2026 20:59:41 +0100,
Cássio Gabriel wrote:
>
> snd_seq_oss_write() currently returns the raw load_patch() callback
> result for SEQ_FULLSIZE events.
>
> That callback is documented as returning 0 on success and -errno on
> failure, but snd_seq_oss_write() is the file write path and should
> report the number of user bytes consumed on success. Some in-tree
> backends also return backend-specific positive values, which can still
> be shorter than the original write size.
>
> Return the full byte count for successful SEQ_FULLSIZE writes.
> Preserve negative errors and convert any nonnegative completion to the
> original count.
>
> Cc: stable@xxxxxxxxxxxxxxx
> Signed-off-by: Cássio Gabriel <cassiogabrielcontato@xxxxxxxxx>
Applied to for-next branch now. Thanks.
Takashi