Lines Matching refs:kctl_new
412 struct snd_kcontrol_new kctl_new; in virtsnd_kctl_build_devs() local
416 memset(&kctl_new, 0, sizeof(kctl_new)); in virtsnd_kctl_build_devs()
418 kctl_new.iface = SNDRV_CTL_ELEM_IFACE_MIXER; in virtsnd_kctl_build_devs()
419 kctl_new.name = kinfo->name; in virtsnd_kctl_build_devs()
420 kctl_new.index = le32_to_cpu(kinfo->index); in virtsnd_kctl_build_devs()
424 kctl_new.access |= g_v2a_access_map[i]; in virtsnd_kctl_build_devs()
426 if (kctl_new.access & (SNDRV_CTL_ELEM_ACCESS_TLV_READ | in virtsnd_kctl_build_devs()
429 kctl_new.access |= SNDRV_CTL_ELEM_ACCESS_TLV_CALLBACK; in virtsnd_kctl_build_devs()
430 kctl_new.tlv.c = virtsnd_kctl_tlv_op; in virtsnd_kctl_build_devs()
433 kctl_new.info = virtsnd_kctl_info; in virtsnd_kctl_build_devs()
434 kctl_new.get = virtsnd_kctl_get; in virtsnd_kctl_build_devs()
435 kctl_new.put = virtsnd_kctl_put; in virtsnd_kctl_build_devs()
436 kctl_new.private_value = cid; in virtsnd_kctl_build_devs()
438 kctl->kctl = snd_ctl_new1(&kctl_new, snd); in virtsnd_kctl_build_devs()