summaryrefslogtreecommitdiff
path: root/scripts/basic
diff options
context:
space:
mode:
authorHyeongJun An <sammiee5311@gmail.com>2026-10-26 12:16:55 +0900
committerTakashi Iwai <tiwai@suse.de>2026-10-26 09:09:49 +0100
commit5deb9c57ba93d28a52871a96f3d8794d2cbed035 (patch)
treef58a50ed3b22d28934e5b718fd817068e10700d7 /scripts/basic
parent6b186281a11194be8349d6b14c3d605efcfaf037 (diff)
downloadlinux-5deb9c57ba93d28a52871a96f3d8794d2cbed035.tar.gz
linux-5deb9c57ba93d28a52871a96f3d8794d2cbed035.zip
ALSA: pcmtest: Reject invalid fill_mode values
The fill_block() function handles only fill_mode 0 (random) and 1 (pattern). With any other value it writes nothing and does not move the buffer position. A capture stream then gets no data, and a read fails with -EIO after the timeout. Nothing in the kernel log says why. Check the value in a set callback, so a bad value is rejected both when the module is loaded and when the parameter is written. Fixes: 315a3d57c64c ("ALSA: Implement the new Virtual PCM Test Driver") Assisted-by: Claude:claude-opus-5-5 Signed-off-by: HyeongJun An <sammiee5311@gmail.com> Link: https://patch.msgid.link/20261026031655.2699561-1-sammiee5311@gmail.com Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'scripts/basic')
0 files changed, 0 insertions, 0 deletions