Lines Matching defs:kctl
123 void (*lnotify)(struct snd_card *card, unsigned int mask, struct snd_kcontrol *kctl, unsigned int ioff);
133 void snd_ctl_notify_one(struct snd_card * card, unsigned int mask, struct snd_kcontrol * kctl, unsigned int ioff);
142 void snd_ctl_rename(struct snd_card *card, struct snd_kcontrol *kctl, const char *name);
189 static inline unsigned int snd_ctl_get_ioffnum(struct snd_kcontrol *kctl, struct snd_ctl_elem_id *id)
191 unsigned int ioff = id->numid - kctl->id.numid;
192 return array_index_nospec(ioff, kctl->count);
195 static inline unsigned int snd_ctl_get_ioffidx(struct snd_kcontrol *kctl, struct snd_ctl_elem_id *id)
197 unsigned int ioff = id->index - kctl->id.index;
198 return array_index_nospec(ioff, kctl->count);
201 static inline unsigned int snd_ctl_get_ioff(struct snd_kcontrol *kctl, struct snd_ctl_elem_id *id)
204 return snd_ctl_get_ioffnum(kctl, id);
206 return snd_ctl_get_ioffidx(kctl, id);
292 int snd_ctl_add_vmaster_hook(struct snd_kcontrol *kctl,
295 void snd_ctl_sync_vmaster(struct snd_kcontrol *kctl, bool hook_only);
296 #define snd_ctl_sync_vmaster_hook(kctl) snd_ctl_sync_vmaster(kctl, true)
297 int snd_ctl_apply_vmaster_followers(struct snd_kcontrol *kctl,
320 struct snd_kcontrol *kctl, bool status);