Lines Matching refs:vd
121 if (control->vd[idx].owner == ctl)
122 control->vd[idx].owner = NULL;
206 *kctl = kzalloc(struct_size(*kctl, vd, count), GFP_KERNEL);
211 (*kctl)->vd[idx].access = access;
212 (*kctl)->vd[idx].owner = file;
531 if (!(kctl->vd[0].access & SNDRV_CTL_ELEM_ACCESS_USER)) {
536 if (kctl->vd[idx].owner != NULL && kctl->vd[idx].owner != file) {
565 struct snd_kcontrol_volatile *vd;
576 vd = &kctl->vd[index_offset];
579 if (!(vd->access & SNDRV_CTL_ELEM_ACCESS_INACTIVE))
581 vd->access &= ~SNDRV_CTL_ELEM_ACCESS_INACTIVE;
583 if (vd->access & SNDRV_CTL_ELEM_ACCESS_INACTIVE)
585 vd->access |= SNDRV_CTL_ELEM_ACCESS_INACTIVE;
965 struct snd_kcontrol_volatile *vd;
976 vd = &kctl->vd[index_offset];
978 info->access = vd->access;
979 if (vd->owner) {
981 if (vd->owner == ctl)
983 info->owner = pid_vnr(vd->owner->pid);
1036 struct snd_kcontrol_volatile *vd;
1047 vd = &kctl->vd[index_offset];
1048 if (!(vd->access & SNDRV_CTL_ELEM_ACCESS_READ) || kctl->get == NULL)
1110 struct snd_kcontrol_volatile *vd;
1119 vd = &kctl->vd[index_offset];
1120 if (!(vd->access & SNDRV_CTL_ELEM_ACCESS_WRITE) || kctl->put == NULL ||
1121 (file && vd->owner && vd->owner != file)) {
1173 struct snd_kcontrol_volatile *vd;
1183 vd = &kctl->vd[snd_ctl_get_ioff(kctl, &id)];
1184 if (vd->owner != NULL)
1187 vd->owner = file;
1201 struct snd_kcontrol_volatile *vd;
1211 vd = &kctl->vd[snd_ctl_get_ioff(kctl, &id)];
1212 if (vd->owner == NULL)
1214 else if (vd->owner != file)
1217 vd->owner = NULL;
1328 kctl->vd[i].access |= SNDRV_CTL_ELEM_ACCESS_TLV_READ;
1609 struct snd_kcontrol_volatile *vd = &kctl->vd[snd_ctl_get_ioff(kctl, id)];
1614 if (op_flag == pairs[i].op && (vd->access & pairs[i].perm))
1625 vd->owner != NULL && vd->owner != file)
1634 struct snd_kcontrol_volatile *vd = &kctl->vd[snd_ctl_get_ioff(kctl, id)];
1637 if (!(vd->access & SNDRV_CTL_ELEM_ACCESS_TLV_READ))
1662 struct snd_kcontrol_volatile *vd;
1684 vd = &kctl->vd[snd_ctl_get_ioff(kctl, &id)];
1686 if (vd->access & SNDRV_CTL_ELEM_ACCESS_TLV_CALLBACK) {