[alsa-devel] [alsa-lib][PATCH] ctl: add dimension validator

Takashi Sakamoto o-takashi at sakamocchi.jp
Thu Jul 7 23:17:25 CEST 2016


On Jul 7 2016 23:29, Takashi Iwai wrote:
>> @@ -302,6 +303,32 @@ int snd_ctl_elem_info(snd_ctl_t *ctl, snd_ctl_elem_info_t *info)
>>  	return ctl->ops->element_info(ctl, info);
>>  }
>>  
>> +static bool validate_element_member_dimension(struct snd_ctl_elem_info *info)
> 
> In alsa-lib user-space, we use snd_ctl_elem_info_t.  Please stick with
> it.  In theory, this type can be different from the kernel ABI.

Indeed. I should have switched my brain for userspace.


Thanks

Takashi Sakamoto


More information about the Alsa-devel mailing list