Lines Matching refs:kctl
145 static inline unsigned int snd_ctl_get_ioffnum(struct snd_kcontrol *kctl, struct snd_ctl_elem_id *id)
147 unsigned int ioff = id->numid - kctl->id.numid;
148 return array_index_nospec(ioff, kctl->count);
151 static inline unsigned int snd_ctl_get_ioffidx(struct snd_kcontrol *kctl, struct snd_ctl_elem_id *id)
153 unsigned int ioff = id->index - kctl->id.index;
154 return array_index_nospec(ioff, kctl->count);
157 static inline unsigned int snd_ctl_get_ioff(struct snd_kcontrol *kctl, struct snd_ctl_elem_id *id)
160 return snd_ctl_get_ioffnum(kctl, id);
162 return snd_ctl_get_ioffidx(kctl, id);
245 int snd_ctl_add_vmaster_hook(struct snd_kcontrol *kctl,
248 void snd_ctl_sync_vmaster(struct snd_kcontrol *kctl, bool hook_only);
249 #define snd_ctl_sync_vmaster_hook(kctl) snd_ctl_sync_vmaster(kctl, true)
250 int snd_ctl_apply_vmaster_followers(struct snd_kcontrol *kctl,
262 struct snd_kcontrol *kctl, bool status);