Lines Matching refs:access
49 unsigned int access;
81 static inline unsigned int access_to_group(unsigned int access)
83 return ((access & SNDRV_CTL_ELEM_ACCESS_LED_MASK) >>
92 static struct snd_ctl_led *snd_ctl_led_get_by_access(unsigned int access)
94 unsigned int group = access_to_group(access);
137 static void snd_ctl_led_set_state(struct snd_card *card, unsigned int access,
145 led = snd_ctl_led_get_by_access(access);
163 lctl->access = access;
197 unsigned int access)
204 if (lctl && (access == 0 || access != lctl->access)) {
205 ret = lctl->access;
216 unsigned int access, access2;
219 access = snd_ctl_led_remove(kctl, ioff, 0);
220 if (access)
221 snd_ctl_led_set_state(card, access, NULL, 0);
224 access = vd->access & SNDRV_CTL_ELEM_ACCESS_LED_MASK;
225 access2 = snd_ctl_led_remove(kctl, ioff, access);
228 if (access)
229 snd_ctl_led_set_state(card, access, kctl, ioff);
233 access = vd->access & SNDRV_CTL_ELEM_ACCESS_LED_MASK;
234 if (access)
235 snd_ctl_led_set_state(card, access, kctl, ioff);
247 unsigned int ioff, access, new_access;
258 access = vd->access & SNDRV_CTL_ELEM_ACCESS_LED_MASK;
259 if (access != 0 && access != group_to_access(group))
261 new_access = vd->access & ~SNDRV_CTL_ELEM_ACCESS_LED_MASK;
264 if (new_access != vd->access) {
265 vd->access = new_access;
322 vd->access &= ~group_to_access(group);