Lines Matching refs:mixer
38 static void tinymix_list_controls(struct mixer *mixer);
39 static int tinymix_detail_control(struct mixer *mixer, const char *control,
41 static int tinymix_set_value(struct mixer *mixer, const char *control,
73 struct mixer *mixer; in main() local
108 mixer = mixer_open(card); in main()
109 if (!mixer) { in main()
115 printf("Mixer name: '%s'\n", mixer_get_name(mixer)); in main()
116 tinymix_list_controls(mixer); in main()
118 ret = tinymix_detail_control(mixer, argv[optind], !g_value_only, !g_value_only); in main()
120 ret = tinymix_set_value(mixer, argv[optind], &argv[optind + 1], argc - optind - 1); in main()
123 mixer_close(mixer); in main()
128 static void tinymix_list_controls(struct mixer *mixer) in tinymix_list_controls() argument
135 num_ctls = mixer_get_num_ctls(mixer); in tinymix_list_controls()
148 ctl = mixer_get_ctl(mixer, i); in tinymix_list_controls()
157 tinymix_detail_control(mixer, name, 0, g_all_values); in tinymix_list_controls()
184 static int tinymix_detail_control(struct mixer *mixer, const char *control, in tinymix_detail_control() argument
199 ctl = mixer_get_ctl(mixer, atoi(control)); in tinymix_detail_control()
201 ctl = mixer_get_ctl_by_name(mixer, control); in tinymix_detail_control()
334 static int tinymix_set_value(struct mixer *mixer, const char *control, in tinymix_set_value() argument
343 ctl = mixer_get_ctl(mixer, atoi(control)); in tinymix_set_value()
345 ctl = mixer_get_ctl_by_name(mixer, control); in tinymix_set_value()