Home
last modified time | relevance | path

Searched refs:jack_type (Results 1 – 5 of 5) sorted by relevance

/external/adhd/cras/src/server/
Dcras_alsa_ucm_section.c19 if (section->jack_type) in ucm_section_free()
20 free((void *)section->jack_type); in ucm_section_free()
40 const char *jack_type) in ucm_section_create() argument
64 if (jack_type) { in ucm_section_create()
65 section->jack_type = strdup(jack_type); in ucm_section_create()
66 if (!section->jack_type) in ucm_section_create()
126 section->jack_name, section->jack_type); in ucm_section_dump()
Dcras_alsa_ucm_section.h22 const char *jack_type; /* Associated jack's type. */ member
46 const char *jack_type);
Dcras_alsa_ucm.c825 const char *jack_type; in ucm_get_sections() local
868 jack_type = ucm_get_jack_type_for_dev(mgr, dev_name); in ucm_get_sections()
872 jack_name, jack_type); in ucm_get_sections()
875 if (jack_type) in ucm_get_sections()
876 free((void *)jack_type); in ucm_get_sections()
Dcras_alsa_jack.c1093 if (!ucm_section->jack_type) { in cras_alsa_jack_list_add_jack_for_section()
1100 if (!strcmp(ucm_section->jack_type, "hctl")) { in cras_alsa_jack_list_add_jack_for_section()
1103 } else if (!strcmp(ucm_section->jack_type, "gpio")) { in cras_alsa_jack_list_add_jack_for_section()
1108 ucm_section->jack_type, ucm_section->name); in cras_alsa_jack_list_add_jack_for_section()
/external/adhd/cras/src/tests/
Dalsa_ucm_unittest.cc1113 static const char *jack_type = "gpio"; in TEST() local
1123 section = ucm_section_create(name, dev_idx, dir, jack_name, jack_type); in TEST()
1130 EXPECT_NE(jack_type, section->jack_type); in TEST()
1257 EXPECT_EQ(0, strcmp(section->jack_type, values[2])); in TEST()
1273 EXPECT_EQ(NULL, section->jack_type); in TEST()
1289 EXPECT_EQ(0, strcmp(section->jack_type, values[2])); in TEST()
1301 EXPECT_EQ(NULL, section->jack_type); in TEST()
1316 EXPECT_EQ(NULL, section->jack_type); in TEST()