Lines Matching refs:id
72 struct snd_ctl_elem_id id; member
91 struct snd_ctl_elem_id id; member
131 void snd_ctl_notify(struct snd_card * card, unsigned int mask, struct snd_ctl_elem_id * id);
139 int snd_ctl_remove_id(struct snd_card * card, struct snd_ctl_elem_id *id);
142 int snd_ctl_activate_id(struct snd_card *card, struct snd_ctl_elem_id *id, int active);
144 struct snd_kcontrol *snd_ctl_find_id(struct snd_card *card, const struct snd_ctl_elem_id *id);
161 struct snd_ctl_elem_id id = {}; in snd_ctl_find_id_mixer() local
163 id.iface = SNDRV_CTL_ELEM_IFACE_MIXER; in snd_ctl_find_id_mixer()
164 strscpy(id.name, name, sizeof(id.name)); in snd_ctl_find_id_mixer()
165 return snd_ctl_find_id(card, &id); in snd_ctl_find_id_mixer()
186 …atic inline unsigned int snd_ctl_get_ioffnum(struct snd_kcontrol *kctl, struct snd_ctl_elem_id *id) in snd_ctl_get_ioffnum() argument
188 unsigned int ioff = id->numid - kctl->id.numid; in snd_ctl_get_ioffnum()
192 …atic inline unsigned int snd_ctl_get_ioffidx(struct snd_kcontrol *kctl, struct snd_ctl_elem_id *id) in snd_ctl_get_ioffidx() argument
194 unsigned int ioff = id->index - kctl->id.index; in snd_ctl_get_ioffidx()
198 static inline unsigned int snd_ctl_get_ioff(struct snd_kcontrol *kctl, struct snd_ctl_elem_id *id) in snd_ctl_get_ioff() argument
200 if (id->numid) { in snd_ctl_get_ioff()
201 return snd_ctl_get_ioffnum(kctl, id); in snd_ctl_get_ioff()
203 return snd_ctl_get_ioffidx(kctl, id); in snd_ctl_get_ioff()
211 *dst_id = src_kctl->id; in snd_ctl_build_ioff()