[PATCH v1 0/4] ALSA: compress_offload: Add 64-bit safe timestamp API

George Verhaegen verhaegen at google.com
Fri Jul 11 06:58:01 PDT 2025


On Fri, 11 Jul 2025 at 13:34, Vinod Koul <vkoul at kernel.org> wrote:
> In your testing when did you observe the overflow condition?

I observed an overflow after ~3.1 hours.
I used a stream with bitrate = 3072 kbps.
So the field copied_total in struct snd_compr_tstamp
overflows after 4294967295÷(3072000/8)÷60÷60= ~3.10689 hours.

> Please share patches for tinycompress support too, we need those to test
> this

I didn't make changes to tinycompress. The overflow happens in the
kernel file compress_offload.c. As a test, I let it run for more than
3.1 hours and observed that the overflow no longer occurs.
The overflow is in
stream->runtime->total_bytes_transferred = tstamp->copied_total



More information about the linux-arm-kernel mailing list