Re: [PATCH] selftests: ALSA: pcmtest: Compare all captured bytes in ni_capture

From: Takashi Iwai

Date: Wed Oct 21 2026 - 09:07:58 EST


On Wed, 21 Oct 2026 13:25:54 +0200,
HyeongJun An wrote:
>
> The ni_capture test reads rate * time frames into each channel buffer
> and then compares rate * time bytes. A frame is sample_size bytes per
> channel, so with S16_LE only the first half of each channel is checked.
> If the second half is wrong the test still passes.
>
> Compare rate * time * sample_size bytes per channel.
>
> Fixes: 10b98a4db11a ("selftests: ALSA: Add test for the 'pcmtest' driver")
> Assisted-by: Claude:claude-opus-5-5
> Signed-off-by: HyeongJun An <sammiee5311@xxxxxxxxx>

Applied now. Thanks.


Takashi