Re: [PATCH] sound: oss: dmasound: kick queued output before extending tail fragment

From: Takashi Iwai

Date: Wed Apr 29 2026 - 01:55:16 EST


On Tue, 28 Apr 2026 00:13:28 +0200,
Cássio Gabriel wrote:
>
> sq_write() currently clears POST and then immediately appends
> to the current rear fragment.
>
> If the queue already contains complete fragments ahead of that
> incomplete tail, playback is not kicked until the queue-full wait
> path or the final sq_play() at the end of the write. That wastes
> the slack those queued samples would otherwise provide while the driver
> spends more time copying and translating more data into the tail fragment.
>
> All in-tree dmasound playback backends still refuse to queue
> an incomplete last fragment while !syncing, but they can start
> earlier complete fragments.
>
> Call sq_play() immediately after clearing POST and before extending
> the rear fragment so already-queued complete output can start earlier.
>
> Signed-off-by: Cássio Gabriel <cassiogabrielcontato@xxxxxxxxx>

Applied to for-next branch now. Thanks.


Takashi