Lines Matching refs:vd
135 if (control->vd[idx].owner == ctl) in snd_ctl_release()
136 control->vd[idx].owner = NULL; in snd_ctl_release()
228 (*kctl)->vd[idx].access = access; in snd_ctl_new()
229 (*kctl)->vd[idx].owner = file; in snd_ctl_new()
559 if (!(kctl->vd[0].access & SNDRV_CTL_ELEM_ACCESS_USER)) { in snd_ctl_remove_user_ctl()
564 if (kctl->vd[idx].owner != NULL && kctl->vd[idx].owner != file) { in snd_ctl_remove_user_ctl()
593 struct snd_kcontrol_volatile *vd; in snd_ctl_activate_id() local
604 vd = &kctl->vd[index_offset]; in snd_ctl_activate_id()
607 if (!(vd->access & SNDRV_CTL_ELEM_ACCESS_INACTIVE)) in snd_ctl_activate_id()
609 vd->access &= ~SNDRV_CTL_ELEM_ACCESS_INACTIVE; in snd_ctl_activate_id()
611 if (vd->access & SNDRV_CTL_ELEM_ACCESS_INACTIVE) in snd_ctl_activate_id()
613 vd->access |= SNDRV_CTL_ELEM_ACCESS_INACTIVE; in snd_ctl_activate_id()
827 struct snd_kcontrol_volatile *vd; in snd_ctl_elem_info() local
844 vd = &kctl->vd[index_offset]; in snd_ctl_elem_info()
846 info->access = vd->access; in snd_ctl_elem_info()
847 if (vd->owner) { in snd_ctl_elem_info()
849 if (vd->owner == ctl) in snd_ctl_elem_info()
851 info->owner = pid_vnr(vd->owner->pid); in snd_ctl_elem_info()
883 struct snd_kcontrol_volatile *vd; in snd_ctl_elem_read() local
891 vd = &kctl->vd[index_offset]; in snd_ctl_elem_read()
892 if (!(vd->access & SNDRV_CTL_ELEM_ACCESS_READ) || kctl->get == NULL) in snd_ctl_elem_read()
930 struct snd_kcontrol_volatile *vd; in snd_ctl_elem_write() local
939 vd = &kctl->vd[index_offset]; in snd_ctl_elem_write()
940 if (!(vd->access & SNDRV_CTL_ELEM_ACCESS_WRITE) || kctl->put == NULL || in snd_ctl_elem_write()
941 (file && vd->owner && vd->owner != file)) { in snd_ctl_elem_write()
993 struct snd_kcontrol_volatile *vd; in snd_ctl_elem_lock() local
1003 vd = &kctl->vd[snd_ctl_get_ioff(kctl, &id)]; in snd_ctl_elem_lock()
1004 if (vd->owner != NULL) in snd_ctl_elem_lock()
1007 vd->owner = file; in snd_ctl_elem_lock()
1021 struct snd_kcontrol_volatile *vd; in snd_ctl_elem_unlock() local
1031 vd = &kctl->vd[snd_ctl_get_ioff(kctl, &id)]; in snd_ctl_elem_unlock()
1032 if (vd->owner == NULL) in snd_ctl_elem_unlock()
1034 else if (vd->owner != file) in snd_ctl_elem_unlock()
1037 vd->owner = NULL; in snd_ctl_elem_unlock()
1148 kctl->vd[i].access |= SNDRV_CTL_ELEM_ACCESS_TLV_READ; in replace_user_tlv()
1447 struct snd_kcontrol_volatile *vd = &kctl->vd[snd_ctl_get_ioff(kctl, id)]; in call_tlv_handler() local
1452 if (op_flag == pairs[i].op && (vd->access & pairs[i].perm)) in call_tlv_handler()
1462 if (vd->owner != NULL && vd->owner != file) in call_tlv_handler()
1471 struct snd_kcontrol_volatile *vd = &kctl->vd[snd_ctl_get_ioff(kctl, id)]; in read_tlv_buf() local
1474 if (!(vd->access & SNDRV_CTL_ELEM_ACCESS_TLV_READ)) in read_tlv_buf()
1499 struct snd_kcontrol_volatile *vd; in snd_ctl_tlv_ioctl() local
1521 vd = &kctl->vd[snd_ctl_get_ioff(kctl, &id)]; in snd_ctl_tlv_ioctl()
1523 if (vd->access & SNDRV_CTL_ELEM_ACCESS_TLV_CALLBACK) { in snd_ctl_tlv_ioctl()