Home
last modified time | relevance | path

Searched refs:mixer_name (Results 1 – 14 of 14) sorted by relevance

/external/adhd/cras/src/server/
Dcras_alsa_mixer_name.c13 struct mixer_name *mixer_name_add(struct mixer_name *names, const char *name, in mixer_name_add()
17 struct mixer_name *m_name; in mixer_name_add()
22 m_name = (struct mixer_name *)calloc(1, sizeof(struct mixer_name)); in mixer_name_add()
38 struct mixer_name *mixer_name_add_array(struct mixer_name *names, in mixer_name_add_array()
50 void mixer_name_free(struct mixer_name *names) in mixer_name_free()
52 struct mixer_name *m_name; in mixer_name_free()
60 struct mixer_name *mixer_name_find(struct mixer_name *names, const char *name, in mixer_name_find()
67 struct mixer_name *m_name; in mixer_name_find()
116 void mixer_name_dump(struct mixer_name *names, const char *message) in mixer_name_dump()
118 struct mixer_name *m_name; in mixer_name_dump()
Dcras_alsa_mixer_name.h23 struct mixer_name { struct
27 struct mixer_name *prev, *next; argument
42 struct mixer_name *mixer_name_add(struct mixer_name *names, const char *name,
59 struct mixer_name *mixer_name_add_array(struct mixer_name *names,
70 void mixer_name_free(struct mixer_name *names);
86 struct mixer_name *mixer_name_find(struct mixer_name *names, const char *name,
96 void mixer_name_dump(struct mixer_name *names, const char *message);
Dcras_alsa_ucm_section.c20 free((void *)section->mixer_name); in ucm_section_free()
88 if (section->mixer_name) in ucm_section_set_mixer_name()
89 free((void *)section->mixer_name); in ucm_section_set_mixer_name()
90 section->mixer_name = strdup(name); in ucm_section_set_mixer_name()
91 if (!section->mixer_name) in ucm_section_set_mixer_name()
99 struct mixer_name *m_name; in ucm_section_add_coupled()
112 struct mixer_name *coupled) in ucm_section_concat_coupled()
127 syslog(LOG_DEBUG, " mixer_name: %s", section->mixer_name); in ucm_section_dump()
Dcras_alsa_mixer.h20 struct mixer_name;
53 struct cras_alsa_mixer *cmix, struct mixer_name *mixer_names);
64 struct cras_alsa_mixer *cmix, struct mixer_name *extra_controls,
65 struct mixer_name *coupled_controls);
Dcras_alsa_ucm_section.h35 const char *mixer_name; member
37 struct mixer_name *coupled;
97 struct mixer_name *coupled);
Dcras_alsa_mixer.c308 struct mixer_name *mixer_names, in mixer_control_create_by_name()
314 struct mixer_name *m_name; in mixer_control_create_by_name()
574 struct mixer_name *coupled_controls) in add_control_with_coupled_mixers()
602 struct mixer_name *m_name; in add_control_by_name()
647 struct cras_alsa_mixer *cmix, struct mixer_name *extra_controls, in cras_alsa_mixer_add_controls_by_name_matching()
648 struct mixer_name *coupled_controls) in cras_alsa_mixer_add_controls_by_name_matching()
674 struct mixer_name *default_controls = NULL; in cras_alsa_mixer_add_controls_by_name_matching()
712 struct mixer_name *control; in cras_alsa_mixer_add_controls_by_name_matching()
843 struct cras_alsa_mixer *cmix, struct mixer_name *mixer_names) in cras_alsa_mixer_add_main_volume_control_by_name()
846 struct mixer_name *m_name; in cras_alsa_mixer_add_main_volume_control_by_name()
[all …]
Dcras_alsa_ucm.c359 static struct mixer_name *ucm_get_mixer_names(struct cras_use_case_mgr *mgr, in ucm_get_mixer_names()
368 struct mixer_name *names = NULL; in ucm_get_mixer_names()
842 struct mixer_name *ucm_get_coupled_mixer_names(struct cras_use_case_mgr *mgr, in ucm_get_coupled_mixer_names()
898 const char *mixer_name = NULL; in ucm_parse_device_section() local
899 struct mixer_name *m_name; in ucm_parse_device_section()
934 mixer_name = ucm_get_playback_mixer_elem_for_dev(mgr, dev_name); in ucm_parse_device_section()
936 mixer_name = ucm_get_capture_mixer_elem_for_dev(mgr, dev_name); in ucm_parse_device_section()
958 if (mixer_name) { in ucm_parse_device_section()
959 rc = ucm_section_set_mixer_name(dev_sec, mixer_name); in ucm_parse_device_section()
975 free((void *)mixer_name); in ucm_parse_device_section()
[all …]
Dcras_alsa_card.c164 static struct mixer_name *filter_controls(struct cras_use_case_mgr *ucm, in filter_controls()
165 struct mixer_name *controls) in filter_controls()
167 struct mixer_name *control; in filter_controls()
202 struct mixer_name *coupled_controls = NULL; in add_controls_and_iodevs_by_matching()
205 struct mixer_name *extra_controls = NULL; in add_controls_and_iodevs_by_matching()
301 struct mixer_name *main_volume_control_names; in add_controls_and_iodevs_with_ucm()
Dcras_alsa_ucm.h304 struct mixer_name *ucm_get_coupled_mixer_names(struct cras_use_case_mgr *mgr,
398 struct mixer_name *ucm_get_main_volume_names(struct cras_use_case_mgr *mgr);
Dcras_gpio_jack.h11 struct mixer_name;
Dcras_alsa_plugin_io.c160 section->name, section->mixer_name); in alsa_plugin_io_create()
/external/adhd/cras/src/tests/
Dalsa_ucm_unittest.cc871 struct mixer_name *mixer_names_1, *mixer_names_2, *c; in TEST()
905 struct mixer_name* mixer_names_1; in TEST()
1027 struct mixer_name *mixer_names_1, *mixer_names_2, *c; in TEST()
1182 struct mixer_name* controls = NULL; in TEST()
1183 struct mixer_name* m_name; in TEST()
1192 static const char* mixer_name = "Control1"; in TEST() local
1209 EXPECT_EQ(reinterpret_cast<const char*>(NULL), section->mixer_name); in TEST()
1210 EXPECT_EQ(reinterpret_cast<struct mixer_name*>(NULL), section->coupled); in TEST()
1213 EXPECT_EQ(-EINVAL, ucm_section_set_mixer_name(NULL, mixer_name)); in TEST()
1214 EXPECT_EQ(0, ucm_section_set_mixer_name(section, mixer_name)); in TEST()
[all …]
Dalsa_card_unittest.cc88 static struct mixer_name* ucm_get_coupled_mixer_names_return_value;
89 static struct mixer_name* coupled_output_names_value;
92 static struct mixer_name* ucm_get_main_volume_names_return_value;
637 struct mixer_name *mixer_name_1, *mixer_name_2; in TEST()
653 mixer_name_1 = (struct mixer_name*)malloc(sizeof(*mixer_name_1)); in TEST()
654 mixer_name_2 = (struct mixer_name*)malloc(sizeof(*mixer_name_2)); in TEST()
685 struct mixer_name* m_name = coupled_output_names_value; in TEST()
731 struct mixer_name *mixer_name_1, *mixer_name_2; in TEST()
742 mixer_name_1 = (struct mixer_name*)malloc(sizeof(*mixer_name_1)); in TEST()
743 mixer_name_2 = (struct mixer_name*)malloc(sizeof(*mixer_name_2)); in TEST()
[all …]
Dalsa_mixer_unittest.cc155 struct mixer_name* extra_controls, in create_mixer_and_add_controls_by_name_matching()
156 struct mixer_name* coupled_controls) { in create_mixer_and_add_controls_by_name_matching()
770 struct mixer_name* extra_controls = mixer_name_add_array( in SetUp()
945 struct mixer_name* coupled_controls = mixer_name_add_array( in TEST()
1047 struct mixer_name* coupled_controls = mixer_name_add_array( in TEST()
1124 struct mixer_name* coupled_controls = mixer_name_add_array( in TEST()
1192 struct mixer_name* names; in TEST()
1193 struct mixer_name* control; in TEST()