/external/adhd/cras/src/server/ |
D | cras_alsa_mixer_name.c | 13 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()
|
D | cras_alsa_mixer_name.h | 23 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);
|
D | cras_alsa_ucm_section.c | 22 if (section->mixer_name) in ucm_section_free() 23 free((void *)section->mixer_name); in ucm_section_free() 85 if (section->mixer_name) in ucm_section_set_mixer_name() 86 free((void *)section->mixer_name); in ucm_section_set_mixer_name() 87 section->mixer_name = strdup(name); in ucm_section_set_mixer_name() 88 if (!section->mixer_name) in ucm_section_set_mixer_name() 96 struct mixer_name *m_name; in ucm_section_add_coupled() 109 struct mixer_name *coupled) in ucm_section_concat_coupled() 124 syslog(LOG_DEBUG, " mixer_name: %s", section->mixer_name); in ucm_section_dump()
|
D | cras_alsa_mixer.h | 23 struct mixer_name; 56 struct cras_alsa_mixer *cmix, struct mixer_name *mixer_names); 67 struct cras_alsa_mixer *cmix, struct mixer_name *extra_controls, 68 struct mixer_name *coupled_controls);
|
D | cras_alsa_ucm_section.h | 31 const char *mixer_name; member 33 struct mixer_name *coupled; 89 struct mixer_name *coupled);
|
D | cras_alsa_mixer.c | 308 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 …]
|
D | cras_alsa_ucm.c | 342 static struct mixer_name *ucm_get_mixer_names(struct cras_use_case_mgr *mgr, in ucm_get_mixer_names() 351 struct mixer_name *names = NULL; in ucm_get_mixer_names() 784 struct mixer_name *ucm_get_coupled_mixer_names(struct cras_use_case_mgr *mgr, in ucm_get_coupled_mixer_names() 829 const char *mixer_name; in ucm_get_sections() local 830 struct mixer_name *m_name; in ucm_get_sections() 873 mixer_name = ucm_get_mixer_name_for_dev(mgr, dev_name); in ucm_get_sections() 884 if (mixer_name) in ucm_get_sections() 885 free((void *)mixer_name); in ucm_get_sections() 892 if (mixer_name) { in ucm_get_sections() 893 rc = ucm_section_set_mixer_name(dev_sec, mixer_name); in ucm_get_sections() [all …]
|
D | cras_alsa_card.c | 157 static struct mixer_name *filter_controls(struct cras_use_case_mgr *ucm, in filter_controls() 158 struct mixer_name *controls) in filter_controls() 160 struct mixer_name *control; in filter_controls() 195 struct mixer_name *coupled_controls = NULL; in add_controls_and_iodevs_by_matching() 198 struct mixer_name *extra_controls = NULL; in add_controls_and_iodevs_by_matching() 294 struct mixer_name *main_volume_control_names; in add_controls_and_iodevs_with_ucm()
|
D | cras_alsa_ucm.h | 300 struct mixer_name *ucm_get_coupled_mixer_names(struct cras_use_case_mgr *mgr, 367 struct mixer_name *ucm_get_main_volume_names(struct cras_use_case_mgr *mgr);
|
D | cras_gpio_jack.h | 11 struct mixer_name;
|
/external/adhd/cras/src/tests/ |
D | alsa_ucm_unittest.cc | 714 struct mixer_name *mixer_names_1, *mixer_names_2, *c; in TEST() 748 struct mixer_name* mixer_names_1; in TEST() 917 struct mixer_name *mixer_names_1, *mixer_names_2, *c; in TEST() 1088 struct mixer_name* controls = NULL; in TEST() 1089 struct mixer_name* m_name; in TEST() 1096 static const char* mixer_name = "Control1"; in TEST() local 1111 EXPECT_EQ(reinterpret_cast<const char*>(NULL), section->mixer_name); in TEST() 1112 EXPECT_EQ(reinterpret_cast<struct mixer_name*>(NULL), section->coupled); in TEST() 1115 EXPECT_EQ(-EINVAL, ucm_section_set_mixer_name(NULL, mixer_name)); in TEST() 1116 EXPECT_EQ(0, ucm_section_set_mixer_name(section, mixer_name)); in TEST() [all …]
|
D | alsa_card_unittest.cc | 88 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; 632 struct mixer_name *mixer_name_1, *mixer_name_2; in TEST() 648 mixer_name_1 = (struct mixer_name*)malloc(sizeof(*mixer_name_1)); in TEST() 649 mixer_name_2 = (struct mixer_name*)malloc(sizeof(*mixer_name_2)); in TEST() 680 struct mixer_name* m_name = coupled_output_names_value; in TEST() 726 struct mixer_name *mixer_name_1, *mixer_name_2; in TEST() 737 mixer_name_1 = (struct mixer_name*)malloc(sizeof(*mixer_name_1)); in TEST() 738 mixer_name_2 = (struct mixer_name*)malloc(sizeof(*mixer_name_2)); in TEST() [all …]
|
D | alsa_mixer_unittest.cc | 155 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()
|