Lines Matching defs:access
49 unsigned int access;
82 static inline unsigned int access_to_group(unsigned int access)
84 return ((access & SNDRV_CTL_ELEM_ACCESS_LED_MASK) >>
93 static struct snd_ctl_led *snd_ctl_led_get_by_access(unsigned int access)
95 unsigned int group = access_to_group(access);
138 static void snd_ctl_led_set_state(struct snd_card *card, unsigned int access,
146 led = snd_ctl_led_get_by_access(access);
164 lctl->access = access;
201 unsigned int access)
208 if (lctl && (access == 0 || access != lctl->access)) {
209 ret = lctl->access;
220 unsigned int access, access2;
223 access = snd_ctl_led_remove(kctl, ioff, 0);
224 if (access)
225 snd_ctl_led_set_state(card, access, NULL, 0);
228 access = vd->access & SNDRV_CTL_ELEM_ACCESS_LED_MASK;
229 access2 = snd_ctl_led_remove(kctl, ioff, access);
232 if (access)
233 snd_ctl_led_set_state(card, access, kctl, ioff);
237 access = vd->access & SNDRV_CTL_ELEM_ACCESS_LED_MASK;
238 if (access)
239 snd_ctl_led_set_state(card, access, kctl, ioff);
248 unsigned int ioff, access, new_access;
262 access = vd->access & SNDRV_CTL_ELEM_ACCESS_LED_MASK;
263 if (access != 0 && access != group_to_access(group))
265 new_access = vd->access & ~SNDRV_CTL_ELEM_ACCESS_LED_MASK;
268 if (new_access != vd->access) {
269 vd->access = new_access;
322 vd->access &= ~group_to_access(group);