Lines Matching refs:enumerated

963 	    info->value.enumerated.items == 0) {  in snd_ctl_check_elem_info()
1037 lval = control->value.enumerated.item[i]; in sanity_check_int_value()
1039 lmax = info->value.enumerated.items - 1; in sanity_check_int_value()
1426 item = uinfo->value.enumerated.item; in snd_ctl_elem_user_enum_info()
1432 item = min(item, uinfo->value.enumerated.items - 1); in snd_ctl_elem_user_enum_info()
1433 uinfo->value.enumerated.item = item; in snd_ctl_elem_user_enum_info()
1438 strcpy(uinfo->value.enumerated.name, names); in snd_ctl_elem_user_enum_info()
1560 const uintptr_t user_ptrval = ue->info.value.enumerated.names_ptr; in snd_ctl_elem_init_enum_names()
1564 buf_len = ue->info.value.enumerated.names_length; in snd_ctl_elem_init_enum_names()
1576 for (i = 0; i < ue->info.value.enumerated.items; ++i) { in snd_ctl_elem_init_enum_names()
1587 ue->info.value.enumerated.names_ptr = 0; in snd_ctl_elem_init_enum_names()
1589 ue->card->user_ctl_alloc_size += ue->info.value.enumerated.names_length; in snd_ctl_elem_init_enum_names()
1607 ue->card->user_ctl_alloc_size -= ue->info.value.enumerated.names_length; in snd_ctl_elem_user_free()
2441 info->value.enumerated.items = items; in snd_ctl_enum_info()
2444 if (info->value.enumerated.item >= items) in snd_ctl_enum_info()
2445 info->value.enumerated.item = items - 1; in snd_ctl_enum_info()
2446 WARN(strlen(names[info->value.enumerated.item]) >= sizeof(info->value.enumerated.name), in snd_ctl_enum_info()
2448 names[info->value.enumerated.item]); in snd_ctl_enum_info()
2449 strscpy(info->value.enumerated.name, in snd_ctl_enum_info()
2450 names[info->value.enumerated.item], in snd_ctl_enum_info()
2451 sizeof(info->value.enumerated.name)); in snd_ctl_enum_info()