Re: [PATCH v2] ALSA: linear: Check frame count for all channels
From: Takashi Iwai
Date: Thu Nov 05 2026 - 10:15:21 EST
On Thu, 05 Nov 2026 15:22:26 +0100,
Sreeraj S Kurup wrote:
>
> linear_transfer() checks the available frame count only for
> the first destination channel.
>
> Check the available frame count of all source and destination
> channels before converting samples.
>
> Use the smallest available frame count to make sure that
> conversion does not read or write beyond the channel buffers.
>
> Signed-off-by: Sreeraj S Kurup <sreekuttan2156239@xxxxxxxxx>
Well, the number of the processed frames must be identical for all
channels. So this is superfluous.
Or, do you see any real case hitting this?
thanks,
Takashi