Home
last modified time | relevance | path

Searched refs:name_len (Results 1 – 4 of 4) sorted by relevance

/sound/core/
Dcontrol.c1090 size_t buf_len, name_len; in snd_ctl_elem_init_enum_names() local
1106 name_len = strnlen(p, buf_len); in snd_ctl_elem_init_enum_names()
1107 if (name_len == 0 || name_len >= 64 || name_len == buf_len) { in snd_ctl_elem_init_enum_names()
1111 p += name_len + 1; in snd_ctl_elem_init_enum_names()
1112 buf_len -= name_len + 1; in snd_ctl_elem_init_enum_names()
/sound/soc/
Dsoc-dapm.c527 size_t name_len; in dapm_create_or_share_mixmux_kcontrol() local
592 name_len = strlen(w->name) - prefix_len + 1 + in dapm_create_or_share_mixmux_kcontrol()
595 long_name = kmalloc(name_len, GFP_KERNEL); in dapm_create_or_share_mixmux_kcontrol()
607 snprintf(long_name, name_len, "%s %s", in dapm_create_or_share_mixmux_kcontrol()
610 long_name[name_len - 1] = '\0'; in dapm_create_or_share_mixmux_kcontrol()
3058 size_t name_len; in snd_soc_dapm_new_control() local
3099 name_len = strlen(widget->name) + 1; in snd_soc_dapm_new_control()
3101 name_len += 1 + strlen(dapm->codec->name_prefix); in snd_soc_dapm_new_control()
3102 w->name = kmalloc(name_len, GFP_KERNEL); in snd_soc_dapm_new_control()
3108 snprintf((char *)w->name, name_len, "%s %s", in snd_soc_dapm_new_control()
[all …]
Dsoc-core.c2270 int name_len; in snd_soc_cnew() local
2279 name_len = strlen(long_name) + strlen(prefix) + 2; in snd_soc_cnew()
2280 name = kmalloc(name_len, GFP_KERNEL); in snd_soc_cnew()
2284 snprintf(name, name_len, "%s %s", prefix, long_name); in snd_soc_cnew()
/sound/pci/hda/
Dhda_generic.c2417 char *name, size_t name_len) in get_jack_mode_name() argument
2422 snd_hda_get_pin_label(codec, pin, &spec->autocfg, name, name_len, &idx); in get_jack_mode_name()
2423 strlcat(name, " Jack Mode", name_len); in get_jack_mode_name()