Home
last modified time | relevance | path

Searched refs:jack_name (Results 1 – 10 of 10) sorted by relevance

/external/adhd/cras/src/server/
Dcras_alsa_ucm_section.c17 if (section->jack_name) in ucm_section_free()
18 free((void *)section->jack_name); in ucm_section_free()
39 const char *jack_name, in ucm_section_create() argument
59 if (jack_name) { in ucm_section_create()
60 section->jack_name = strdup(jack_name); in ucm_section_create()
61 if (!section->jack_name) in ucm_section_create()
126 section->jack_name, section->jack_type); in ucm_section_dump()
Dcras_alsa_jack.c613 r = create_jack_for_gpio(jack_list, pathname, section->jack_name, in open_and_monitor_gpio_with_section()
693 if (strcmp(dev_name, data->section->jack_name)) { in gpio_switch_list_with_section()
710 static int jack_matches_regex(const char *jack_name, const char *re) in jack_matches_regex() argument
722 rc = regexec(&regex, jack_name, ARRAY_SIZE(m), m, 0) == 0; in jack_matches_regex()
852 static int is_jack_hdmi_dp(const char *jack_name) in is_jack_hdmi_dp() argument
855 return strncmp(jack_name, hdmi_dp, strlen(hdmi_dp)) == 0; in is_jack_hdmi_dp()
874 static int is_jack_uac2(const char *jack_name, in is_jack_uac2() argument
877 return jack_matches_regex(jack_name, direction == CRAS_STREAM_OUTPUT ? in is_jack_uac2()
1026 snd_ctl_elem_id_set_name(elem_id, section->jack_name); in find_hctl_jack_for_section()
1032 section->jack_name, section->name); in find_hctl_jack_for_section()
[all …]
Dcras_alsa_ucm_section.h21 const char *jack_name; /* Associated jack's name. */ member
45 const char *jack_name,
Dcras_alsa_io.c1451 const char *jack_name; in jack_output_plug_event() local
1458 jack_name = cras_alsa_jack_get_name(jack); in jack_output_plug_event()
1459 if (!strcmp(jack_name, "Speaker Phantom Jack")) in jack_output_plug_event()
1460 jack_name = INTERNAL_SPEAKER; in jack_output_plug_event()
1467 jack_name); in jack_output_plug_event()
1470 node = new_output(aio, NULL, jack_name); in jack_output_plug_event()
1482 jack_name, node->base.name); in jack_output_plug_event()
1491 syslog(LOG_DEBUG, "%s plugged: %d, %s", jack_name, plugged, in jack_output_plug_event()
1518 const char *jack_name; in jack_input_plug_event() local
1524 jack_name = cras_alsa_jack_get_name(jack); in jack_input_plug_event()
[all …]
Dcras_alsa_jack.h168 int cras_alsa_jack_exists(unsigned int card_index, const char *jack_name);
Dcras_alsa_ucm.c824 const char *jack_name; in ucm_get_sections() local
867 jack_name = ucm_get_jack_name_for_dev(mgr, dev_name); in ucm_get_sections()
872 jack_name, jack_type); in ucm_get_sections()
873 if (jack_name) in ucm_get_sections()
874 free((void *)jack_name); in ucm_get_sections()
/external/adhd/cras/tools/
Dcreate_volume_curve.py49 jack_name = raw_input(">");
57 GenerateSimpleStep(jack_name, max_volume, step_size)
59 GenerateExplicit(jack_name)
69 GenerateTwoSlope(jack_name, max_volume, step_1, step_2, pivot_point)
/external/adhd/cras/src/tests/
Dalsa_ucm_unittest.cc1112 static const char *jack_name = "my-card-name Headset Jack"; in TEST() local
1123 section = ucm_section_create(name, dev_idx, dir, jack_name, jack_type); in TEST()
1129 EXPECT_NE(jack_name, section->jack_name); in TEST()
1256 EXPECT_EQ(0, strcmp(section->jack_name, values[1])); in TEST()
1272 EXPECT_EQ(NULL, section->jack_name); in TEST()
1288 EXPECT_EQ(0, strcmp(section->jack_name, values[1])); in TEST()
1300 EXPECT_EQ(NULL, section->jack_name); in TEST()
1315 EXPECT_EQ(NULL, section->jack_name); in TEST()
Dalsa_io_unittest.cc1141 static const char *jack_name = "TestCard - Headset Jack"; in TEST() local
1178 jack_name, "hctl"); in TEST()
1223 cras_alsa_jack_get_name_ret_value = jack_name; in TEST()
1275 static const char *jack_name = "TestCard - Headset Jack"; in TEST() local
1294 jack_name, "hctl"); in TEST()
1319 static const char *jack_name = "TestCard - Headset Jack"; in TEST() local
1357 section = ucm_section_create("Mic", 0, CRAS_STREAM_INPUT, jack_name, "hctl"); in TEST()
1370 cras_alsa_jack_get_name_ret_value = jack_name; in TEST()
1449 static const char *jack_name = "TestCard - Headset Jack"; in TEST() local
1466 section = ucm_section_create("Mic", 0, CRAS_STREAM_INPUT, jack_name, "hctl"); in TEST()
Dalsa_jack_unittest.cc422 const char* jack_name) in run_gpio_jack_test() argument
435 gpio_switch_list_for_each_dev_names.push_back(jack_name); in run_gpio_jack_test()