Lines Matching refs:group
40 unsigned int group; member
59 .group = (SNDRV_CTL_ELEM_ACCESS_SPK_LED >> SNDRV_CTL_ELEM_ACCESS_LED_SHIFT) - 1,
65 .group = (SNDRV_CTL_ELEM_ACCESS_MIC_LED >> SNDRV_CTL_ELEM_ACCESS_LED_SHIFT) - 1,
87 static inline unsigned int group_to_access(unsigned int group) in group_to_access() argument
89 return (group + 1) << SNDRV_CTL_ELEM_ACCESS_LED_SHIFT; in group_to_access()
94 unsigned int group = access_to_group(access); in snd_ctl_led_get_by_access() local
95 if (group >= MAX_LED) in snd_ctl_led_get_by_access()
97 return &snd_ctl_leds[group]; in snd_ctl_led_get_by_access()
187 unsigned int group; in snd_ctl_led_find() local
189 for (group = 0; group < MAX_LED; group++) { in snd_ctl_led_find()
190 controls = &snd_ctl_leds[group].controls; in snd_ctl_led_find()
243 unsigned int group, bool set) in snd_ctl_led_set_id() argument
259 if (access != 0 && access != group_to_access(group)) { in snd_ctl_led_set_id()
265 new_access |= group_to_access(group); in snd_ctl_led_set_id()
284 unsigned int group; in snd_ctl_led_refresh() local
286 for (group = 0; group < MAX_LED; group++) in snd_ctl_led_refresh()
287 snd_ctl_led_set_state(NULL, group_to_access(group), NULL, 0); in snd_ctl_led_refresh()
298 unsigned int group; in snd_ctl_led_clean() local
302 for (group = 0; group < MAX_LED; group++) { in snd_ctl_led_clean()
303 led = &snd_ctl_leds[group]; in snd_ctl_led_clean()
313 static int snd_ctl_led_reset(int card_number, unsigned int group) in snd_ctl_led_reset() argument
331 led = &snd_ctl_leds[group]; in snd_ctl_led_reset()
336 vd->access &= ~group_to_access(group); in snd_ctl_led_reset()
343 snd_ctl_led_set_state(NULL, group_to_access(group), NULL, 0); in snd_ctl_led_reset()
437 snd_ctl_led_set_state(NULL, group_to_access(led->group), NULL, 0); in mode_store()
577 err = snd_ctl_led_set_id(led_card->number, &id, led_card->led->group, attach); in set_led_id()
608 err = snd_ctl_led_reset(led_card->number, led_card->led->group); in reset_store()
675 unsigned int group; in snd_ctl_led_sysfs_add() local
680 for (group = 0; group < MAX_LED; group++) { in snd_ctl_led_sysfs_add()
681 led = &snd_ctl_leds[group]; in snd_ctl_led_sysfs_add()
712 unsigned int group; in snd_ctl_led_sysfs_remove() local
717 for (group = 0; group < MAX_LED; group++) { in snd_ctl_led_sysfs_remove()
718 led = &snd_ctl_leds[group]; in snd_ctl_led_sysfs_remove()
743 unsigned int group; in snd_ctl_led_init() local
753 for (group = 0; group < MAX_LED; group++) { in snd_ctl_led_init()
754 led = &snd_ctl_leds[group]; in snd_ctl_led_init()
763 for (; group > 0; group--) { in snd_ctl_led_init()
764 led = &snd_ctl_leds[group - 1]; in snd_ctl_led_init()
779 unsigned int group, card_number; in snd_ctl_led_exit() local
791 for (group = 0; group < MAX_LED; group++) { in snd_ctl_led_exit()
792 led = &snd_ctl_leds[group]; in snd_ctl_led_exit()