Lines Matching defs:ctl
626 static int open_ctl(long card, snd_ctl_t **ctl)
631 return snd_ctl_open(ctl, name, 0);
754 snd_ctl_t *ctl = NULL;
760 err = open_ctl(card, &ctl);
765 err = snd_ctl_card_info(ctl, &info);
778 if (ctl)
779 snd_ctl_close(ctl);
952 snd_ctl_t *ctl = NULL;
960 err = open_ctl(card, &ctl);
965 err = snd_ctl_card_info(ctl, &info);
975 if (ctl)
976 snd_ctl_close(ctl);
1003 snd_ctl_t *ctl = NULL;
1011 err = open_ctl(card, &ctl);
1016 err = snd_ctl_card_info(ctl, &info);
1026 if (ctl)
1027 snd_ctl_close(ctl);
1067 snd_ctl_t *ctl = NULL;
1103 err = open_ctl(card, &ctl);
1110 err = snd_ctl_pcm_info(ctl, &info);
1120 if (ctl)
1121 snd_ctl_close(ctl);
1151 snd_ctl_t *ctl = NULL;
1198 err = open_ctl(card, &ctl);
1205 err = snd_ctl_pcm_next_device(ctl, &dev);
1213 err = snd_ctl_pcm_info(ctl, &info);
1220 snd_ctl_close(ctl);
1221 ctl = NULL;
1226 if (ctl)
1227 snd_ctl_close(ctl);