Searched refs:mixer_name (Results 1 – 13 of 13) sorted by relevance
/external/adhd/cras/src/server/ |
D | cras_alsa_mixer_name.c | 13 struct mixer_name *mixer_name_add(struct mixer_name *names, in mixer_name_add() 18 struct mixer_name *m_name; in mixer_name_add() 23 m_name = (struct mixer_name *)calloc(1, sizeof(struct mixer_name)); in mixer_name_add() 39 struct mixer_name *mixer_name_add_array(struct mixer_name *names, in mixer_name_add_array() 51 void mixer_name_free(struct mixer_name *names) in mixer_name_free() 53 struct mixer_name *m_name; in mixer_name_free() 61 struct mixer_name *mixer_name_find(struct mixer_name *names, in mixer_name_find() 69 struct mixer_name *m_name; in mixer_name_find() 119 void mixer_name_dump(struct mixer_name *names, const char *message) in mixer_name_dump() 121 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, 60 struct mixer_name *mixer_name_add_array(struct mixer_name *names, 71 void mixer_name_free(struct mixer_name *names); 87 struct mixer_name *mixer_name_find(struct mixer_name *names, 98 void mixer_name_dump(struct mixer_name *names, const char *message);
|
D | cras_alsa_ucm_section.c | 21 if (section->mixer_name) in ucm_section_free() 22 free((void *)section->mixer_name); in ucm_section_free() 87 if (section->mixer_name) in ucm_section_set_mixer_name() 88 free((void *)section->mixer_name); in ucm_section_set_mixer_name() 89 section->mixer_name = strdup(name); in ucm_section_set_mixer_name() 90 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()
|
D | cras_alsa_ucm_section.h | 25 const char *mixer_name; /* MixerName value. */ member 26 struct mixer_name *coupled; /* CoupledMixers value. */ 85 struct mixer_name *coupled);
|
D | cras_alsa_mixer.h | 23 struct mixer_name; 58 struct mixer_name *extra_controls, 59 struct mixer_name *coupled_controls);
|
D | cras_alsa_mixer.c | 311 struct mixer_name *mixer_names, in mixer_control_create_by_name() 317 struct mixer_name *m_name; in mixer_control_create_by_name() 587 struct mixer_name *coupled_controls) in add_control_with_coupled_mixers() 617 struct mixer_name *m_name; in add_control_by_name() 664 struct mixer_name *extra_controls, in cras_alsa_mixer_add_controls_by_name_matching() 665 struct mixer_name *coupled_controls) in cras_alsa_mixer_add_controls_by_name_matching() 691 struct mixer_name *default_controls = NULL; in cras_alsa_mixer_add_controls_by_name_matching() 727 struct mixer_name *control; in cras_alsa_mixer_add_controls_by_name_matching() 879 if (section->mixer_name) { in cras_alsa_mixer_add_controls_in_section() 881 cmix, section->dir, section->mixer_name); in cras_alsa_mixer_add_controls_in_section() [all …]
|
D | cras_alsa_ucm.c | 345 static struct mixer_name *ucm_get_mixer_names(struct cras_use_case_mgr *mgr, in ucm_get_mixer_names() 354 struct mixer_name *names = NULL; in ucm_get_mixer_names() 780 struct mixer_name *ucm_get_coupled_mixer_names( in ucm_get_coupled_mixer_names() 826 const char *mixer_name; in ucm_get_sections() local 827 struct mixer_name *m_name; in ucm_get_sections() 869 mixer_name = ucm_get_mixer_name_for_dev(mgr, dev_name); in ucm_get_sections() 880 if (mixer_name) in ucm_get_sections() 881 free((void *)mixer_name); in ucm_get_sections() 888 if (mixer_name) { in ucm_get_sections() 889 rc = ucm_section_set_mixer_name(dev_sec, mixer_name); in ucm_get_sections() [all …]
|
D | cras_alsa_card.c | 174 static struct mixer_name *filter_controls(struct cras_use_case_mgr *ucm, in filter_controls() 175 struct mixer_name *controls) in filter_controls() 177 struct mixer_name *control; in filter_controls() 213 struct mixer_name *coupled_controls = NULL; in add_controls_and_iodevs_by_matching() 216 struct mixer_name *extra_controls = NULL; in add_controls_and_iodevs_by_matching()
|
D | cras_alsa_ucm.h | 302 struct mixer_name *ucm_get_coupled_mixer_names( 369 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 | 726 struct mixer_name *mixer_names_1, *mixer_names_2, *c; in TEST() 760 struct mixer_name *mixer_names_1; in TEST() 930 struct mixer_name *mixer_names_1, *mixer_names_2, *c; in TEST() 1106 struct mixer_name *controls = NULL; in TEST() 1107 struct mixer_name *m_name; in TEST() 1114 static const char *mixer_name = "Control1"; in TEST() local 1132 EXPECT_EQ(reinterpret_cast<const char *>(NULL), section->mixer_name); in TEST() 1133 EXPECT_EQ(reinterpret_cast<struct mixer_name*>(NULL), section->coupled); in TEST() 1136 EXPECT_EQ(-EINVAL, ucm_section_set_mixer_name(NULL, mixer_name)); in TEST() 1137 EXPECT_EQ(0, ucm_section_set_mixer_name(section, mixer_name)); in TEST() [all …]
|
D | alsa_card_unittest.cc | 87 static struct mixer_name *ucm_get_coupled_mixer_names_return_value; 88 static struct mixer_name *coupled_output_names_value; 621 struct mixer_name *mixer_name_1, *mixer_name_2; in TEST() 637 mixer_name_1 = (struct mixer_name*)malloc(sizeof(*mixer_name_1)); in TEST() 638 mixer_name_2 = (struct mixer_name*)malloc(sizeof(*mixer_name_2)); in TEST() 669 struct mixer_name *m_name = coupled_output_names_value; in TEST() 864 struct mixer_name *extra_controls, in cras_alsa_mixer_add_controls_by_name_matching() 865 struct mixer_name *coupled_controls) { in cras_alsa_mixer_add_controls_by_name_matching() 868 struct mixer_name *control; in cras_alsa_mixer_add_controls_by_name_matching() 1096 struct mixer_name *ucm_get_coupled_mixer_names( in ucm_get_coupled_mixer_names() [all …]
|
D | alsa_mixer_unittest.cc | 154 struct mixer_name *extra_controls, in create_mixer_and_add_controls_by_name_matching() 155 struct mixer_name *coupled_controls) { in create_mixer_and_add_controls_by_name_matching() 805 struct mixer_name *extra_controls = in SetUp() 996 struct mixer_name *coupled_controls = in TEST() 1103 struct mixer_name *coupled_controls = in TEST() 1184 struct mixer_name *coupled_controls = in TEST() 1254 struct mixer_name *names; in TEST() 1255 struct mixer_name *control; in TEST()
|