Lines Matching refs:vd

133 			if (control->vd[idx].owner == ctl)  in snd_ctl_release()
134 control->vd[idx].owner = NULL; in snd_ctl_release()
224 (*kctl)->vd[idx].access = access; in snd_ctl_new()
225 (*kctl)->vd[idx].owner = file; in snd_ctl_new()
555 if (!(kctl->vd[0].access & SNDRV_CTL_ELEM_ACCESS_USER)) { in snd_ctl_remove_user_ctl()
560 if (kctl->vd[idx].owner != NULL && kctl->vd[idx].owner != file) { in snd_ctl_remove_user_ctl()
589 struct snd_kcontrol_volatile *vd; in snd_ctl_activate_id() local
600 vd = &kctl->vd[index_offset]; in snd_ctl_activate_id()
603 if (!(vd->access & SNDRV_CTL_ELEM_ACCESS_INACTIVE)) in snd_ctl_activate_id()
605 vd->access &= ~SNDRV_CTL_ELEM_ACCESS_INACTIVE; 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()
813 struct snd_kcontrol_volatile *vd; in snd_ctl_elem_info() local
830 vd = &kctl->vd[index_offset]; in snd_ctl_elem_info()
832 info->access = vd->access; in snd_ctl_elem_info()
833 if (vd->owner) { in snd_ctl_elem_info()
835 if (vd->owner == ctl) in snd_ctl_elem_info()
837 info->owner = pid_vnr(vd->owner->pid); in snd_ctl_elem_info()
869 struct snd_kcontrol_volatile *vd; in snd_ctl_elem_read() local
879 vd = &kctl->vd[index_offset]; in snd_ctl_elem_read()
880 if ((vd->access & SNDRV_CTL_ELEM_ACCESS_READ) && in snd_ctl_elem_read()
917 struct snd_kcontrol_volatile *vd; in snd_ctl_elem_write() local
927 vd = &kctl->vd[index_offset]; in snd_ctl_elem_write()
928 if (!(vd->access & SNDRV_CTL_ELEM_ACCESS_WRITE) || in snd_ctl_elem_write()
930 (file && vd->owner && vd->owner != file)) { in snd_ctl_elem_write()
977 struct snd_kcontrol_volatile *vd; in snd_ctl_elem_lock() local
987 vd = &kctl->vd[snd_ctl_get_ioff(kctl, &id)]; in snd_ctl_elem_lock()
988 if (vd->owner != NULL) in snd_ctl_elem_lock()
991 vd->owner = file; in snd_ctl_elem_lock()
1005 struct snd_kcontrol_volatile *vd; in snd_ctl_elem_unlock() local
1015 vd = &kctl->vd[snd_ctl_get_ioff(kctl, &id)]; in snd_ctl_elem_unlock()
1016 if (vd->owner == NULL) in snd_ctl_elem_unlock()
1018 else if (vd->owner != file) in snd_ctl_elem_unlock()
1021 vd->owner = NULL; in snd_ctl_elem_unlock()
1400 struct snd_kcontrol_volatile *vd; in snd_ctl_tlv_ioctl() local
1420 vd = &kctl->vd[tlv.numid - kctl->id.numid]; in snd_ctl_tlv_ioctl()
1422 (vd->access & SNDRV_CTL_ELEM_ACCESS_TLV_READ) == 0) || in snd_ctl_tlv_ioctl()
1424 (vd->access & SNDRV_CTL_ELEM_ACCESS_TLV_WRITE) == 0) || in snd_ctl_tlv_ioctl()
1426 (vd->access & SNDRV_CTL_ELEM_ACCESS_TLV_COMMAND) == 0)) { in snd_ctl_tlv_ioctl()
1430 if (vd->access & SNDRV_CTL_ELEM_ACCESS_TLV_CALLBACK) { in snd_ctl_tlv_ioctl()
1431 if (vd->owner != NULL && vd->owner != file) { in snd_ctl_tlv_ioctl()