Home
last modified time | relevance | path

Searched refs:mixer_ctl (Results 1 – 7 of 7) sorted by relevance

/external/tinyalsa_new/include/tinyalsa/
Dmixer.h47 struct mixer_ctl;
100 const struct mixer_ctl *mixer_get_ctl_const(const struct mixer *mixer, unsigned int id);
102 struct mixer_ctl *mixer_get_ctl(struct mixer *mixer, unsigned int id);
104 struct mixer_ctl *mixer_get_ctl_by_name(struct mixer *mixer, const char *name);
106 struct mixer_ctl *mixer_get_ctl_by_name_and_index(struct mixer *mixer,
114 unsigned int mixer_ctl_get_id(const struct mixer_ctl *ctl);
116 const char *mixer_ctl_get_name(const struct mixer_ctl *ctl);
118 enum mixer_ctl_type mixer_ctl_get_type(const struct mixer_ctl *ctl);
120 const char *mixer_ctl_get_type_string(const struct mixer_ctl *ctl);
122 unsigned int mixer_ctl_get_num_values(const struct mixer_ctl *ctl);
[all …]
/external/tinyalsa/include/tinyalsa/
Dasoundlib.h298 struct mixer_ctl;
309 struct mixer_ctl *mixer_get_ctl(struct mixer *mixer, unsigned int id);
310 struct mixer_ctl *mixer_get_ctl_by_name(struct mixer *mixer, const char *name);
313 const char *mixer_ctl_get_name(struct mixer_ctl *ctl);
314 enum mixer_ctl_type mixer_ctl_get_type(struct mixer_ctl *ctl);
315 const char *mixer_ctl_get_type_string(struct mixer_ctl *ctl);
316 unsigned int mixer_ctl_get_num_values(struct mixer_ctl *ctl);
317 unsigned int mixer_ctl_get_num_enums(struct mixer_ctl *ctl);
318 const char *mixer_ctl_get_enum_string(struct mixer_ctl *ctl,
325 void mixer_ctl_update(struct mixer_ctl *ctl);
[all …]
/external/tinyalsa_new/tests/src/
Dmixer_test.cc92 EXPECT_EQ(mixer_ctl_get_array(reinterpret_cast<mixer_ctl *>(1), nullptr, 1), -EINVAL); in TEST()
95 reinterpret_cast<mixer_ctl *>(1), reinterpret_cast<void *>(1), 0), -EINVAL); in TEST()
98 EXPECT_EQ(mixer_ctl_set_array(reinterpret_cast<mixer_ctl *>(1), nullptr, 1), -EINVAL); in TEST()
101 reinterpret_cast<mixer_ctl *>(1), reinterpret_cast<const void *>(1), 0), -EINVAL); in TEST()
103 EXPECT_EQ(mixer_ctl_set_enum_by_string(reinterpret_cast<mixer_ctl *>(1), nullptr), -EINVAL); in TEST()
156 controls = std::make_unique<const mixer_ctl *[]>(number_of_controls); in SetUp()
173 std::unique_ptr<const mixer_ctl *[]> controls;
242 const mixer_ctl *control = controls[i]; in TEST_P()
248 const_cast<mixer_ctl *>(control), in TEST_P()
258 mixer_ctl_update(const_cast<mixer_ctl *>(controls[i])); in TEST_P()
[all …]
/external/tinyalsa_new/src/
Dmixer.c68 struct mixer_ctl { struct
81 struct mixer_ctl *ctl; argument
111 static void mixer_cleanup_control(struct mixer_ctl *ctl) in mixer_cleanup_control()
181 struct mixer_ctl *ctl; in add_controls()
197 sizeof(struct mixer_ctl)); in add_controls()
418 struct mixer_ctl *ctl; in mixer_get_num_ctls_by_name()
645 const struct mixer_ctl *mixer_get_ctl_const(const struct mixer *mixer, unsigned int id) in mixer_get_ctl_const()
674 struct mixer_ctl *mixer_get_ctl(struct mixer *mixer, unsigned int id) in mixer_get_ctl()
701 struct mixer_ctl *mixer_get_ctl_by_name(struct mixer *mixer, const char *name) in mixer_get_ctl_by_name()
718 struct mixer_ctl *mixer_get_ctl_by_name_and_index(struct mixer *mixer, in mixer_get_ctl_by_name_and_index()
[all …]
/external/tinyalsa/
Dmixer.c56 struct mixer_ctl { struct
65 struct mixer_ctl *ctl; argument
152 grp->ctl = calloc(elist.count, sizeof(struct mixer_ctl)); in mixer_grp_open()
173 struct mixer_ctl *ctl = grp->ctl + n; in mixer_grp_open()
298 static bool mixer_ctl_get_elem_info(struct mixer_ctl* ctl) in mixer_ctl_get_elem_info()
361 struct mixer_ctl *mixer_get_ctl(struct mixer *mixer, unsigned int id) in mixer_get_ctl()
363 struct mixer_ctl *ctl; in mixer_get_ctl()
385 struct mixer_ctl *mixer_get_ctl_by_name(struct mixer *mixer, const char *name) in mixer_get_ctl_by_name()
414 void mixer_ctl_update(struct mixer_ctl *ctl) in mixer_ctl_update()
425 const char *mixer_ctl_get_name(struct mixer_ctl *ctl) in mixer_ctl_get_name()
[all …]
Dtinymix.c43 static void tinymix_print_enum(struct mixer_ctl *ctl, const char *space,
140 struct mixer_ctl *ctl; in tinymix_list_controls()
171 static void tinymix_print_enum(struct mixer_ctl *ctl, const char *space, in tinymix_print_enum()
197 struct mixer_ctl *ctl; in tinymix_detail_control()
282 static void tinymix_set_byte_ctl(struct mixer_ctl *ctl, in tinymix_set_byte_ctl()
347 struct mixer_ctl *ctl; in tinymix_set_value()
/external/tinyalsa_new/utils/
Dtinymix.c42 static void print_control_values(struct mixer_ctl *control);
48 static void print_enum(struct mixer_ctl *ctl);
202 struct mixer_ctl *ctl; in list_controls()
229 static void print_enum(struct mixer_ctl *ctl) in print_enum()
247 struct mixer_ctl *ctl; in print_control_values_by_name_or_id()
262 static void print_control_values(struct mixer_ctl *control) in print_control_values()
322 static void tinymix_set_byte_ctl(struct mixer_ctl *ctl, in tinymix_set_byte_ctl()
470 static int set_control_value(struct mixer_ctl* ctl, unsigned int i, in set_control_value()
491 static int set_control_values(struct mixer_ctl* ctl, in set_control_values()
540 struct mixer_ctl *ctl; in set_values()