[PATCH] kselftest: alsa: Add test case for writing invalid values

Takashi Iwai tiwai at suse.de
Tue Jan 25 15:14:15 CET 2022


On Mon, 24 Jan 2022 16:14:10 +0100,
Mark Brown wrote:
> +bool test_ctl_write_invalid_integer64(struct ctl_data *ctl)
> +{
....
> +			/* Minimum representable value */
> +			snd_ctl_elem_value_copy(val, ctl->def_val);
> +			snd_ctl_elem_value_set_integer(val, i, LLONG_MIN);

This should be snd_ctl_elem_value_set_integer64()?

> +			/* Maximum representable value */
> +			snd_ctl_elem_value_copy(val, ctl->def_val);
> +			snd_ctl_elem_value_set_integer(val, i, LLONG_MAX);

Ditto.


thanks,

Takashi


More information about the Alsa-devel mailing list