Lines Matching defs:ctl
597 static int open_ctl(long card, snd_ctl_t **ctl)
602 return snd_ctl_open(ctl, name, 0);
666 snd_ctl_t *ctl = NULL;
672 err = open_ctl(card, &ctl);
678 err = snd_ctl_card_info(ctl, info);
691 if (ctl)
692 snd_ctl_close(ctl);
865 snd_ctl_t *ctl = NULL;
873 err = open_ctl(card, &ctl);
879 err = snd_ctl_card_info(ctl, info);
889 if (ctl)
890 snd_ctl_close(ctl);
917 snd_ctl_t *ctl = NULL;
925 err = open_ctl(card, &ctl);
931 err = snd_ctl_card_info(ctl, info);
941 if (ctl)
942 snd_ctl_close(ctl);
974 snd_ctl_t *ctl = NULL;
1010 err = open_ctl(card, &ctl);
1018 err = snd_ctl_pcm_info(ctl, info);
1027 if (ctl)
1028 snd_ctl_close(ctl);
1058 snd_ctl_t *ctl = NULL;
1106 err = open_ctl(card, &ctl);
1114 err = snd_ctl_pcm_next_device(ctl, &dev);
1122 err = snd_ctl_pcm_info(ctl, info);
1129 snd_ctl_close(ctl);
1130 ctl = NULL;
1135 if (ctl)
1136 snd_ctl_close(ctl);