On Fri, Jun 14, 2024 at 05:37:13PM +0200, Takashi Iwai wrote: > @@ -616,6 +616,10 @@ static int write_and_verify(struct ctl_data *ctl, > if (!snd_ctl_elem_info_is_readable(ctl->info)) > return err; > > + /* Skip the verification for volatile controls, too */ > + if (snd_ctl_elem_info_is_volatile(ctl->info)) > + return err; > + I think we should do the checks in test_ctl_get_value() still - a read and then ctl_value_is_valid() on whatever we read. It doesn't need to match the value we wrote but it should still be valid for the control.
Attachment:
signature.asc
Description: PGP signature
- Follow-Ups:
- References:
- [PATCH v2 0/6] ALSA: some driver fixes for control input validations
- From: Takashi Iwai
- [PATCH v2 4/6] kselftest/alsa: mixer-test: Skip write verification for volatile controls
- From: Takashi Iwai
- [PATCH v2 0/6] ALSA: some driver fixes for control input validations
- Prev by Date: Re: [PATCH v2 6/6] ALSA: hda: Add input value sanity checks to HDMI channel map controls
- Next by Date: Re: [PATCH v2 4/6] kselftest/alsa: mixer-test: Skip write verification for volatile controls
- Previous by thread: Re: [PATCH v2 4/6] kselftest/alsa: mixer-test: Skip write verification for volatile controls
- Next by thread: Re: [PATCH v2 4/6] kselftest/alsa: mixer-test: Skip write verification for volatile controls
- Index(es):