Lines Matching refs:kctl
50 struct snd_kcontrol *kctl; member
109 struct snd_kcontrol *kctl = lctl->kctl; in snd_ctl_led_get() local
114 info.id = kctl->id; in snd_ctl_led_get()
117 result = kctl->info(kctl, &info); in snd_ctl_led_get()
122 result = kctl->get(kctl, &value); in snd_ctl_led_get()
139 struct snd_kcontrol *kctl, unsigned int ioff) in snd_ctl_led_set_state() argument
156 if (lctl->kctl == kctl && lctl->index_offset == ioff) in snd_ctl_led_set_state()
160 if (!found && kctl && card) { in snd_ctl_led_set_state()
165 lctl->kctl = kctl; in snd_ctl_led_set_state()
185 static struct snd_ctl_led_ctl *snd_ctl_led_find(struct snd_kcontrol *kctl, unsigned int ioff) in snd_ctl_led_find() argument
194 if (lctl->kctl == kctl && lctl->index_offset == ioff) in snd_ctl_led_find()
200 static unsigned int snd_ctl_led_remove(struct snd_kcontrol *kctl, unsigned int ioff, in snd_ctl_led_remove() argument
207 lctl = snd_ctl_led_find(kctl, ioff); in snd_ctl_led_remove()
217 struct snd_kcontrol *kctl, unsigned int ioff) in snd_ctl_led_notify() argument
223 access = snd_ctl_led_remove(kctl, ioff, 0); in snd_ctl_led_notify()
227 vd = &kctl->vd[ioff]; in snd_ctl_led_notify()
229 access2 = snd_ctl_led_remove(kctl, ioff, access); in snd_ctl_led_notify()
233 snd_ctl_led_set_state(card, access, kctl, ioff); in snd_ctl_led_notify()
236 vd = &kctl->vd[ioff]; in snd_ctl_led_notify()
239 snd_ctl_led_set_state(card, access, kctl, ioff); in snd_ctl_led_notify()
249 struct snd_kcontrol *kctl; in DEFINE_FREE() local
257 kctl = snd_ctl_find_id(card, id); in DEFINE_FREE()
258 if (!kctl) in DEFINE_FREE()
260 ioff = snd_ctl_get_ioff(kctl, id); in DEFINE_FREE()
261 vd = &kctl->vd[ioff]; in DEFINE_FREE()
270 snd_ctl_led_notify(card, SNDRV_CTL_EVENT_MASK_INFO, kctl, ioff); in DEFINE_FREE()
321 vd = &lctl->kctl->vd[lctl->index_offset]; in snd_ctl_led_reset()
334 struct snd_kcontrol *kctl; in snd_ctl_led_register() local
343 list_for_each_entry(kctl, &card->controls, list) in snd_ctl_led_register()
344 for (ioff = 0; ioff < kctl->count; ioff++) in snd_ctl_led_register()
345 snd_ctl_led_notify(card, SNDRV_CTL_EVENT_MASK_VALUE, kctl, ioff); in snd_ctl_led_register()
617 lctl->kctl->id.numid + lctl->index_offset); in list_show()