Lines Matching refs:mixer
40 static void list_controls(struct mixer *mixer, int print_all);
43 static void print_control_values_by_name_or_id(struct mixer *mixer, const char *name_or_id);
45 static int set_values(struct mixer *mixer, const char *control,
134 struct mixer *mixer = mixer_open(card); in main() local
135 if (!mixer) { in main()
143 mixer_close(mixer); in main()
151 mixer_close(mixer); in main()
154 print_control_values_by_name_or_id(mixer, argv[command_position + 1]); in main()
159 mixer_close(mixer); in main()
164 mixer_close(mixer); in main()
167 int res = set_values(mixer, in main()
172 mixer_close(mixer); in main()
176 list_controls(mixer, 0); in main()
178 list_controls(mixer, 1); in main()
182 mixer_close(mixer); in main()
186 mixer_close(mixer); in main()
200 static void list_controls(struct mixer *mixer, int print_all) in list_controls() argument
207 num_ctls = mixer_get_num_ctls(mixer); in list_controls()
217 ctl = mixer_get_ctl(mixer, i); in list_controls()
245 static void print_control_values_by_name_or_id(struct mixer *mixer, const char *name_or_id) in print_control_values_by_name_or_id() argument
250 ctl = mixer_get_ctl(mixer, atoi(name_or_id)); in print_control_values_by_name_or_id()
252 ctl = mixer_get_ctl_by_name(mixer, name_or_id); in print_control_values_by_name_or_id()
537 static int set_values(struct mixer *mixer, const char *control, in set_values() argument
544 ctl = mixer_get_ctl(mixer, atoi(control)); in set_values()
546 ctl = mixer_get_ctl_by_name(mixer, control); in set_values()